|
6 | 6 | android:layout_height="wrap_content" |
7 | 7 | android:orientation="vertical"> |
8 | 8 |
|
9 | | - <LinearLayout |
| 9 | + <RelativeLayout |
| 10 | + android:background="?colorAccentHighlight" |
10 | 11 | android:layout_width="match_parent" |
11 | 12 | android:layout_height="wrap_content" |
12 | 13 | android:padding="0dp" |
| 14 | + android:weightSum="1" |
13 | 15 | android:orientation="horizontal"> |
14 | 16 |
|
15 | 17 | <TextView |
16 | 18 | android:id="@+id/apduCmdDesc" |
17 | 19 | android:layout_width="wrap_content" |
| 20 | + android:maxLength="20" |
18 | 21 | android:layout_height="wrap_content" |
19 | 22 | android:layout_gravity="left" |
20 | | - android:layout_weight="0.35" |
| 23 | + android:layout_weight="0.50" |
| 24 | + android:layout_alignParentLeft="true" |
21 | 25 | android:drawableLeft="@drawable/apdubullet16" |
22 | 26 | android:drawablePadding="5dp" |
23 | 27 | android:background="?colorAccentHighlight" |
|
29 | 33 | android:textStyle="normal" |
30 | 34 | android:typeface="monospace" /> |
31 | 35 |
|
32 | | - <TextView |
33 | | - android:id="@+id/apduCmdStd" |
34 | | - android:layout_width="wrap_content" |
35 | | - android:layout_height="wrap_content" |
36 | | - android:layout_gravity="right" |
37 | | - android:layout_weight="0.25" |
38 | | - android:background="?colorAccentHighlight" |
39 | | - android:paddingLeft="3dp" |
40 | | - android:paddingRight="3dp" |
41 | | - android:singleLine="true" |
42 | | - android:text="" |
43 | | - android:textAllCaps="true" |
44 | | - android:textSize="12.5sp" |
45 | | - android:textStyle="normal" |
46 | | - android:typeface="monospace" /> |
47 | | - |
48 | 36 | <TextView |
49 | 37 | android:id="@+id/apduByteData" |
50 | | - android:layout_width="wrap_content" |
| 38 | + android:layout_width="fill_parent" |
51 | 39 | android:layout_height="wrap_content" |
52 | | - android:layout_gravity="left" |
53 | | - android:layout_weight="0" |
| 40 | + android:layout_weight="0.40" |
| 41 | + android:gravity="center_vertical|right" |
| 42 | + android:layout_toRightOf="@id/apduCmdDesc" |
| 43 | + android:layout_toLeftOf="@id/copyCmdButton" |
54 | 44 | android:background="?colorAccentHighlight" |
55 | 45 | android:paddingLeft="3dp" |
56 | 46 | android:paddingRight="3dp" |
|
64 | 54 | <Button |
65 | 55 | android:id="@+id/copyCmdButton" |
66 | 56 | android:layout_height="wrap_content" |
| 57 | + android:layout_weight="0.10" |
67 | 58 | android:minHeight="0dp" |
68 | 59 | android:layout_width="wrap_content" |
69 | 60 | android:layout_gravity="right" |
70 | 61 | android:padding="0dp" |
71 | 62 | android:layout_marginTop="0dp" |
72 | 63 | android:layout_marginBottom="0dp" |
| 64 | + android:layout_margin="0dp" |
| 65 | + android:layout_alignParentRight="true" |
73 | 66 | android:drawableLeft="@drawable/copysquare16" |
74 | 67 | android:background="?colorAccentHighlight" |
75 | 68 | android:textAllCaps="true" |
76 | 69 | android:textSize="12.5sp" |
77 | 70 | android:textStyle="normal" |
78 | 71 | android:onClick="actionButtonAPDUCopyCmd" |
79 | | - android:text="COPY CMD" /> |
| 72 | + android:text="COPY" /> |
80 | 73 |
|
81 | | - </LinearLayout> |
| 74 | + </RelativeLayout> |
82 | 75 |
|
83 | 76 | <View |
84 | 77 | android:layout_width="match_parent" |
|
0 commit comments