Skip to content

Commit 47ac984

Browse files
author
Targholi
committed
add app logo in login_fragment.
1 parent d29a01a commit 47ac984

File tree

3 files changed

+40
-17
lines changed

3 files changed

+40
-17
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,9 @@
721721
set_readme="@{viewmodel.markdown}"
722722
android:layout_width="0dp"
723723
android:layout_height="wrap_content"
724+
android:layout_marginStart="16dp"
724725
android:layout_marginTop="8dp"
725-
android:layout_marginBottom="8dp"
726+
android:layout_marginEnd="16dp"
726727
android:paddingBottom="16dp"
727728
app:layout_constraintEnd_toEndOf="parent"
728729
app:layout_constraintStart_toStartOf="parent"

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

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,37 @@
1111
android:id="@+id/github_login_btn"
1212
android:layout_width="wrap_content"
1313
android:layout_height="wrap_content"
14-
android:layout_marginBottom="200dp"
1514
android:drawableEnd="@drawable/ic_github"
1615
android:drawablePadding="8dp"
1716
android:paddingStart="15dp"
1817
android:paddingEnd="15dp"
1918
android:text="Sign In With GitHub"
20-
app:layout_constraintBottom_toBottomOf="parent"
19+
app:layout_constraintBottom_toTopOf="@+id/guideline4"
2120
app:layout_constraintEnd_toEndOf="parent"
2221
app:layout_constraintStart_toStartOf="parent"
23-
app:layout_constraintTop_toTopOf="parent"
24-
app:layout_constraintVertical_bias="1.0" />
22+
app:layout_constraintTop_toTopOf="@+id/guideline4" />
23+
24+
<ImageView
25+
android:id="@+id/imageView"
26+
android:layout_width="150dp"
27+
android:layout_height="150dp"
28+
android:src="@mipmap/ic_launcher_foreground"
29+
app:layout_constraintBottom_toTopOf="@+id/guideline2"
30+
app:layout_constraintEnd_toEndOf="parent"
31+
app:layout_constraintStart_toStartOf="parent"
32+
app:layout_constraintTop_toTopOf="@+id/guideline2" />
33+
34+
<androidx.constraintlayout.widget.Guideline
35+
android:id="@+id/guideline2"
36+
android:layout_width="wrap_content"
37+
android:layout_height="wrap_content"
38+
android:orientation="horizontal"
39+
app:layout_constraintGuide_percent="0.2" />
40+
41+
<androidx.constraintlayout.widget.Guideline
42+
android:id="@+id/guideline4"
43+
android:layout_width="wrap_content"
44+
android:layout_height="wrap_content"
45+
android:orientation="horizontal"
46+
app:layout_constraintGuide_percent="0.8" />
2547
</androidx.constraintlayout.widget.ConstraintLayout>

app/src/main/res/navigation/app_navigation.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@
7878
<deepLink
7979
app:action="ACTION_VIEW"
8080
app:uri="githoob://repository/?token={token}&amp;userId={userId}" />
81-
<deepLink
82-
app:action="ACTION_VIEW"
83-
app:uri="https://github.com/{userId}?tab=repositories" />
81+
<!-- <deepLink-->
82+
<!-- app:action="ACTION_VIEW"-->
83+
<!-- app:uri="https://github.com/{userId}?tab=repositories" />-->
8484
</fragment>
8585
<fragment
8686
tools:layout="@layout/profile_stared_fragment"
@@ -100,9 +100,9 @@
100100
<deepLink
101101
app:action="ACTION_VIEW"
102102
app:uri="githoob://starred/?token={token}&amp;userId={userId}" />
103-
<deepLink
104-
app:action="ACTION_VIEW"
105-
app:uri="https://github.com/{userId}?tab=starred" />
103+
<!-- <deepLink-->
104+
<!-- app:action="ACTION_VIEW"-->
105+
<!-- app:uri="https://github.com/{userId}?tab=starred" />-->
106106
</fragment>
107107
<fragment
108108
android:id="@+id/profileOrgFragment"
@@ -180,12 +180,12 @@
180180
<deepLink
181181
app:action="ACTION_VIEW"
182182
app:uri="githoob://connection/?token={token}&amp;userId={userId}&amp;tab={tab}" />
183-
<deepLink
184-
app:action="ACTION_VIEW"
185-
app:uri="https://github.com/{userId}?tab=following" />
186-
<deepLink
187-
app:action="ACTION_VIEW"
188-
app:uri="https://github.com/{userId}?tab=followers" />
183+
<!-- <deepLink-->
184+
<!-- app:action="ACTION_VIEW"-->
185+
<!-- app:uri="https://github.com/{userId}?tab=following" />-->
186+
<!-- <deepLink-->
187+
<!-- app:action="ACTION_VIEW"-->
188+
<!-- app:uri="https://github.com/{userId}?tab=followers" />-->
189189

190190
</fragment>
191191
</navigation>

0 commit comments

Comments
 (0)