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);
| }
|
|
| }
|
|