Commit a5a485e98912935e3b9d4371193c54de070d66de
1 parent
74a0ade9
修改提交,弃权,反对按钮样式,添加颜色
Showing
9 changed files
with
59 additions
and
21 deletions
C5/app/src/main/res/drawable/agree_selector.xml
@@ -2,10 +2,10 @@ | @@ -2,10 +2,10 @@ | ||
2 | <selector xmlns:android="http://schemas.android.com/apk/res/android" > | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android" > |
3 | 3 | ||
4 | <!-- 点击后的颜色 --> | 4 | <!-- 点击后的颜色 --> |
5 | - <item android:state_pressed="true" android:drawable="@drawable/btn_signin_d"/> | ||
6 | - <item android:state_focused="true" android:drawable="@drawable/btn_agree"/> | 5 | + <item android:state_pressed="true" android:drawable="@drawable/darkgrey_round_button"/> |
6 | + <item android:state_focused="true" android:drawable="@drawable/green_round_button"/> | ||
7 | 7 | ||
8 | - <item android:state_enabled="false" android:drawable="@drawable/btn_signin_d"/> | 8 | + <item android:state_enabled="false" android:drawable="@drawable/darkgrey_round_button"/> |
9 | <!-- 默认 --> | 9 | <!-- 默认 --> |
10 | - <item android:drawable="@drawable/btn_agree"/> | 10 | + <item android:drawable="@drawable/green_round_button"/> |
11 | </selector> | 11 | </selector> |
C5/app/src/main/res/drawable/darkgrey_round_button.xml
0 → 100644
C5/app/src/main/res/drawable/green_round_button.xml
0 → 100644
C5/app/src/main/res/drawable/oppos_selector.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <selector xmlns:android="http://schemas.android.com/apk/res/android" > | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android" > |
3 | <!-- 点击后的颜色 --> | 3 | <!-- 点击后的颜色 --> |
4 | - <item android:state_pressed="true" android:drawable="@drawable/btn_signin_d"/> | ||
5 | - <item android:state_focused="true" android:drawable="@drawable/btn_oppose"/> | 4 | + <item android:state_pressed="true" android:drawable="@drawable/darkgrey_round_button"/> |
5 | + <item android:state_focused="true" android:drawable="@drawable/red_round_button"/> | ||
6 | 6 | ||
7 | - <item android:state_enabled="false" android:drawable="@drawable/btn_signin_d"/> | 7 | + <item android:state_enabled="false" android:drawable="@drawable/darkgrey_round_button"/> |
8 | <!-- 默认 --> | 8 | <!-- 默认 --> |
9 | - <item android:drawable="@drawable/btn_oppose"/> | 9 | + <item android:drawable="@drawable/red_round_button"/> |
10 | 10 | ||
11 | </selector> | 11 | </selector> |
C5/app/src/main/res/drawable/red_round_button.xml
0 → 100644
C5/app/src/main/res/drawable/signin_selector.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <selector xmlns:android="http://schemas.android.com/apk/res/android" > | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android" > |
3 | 3 | ||
4 | - | ||
5 | <!-- 点击后的颜色 --> | 4 | <!-- 点击后的颜色 --> |
6 | <item android:state_pressed="true" android:drawable="@drawable/btn_signin_disable"/> | 5 | <item android:state_pressed="true" android:drawable="@drawable/btn_signin_disable"/> |
7 | <item android:state_focused="true" android:drawable="@drawable/btn_signin_enable"/> | 6 | <item android:state_focused="true" android:drawable="@drawable/btn_signin_enable"/> |
@@ -10,5 +9,4 @@ | @@ -10,5 +9,4 @@ | ||
10 | <!-- 默认 --> | 9 | <!-- 默认 --> |
11 | <item android:drawable="@drawable/btn_signin_enable"/> | 10 | <item android:drawable="@drawable/btn_signin_enable"/> |
12 | 11 | ||
13 | - | ||
14 | </selector> | 12 | </selector> |
C5/app/src/main/res/drawable/yellow_round_button.xml
0 → 100644
C5/app/src/main/res/layout/fragment_election.xml
@@ -37,12 +37,12 @@ | @@ -37,12 +37,12 @@ | ||
37 | 37 | ||
38 | <Button | 38 | <Button |
39 | android:id="@+id/list_election_item_add_btn" | 39 | android:id="@+id/list_election_item_add_btn" |
40 | - android:layout_width="120dp" | ||
41 | - android:layout_height="50dp" | 40 | + android:layout_width="@dimen/px2dp_320" |
41 | + android:layout_height="@dimen/px2dp_90" | ||
42 | android:background="@drawable/agree_selector" | 42 | android:background="@drawable/agree_selector" |
43 | android:text="@string/select_other" | 43 | android:text="@string/select_other" |
44 | android:textColor="@color/white" | 44 | android:textColor="@color/white" |
45 | - android:layout_marginRight="20dp" | 45 | + android:layout_marginRight="@dimen/px2dp_206" |
46 | android:textSize="@dimen/big_text_p5" /> | 46 | android:textSize="@dimen/big_text_p5" /> |
47 | 47 | ||
48 | </LinearLayout> | 48 | </LinearLayout> |
@@ -100,7 +100,7 @@ | @@ -100,7 +100,7 @@ | ||
100 | <RelativeLayout | 100 | <RelativeLayout |
101 | android:id="@+id/election_pannal_bottom" | 101 | android:id="@+id/election_pannal_bottom" |
102 | android:layout_width="match_parent" | 102 | android:layout_width="match_parent" |
103 | - android:layout_height="@dimen/linear_heigh" | 103 | + android:layout_height="@dimen/px2dp_138" |
104 | android:layout_alignParentBottom="true" | 104 | android:layout_alignParentBottom="true" |
105 | android:alpha="0.9" | 105 | android:alpha="0.9" |
106 | android:background="@drawable/gray_alpha" | 106 | android:background="@drawable/gray_alpha" |
@@ -108,26 +108,26 @@ | @@ -108,26 +108,26 @@ | ||
108 | 108 | ||
109 | <Button | 109 | <Button |
110 | android:id="@+id/election_btn_confirm" | 110 | android:id="@+id/election_btn_confirm" |
111 | - android:layout_width="@dimen/button_width" | ||
112 | - android:layout_height="wrap_content" | 111 | + android:layout_width="@dimen/px2dp_420" |
112 | + android:layout_height="@dimen/px2dp_110" | ||
113 | android:layout_centerInParent="true" | 113 | android:layout_centerInParent="true" |
114 | android:layout_marginRight="@dimen/content_margin" | 114 | android:layout_marginRight="@dimen/content_margin" |
115 | android:background="@drawable/oppos_selector" | 115 | android:background="@drawable/oppos_selector" |
116 | android:text="@string/confirm_submit" | 116 | android:text="@string/confirm_submit" |
117 | android:textColor="@color/white" | 117 | android:textColor="@color/white" |
118 | - android:textSize="@dimen/big_text_p5" | 118 | + android:textSize="@dimen/px2sp_60" |
119 | android:textStyle="bold" /> | 119 | android:textStyle="bold" /> |
120 | 120 | ||
121 | <Button | 121 | <Button |
122 | android:id="@+id/election_btn_modify" | 122 | android:id="@+id/election_btn_modify" |
123 | - android:layout_width="@dimen/button_width" | ||
124 | - android:layout_height="wrap_content" | 123 | + android:layout_width="@dimen/px2dp_420" |
124 | + android:layout_height="@dimen/px2dp_110" | ||
125 | android:layout_centerInParent="true" | 125 | android:layout_centerInParent="true" |
126 | android:layout_marginRight="@dimen/content_margin" | 126 | android:layout_marginRight="@dimen/content_margin" |
127 | android:background="@drawable/signin_selector" | 127 | android:background="@drawable/signin_selector" |
128 | android:text="@string/modify" | 128 | android:text="@string/modify" |
129 | android:textColor="@color/white" | 129 | android:textColor="@color/white" |
130 | - android:textSize="@dimen/big_text_p5" | 130 | + android:textSize="@dimen/px2sp_60" |
131 | android:textStyle="bold" | 131 | android:textStyle="bold" |
132 | android:visibility="invisible" /> | 132 | android:visibility="invisible" /> |
133 | </RelativeLayout> | 133 | </RelativeLayout> |
@@ -220,7 +220,8 @@ | @@ -220,7 +220,8 @@ | ||
220 | android:layout_marginRight="20dp" | 220 | android:layout_marginRight="20dp" |
221 | android:layout_marginTop="50dp" | 221 | android:layout_marginTop="50dp" |
222 | android:background="@drawable/right_control" | 222 | android:background="@drawable/right_control" |
223 | - android:orientation="vertical"> | 223 | + android:orientation="vertical" |
224 | + android:visibility="gone"> | ||
224 | 225 | ||
225 | <ImageView | 226 | <ImageView |
226 | android:id="@+id/election_pageup" | 227 | android:id="@+id/election_pageup" |
C5/app/src/main/res/values/color.xml
@@ -164,4 +164,7 @@ | @@ -164,4 +164,7 @@ | ||
164 | 164 | ||
165 | <color name="titile_background_1">#450603</color> | 165 | <color name="titile_background_1">#450603</color> |
166 | 166 | ||
167 | + <color name="green1">#00964d</color> <!--绿色 --> | ||
168 | + <color name="red1">#d50c00</color> <!--红色 --> | ||
169 | + | ||
167 | </resources> | 170 | </resources> |
168 | \ No newline at end of file | 171 | \ No newline at end of file |