Skip to content

Commit fae3874

Browse files
committed
详情页面新增浏览器打开、复制链接、分享功能
1 parent 31c696a commit fae3874

File tree

11 files changed

+207
-145
lines changed

11 files changed

+207
-145
lines changed
4.79 KB
Binary file not shown.

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
app:title="@string/go_to_login"
2424
app:titleTextColor="@android:color/white" />
2525

26-
<de.hdodenhof.circleimageview.CircleImageView
26+
<com.fmt.github.common.ui.icfont.IconFontTextView
2727
android:layout_width="wrap_content"
2828
android:layout_height="wrap_content"
2929
android:layout_gravity="center_horizontal"
30-
android:layout_marginTop="@dimen/dp_80"
31-
android:src="@mipmap/ic_github" />
30+
android:layout_marginTop="@dimen/dp_100"
31+
android:text="@string/ic_font_github"
32+
android:textSize="@dimen/dp_100" />
3233

3334
<com.google.android.material.textfield.TextInputLayout
3435
android:id="@+id/mUserNameInputLayout"
@@ -91,15 +92,17 @@
9192
android:layout_marginTop="@dimen/dp_35"
9293
android:visibility="gone" />
9394

94-
<androidx.appcompat.widget.AppCompatImageView
95+
<com.fmt.github.common.ui.icfont.IconFontTextView
9596
android:id="@+id/mOAuthLoginIv"
96-
android:layout_width="@dimen/dp_35"
97+
android:layout_width="wrap_content"
9798
android:layout_height="0dp"
9899
android:layout_gravity="bottom|center"
99100
android:layout_marginBottom="@dimen/dp_20"
100101
android:layout_weight="1"
101-
android:scaleType="fitEnd"
102-
android:src="@mipmap/icon_browser" />
102+
android:gravity="bottom"
103+
android:text="@string/ic_font_browser"
104+
android:textColor="@color/colorPrimary"
105+
android:textSize="@dimen/sp_40" />
103106

104107
<ProgressBar
105108
android:id="@+id/mOAuthProgress"

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

Lines changed: 170 additions & 136 deletions
Large diffs are not rendered by default.

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
android:layout_height="match_parent"
55
android:orientation="vertical">
66

7-
<androidx.appcompat.widget.AppCompatImageView
7+
<com.fmt.github.common.ui.icfont.IconFontTextView
88
android:layout_width="wrap_content"
99
android:layout_height="wrap_content"
1010
android:layout_gravity="center"
1111
android:layout_marginTop="@dimen/dp_100"
12-
android:src="@mipmap/icon_empty" />
12+
android:text="@string/ic_font_empty"
13+
android:textSize="@dimen/dp_80" />
1314

1415
<TextView
1516
android:layout_width="wrap_content"
-5.18 KB
Binary file not shown.
-818 Bytes
Binary file not shown.
-10.7 KB
Binary file not shown.
-938 Bytes
Binary file not shown.

app/src/main/res/values/colors.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<color name="email_text_color">#00EE00</color>
1212
<color name="indicator_color">#3473e0</color>
1313
<color name="version_text_color">#C8C8C8</color>
14+
<color name="repos_info_text_color">#707070</color>
1415
<color name="repos_time_color">#aaaaaa</color>
1516

1617
<integer-array name="github_glyph_colors">

app/src/main/res/values/strings.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
<string name="context_not_null_tip">please init context field in LoaderOptions</string>
7979
<string name="url_not_null_tips">please init url field in LoaderOptions</string>
8080

81+
<string name="ic_font_email">&#xe607;</string>
82+
<string name="ic_font_link">&#xe932;</string>
83+
<string name="ic_font_browser">&#xe606;</string>
84+
<string name="ic_font_github">&#xe690;</string>
85+
<string name="ic_font_empty">&#xe639;</string>
86+
8187
<string-array name="github_glyph_strings">
8288
<item>M256 70.7c-102.6 0-185.9 83.2-185.9 185.9 0 82.1 53.3 151.8 127.1 176.4 9.3 1.7 12.3-4
8389
12.3-8.9V389.4c-51.7 11.3-62.5-21.9-62.5-21.9 -8.4-21.5-20.6-27.2-20.6-27.2 -16.9-11.5 1.3-11.3 1.3-11.3

0 commit comments

Comments
 (0)