huangcm
2025-04-09 02d4ce54b909bd733f12e9f3fa4c1b03cf2d6f45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.DeviceTest.view;
 
import android.content.Context;
import android.widget.TextView;
 
public class MySpinnerView extends TextView {
 
   public MySpinnerView(Context context) {
       super(context);
   }
 
   
   protected void onLayout(boolean changed, int left, int top, int right,
           int bottom) {
       super.onLayout(changed, left, top, right, bottom);
       setTextSize((bottom - top) * 3 / 4);
   }
 
   
}