Skip to content

Commit bf7cdf3

Browse files
author
Cristian Avalos
committed
updates quickstart UI
1 parent 0592ce1 commit bf7cdf3

File tree

2 files changed

+67
-35
lines changed

2 files changed

+67
-35
lines changed

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

Lines changed: 62 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,66 @@
1616
android:layout_marginBottom="16dp"
1717
android:src="@drawable/firebase_lockup_400"/>
1818

19-
<TextView
20-
style="@style/TextAppearance.AppCompat.Medium"
21-
android:layout_width="wrap_content"
22-
android:layout_height="wrap_content"
23-
android:layout_marginBottom="8dp"
24-
android:text="@string/title_receive"/>
25-
26-
<TextView
27-
android:id="@+id/linkViewReceive"
28-
android:layout_width="wrap_content"
29-
android:layout_height="wrap_content"
30-
android:autoLink="web"
31-
android:text="@string/msg_no_deep_link"/>
32-
33-
<TextView
34-
style="@style/TextAppearance.AppCompat.Medium"
35-
android:layout_width="wrap_content"
36-
android:layout_height="wrap_content"
37-
android:layout_marginBottom="8dp"
38-
android:layout_marginTop="24dp"
39-
android:text="@string/title_send"/>
40-
41-
<TextView
42-
android:id="@+id/linkViewSend"
43-
android:layout_width="wrap_content"
44-
android:layout_height="wrap_content"
45-
tools:text="https://abc.xyz/foo"/>
46-
47-
<Button
48-
android:id="@+id/buttonShare"
49-
android:layout_width="@dimen/standard_field_width"
50-
android:layout_height="wrap_content"
51-
android:text="@string/share" />
19+
<LinearLayout
20+
android:layout_width="match_parent"
21+
android:layout_height="80dp"
22+
android:orientation="vertical">
23+
<TextView
24+
style="@style/TextAppearance.AppCompat.Medium"
25+
android:layout_width="wrap_content"
26+
android:layout_height="wrap_content"
27+
android:layout_marginBottom="8dp"
28+
android:text="@string/title_receive" />
29+
<TextView
30+
android:id="@+id/linkViewReceive"
31+
android:layout_width="wrap_content"
32+
android:layout_height="wrap_content"
33+
android:autoLink="web"
34+
android:text="@string/msg_no_deep_link" />
35+
</LinearLayout>
36+
<LinearLayout
37+
android:layout_width="match_parent"
38+
android:layout_height="164dp"
39+
android:orientation="vertical">
40+
<TextView
41+
style="@style/TextAppearance.AppCompat.Medium"
42+
android:layout_width="wrap_content"
43+
android:layout_height="wrap_content"
44+
android:layout_marginTop="24dp"
45+
android:layout_marginBottom="8dp"
46+
android:text="@string/dynamic_link" />
47+
<TextView
48+
android:id="@+id/linkViewSend"
49+
android:layout_width="wrap_content"
50+
android:layout_height="wrap_content"
51+
tools:text="https://abc.xyz/foo" />
52+
<Button
53+
android:id="@+id/buttonShare"
54+
android:layout_width="match_parent"
55+
android:layout_height="wrap_content"
56+
android:text="@string/share_dynamic_link" />
57+
</LinearLayout>
58+
<LinearLayout
59+
android:layout_width="match_parent"
60+
android:layout_height="169dp"
61+
android:orientation="vertical">
62+
<TextView
63+
android:id="@+id/textView"
64+
style="@style/TextAppearance.AppCompat.Medium"
65+
android:layout_width="match_parent"
66+
android:layout_height="wrap_content"
67+
android:layout_marginTop="24dp"
68+
android:layout_marginBottom="8dp"
69+
android:text="@string/short_dynamic_link" />
70+
<TextView
71+
android:id="@+id/shortLinkViewSend"
72+
android:layout_width="match_parent"
73+
android:layout_height="wrap_content"
74+
tools:text="https://abc.xyz/foo" />
75+
<Button
76+
android:id="@+id/buttonShareShortLink"
77+
android:layout_width="match_parent"
78+
android:layout_height="wrap_content"
79+
android:text="@string/share_short_link" />
80+
</LinearLayout>
5281
</LinearLayout>
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<resources>
22
<string name="app_name">Firebase Dynamic Links</string>
33

4-
<string name="share">Share</string>
5-
<string name="title_receive">Receive</string>
4+
<string name="share_dynamic_link">Share Dynamic Link</string>
5+
<string name="share_short_link">Share Short Dynamic Link</string>
6+
<string name="dynamic_link">Dynamic Link</string>
7+
<string name="short_dynamic_link">Short Dynamic Link</string>
8+
<string name="title_receive">Deeplink Received</string>
69
<string name="title_send">Send</string>
710
<string name="msg_no_deep_link">No deep link received.</string>
811
</resources>

0 commit comments

Comments
 (0)