Skip to content

Commit 8a1aeaa

Browse files
committed
* update about UI
1 parent a9ac684 commit 8a1aeaa

File tree

2 files changed

+50
-24
lines changed

2 files changed

+50
-24
lines changed

app/res/layout/acty_about.xml

Lines changed: 50 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
android:layout_height="match_parent"
55
android:gravity="center_horizontal"
66
android:orientation="vertical" >
7-
<include layout="@layout/toolbar" />
7+
8+
<include layout="@layout/toolbar" />
9+
810
<ImageView
911
android:layout_width="wrap_content"
1012
android:layout_height="wrap_content"
@@ -18,20 +20,22 @@
1820
android:text="编程助手 v"
1921
android:textColor="@color/grey_lv_fifth" />
2022

21-
<View
22-
android:layout_width="match_parent"
23-
android:layout_height="2dp"
24-
android:background="@drawable/ic_line_1" />
25-
2623
<TextView
2724
style="@style/TextView.item_main"
2825
android:layout_gravity="left"
2926
android:layout_marginLeft="10dp"
3027
android:layout_marginRight="10dp"
31-
android:layout_marginTop="10dp"
28+
android:layout_marginTop="16dp"
3229
android:gravity="left"
3330
android:text="说明:"
34-
android:textSize="14sp" />
31+
android:textSize="16sp" />
32+
33+
<View
34+
android:layout_width="match_parent"
35+
android:layout_height="2dp"
36+
android:layout_marginLeft="8dp"
37+
android:layout_marginRight="8dp"
38+
android:background="@drawable/ic_line_3" />
3539

3640
<TextView
3741
style="@style/TextView.item_main"
@@ -40,7 +44,7 @@
4044
android:layout_marginRight="10dp"
4145
android:layout_marginTop="4dp"
4246
android:gravity="left"
43-
android:text="1.本软件资料来源于网络(我们全力保留出处),并经过整理得出,如有侵权,请联系我们!"
47+
android:text=" 本软件资料来源于网络(我们全力保留出处),并经过整理得出,如有侵权,请联系我们!"
4448
android:textSize="14sp" />
4549

4650
<TextView
@@ -50,18 +54,26 @@
5054
android:layout_marginRight="10dp"
5155
android:layout_marginTop="4dp"
5256
android:gravity="left"
53-
android:text="2.本软件基于Apache Licence 2.0开源协议"
54-
android:textSize="14sp" />
57+
android:text="2. 本软件基于Apache Licence 2.0开源协议"
58+
android:textSize="14sp"
59+
android:visibility="gone" />
5560

5661
<TextView
5762
style="@style/TextView.item_main"
5863
android:layout_gravity="left"
5964
android:layout_marginLeft="10dp"
6065
android:layout_marginRight="10dp"
61-
android:layout_marginTop="10dp"
66+
android:layout_marginTop="16dp"
6267
android:gravity="left"
6368
android:text="联系我们"
64-
android:textSize="14sp" />
69+
android:textSize="16sp" />
70+
71+
<View
72+
android:layout_width="match_parent"
73+
android:layout_height="2dp"
74+
android:layout_marginLeft="8dp"
75+
android:layout_marginRight="8dp"
76+
android:background="@drawable/ic_line_3" />
6577

6678
<LinearLayout
6779
android:layout_width="match_parent"
@@ -77,12 +89,32 @@
7789
android:textSize="14sp" />
7890

7991
<TextView
80-
android:id="@+id/btn_homepage"
8192
style="@style/TextView.item_main"
93+
android:autoLink="web"
94+
android:clickable="true"
8295
android:text="http://www.iEManual.com"
83-
android:textSize="14sp"
96+
android:textSize="14sp" />
97+
</LinearLayout>
98+
99+
<LinearLayout
100+
android:layout_width="match_parent"
101+
android:layout_height="wrap_content"
102+
android:layout_marginLeft="10dp"
103+
android:layout_marginRight="10dp"
104+
android:layout_marginTop="4dp"
105+
android:orientation="horizontal" >
106+
107+
<TextView
108+
style="@style/TextView.item_main"
109+
android:text="官方博客: "
110+
android:textSize="14sp" />
111+
112+
<TextView
113+
style="@style/TextView.item_main"
114+
android:autoLink="web"
84115
android:clickable="true"
85-
/>
116+
android:text="http://www.iEManual.com/blog"
117+
android:textSize="14sp" />
86118
</LinearLayout>
87119

88120
<LinearLayout
@@ -100,7 +132,8 @@
100132

101133
<TextView
102134
style="@style/TextView.item_main"
103-
android:text="tonjayin@gmail.com"
135+
android:autoLink="email"
136+
android:text="tonjayin+EManual@gmail.com"
104137
android:textSize="14sp" />
105138
</LinearLayout>
106139

app/src/io/github/emanual/app/ui/About.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,4 @@ public class About extends BaseActivity {
4848
return super.onOptionsItemSelected(item);
4949
}
5050

51-
@OnClick(R.id.btn_homepage) public void homepage(TextView tv_homepage) {
52-
Intent intent = new Intent(this, Browser.class);
53-
intent.putExtra(Browser.EXTRA_URL, tv_homepage.getText().toString());
54-
startActivity(intent);
55-
56-
}
57-
5851
}

0 commit comments

Comments
 (0)