Skip to content

Commit 68ef480

Browse files
committed
简单美化
1 parent a7a67dc commit 68ef480

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<RelativeLayout
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
android:id="@+id/activity_main"
5+
android:background="#E5EAE1"
56
android:layout_width="match_parent"
67
android:layout_height="match_parent"
78
android:paddingLeft="@dimen/activity_horizontal_margin"

library/src/main/java/com/h3c/shengshiqu/widget/SSQCustomPicker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void addView(View child, android.view.ViewGroup.LayoutParams params) {
5252
public void updateView(View view) {
5353
if (view instanceof EditText) {
5454
//这里修改字体的属性
55-
((EditText) view).setTextColor(Color.RED);
55+
((EditText) view).setTextColor(Color.parseColor("#464A4C"));
5656
((EditText) view).setTextSize(12);
5757
}
5858
}
@@ -67,7 +67,7 @@ public void setDisplayedValues(String[] displayedValues) {
6767
pf.setAccessible(true);
6868
try {
6969
//设置分割线的颜色值
70-
pf.set(this, new ColorDrawable(Color.BLACK));
70+
pf.set(this, new ColorDrawable(Color.parseColor("#F8A441")));
7171
} catch (Exception e) {
7272
e.printStackTrace();
7373
}

library/src/main/res/layout/dialog_shengshiqu.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:background="#E5EAE1"
34
android:orientation="vertical"
45
android:layout_width="match_parent"
56
android:layout_height="wrap_content">
@@ -16,15 +17,15 @@
1617
<TextView
1718
android:id="@+id/dialog_SSQ_cancelBtn"
1819
android:gravity="center"
19-
android:textColor="@android:color/darker_gray"
20+
android:textColor="#CDC8A9"
2021
android:text="@string/ssq_cancel"
2122
android:layout_weight="1"
2223
android:layout_width="0dp"
2324
android:layout_height="match_parent"/>
2425

2526
<TextView
2627
android:id="@+id/dialog_SSQ_doneBtn"
27-
android:textColor="@android:color/holo_red_dark"
28+
android:textColor="#CB7F2E"
2829
android:gravity="center"
2930
android:text="@string/ssq_ok"
3031
android:layout_weight="1"

0 commit comments

Comments
 (0)