Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.

Commit 59e0fe1

Browse files
author
William Mora
committed
removed LinearLayout as template parent. Closes #99
1 parent ba4ddbe commit 59e0fe1

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

lib/src/main/res/layout/sb__template.xml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,19 @@
22

33
<merge xmlns:android="http://schemas.android.com/apk/res/android">
44

5-
<LinearLayout
6-
android:layout_width="match_parent"
5+
<TextView
6+
android:id="@+id/sb__text"
7+
style="@style/Snackbar.Text"
8+
android:layout_width="0dp"
79
android:layout_height="wrap_content"
8-
android:orientation="horizontal">
10+
android:layout_weight="1"
11+
android:ellipsize="end" />
912

10-
11-
<TextView
12-
android:id="@+id/sb__text"
13-
style="@style/Snackbar.Text"
14-
android:layout_width="wrap_content"
15-
android:layout_height="wrap_content"
16-
android:layout_weight="1"
17-
android:ellipsize="end" />
18-
19-
<TextView
20-
android:id="@+id/sb__action"
21-
style="@style/Snackbar.Text.Action"
22-
android:layout_width="wrap_content"
23-
android:layout_height="match_parent"
24-
android:gravity="right" />
25-
26-
</LinearLayout>
13+
<TextView
14+
android:id="@+id/sb__action"
15+
style="@style/Snackbar.Text.Action"
16+
android:layout_width="wrap_content"
17+
android:layout_height="match_parent"
18+
android:gravity="right" />
2719

2820
</merge>

0 commit comments

Comments
 (0)