Skip to content

Commit 160f9df

Browse files
committed
Add how to remove tab from main page text
1 parent bdbb9be commit 160f9df

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ dependencies {
214214
implementation 'androidx.recyclerview:recyclerview:1.1.0'
215215
implementation "androidx.room:room-runtime:${androidxRoomVersion}"
216216
implementation "androidx.room:room-rxjava3:${androidxRoomVersion}"
217+
218+
// Apple Silicon Mac workaround (https://issuetracker.google.com/issues/174695268#comment9)
219+
kapt "org.xerial:sqlite-jdbc:3.34.0"
220+
217221
kapt "androidx.room:room-compiler:${androidxRoomVersion}"
218222
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
219223
implementation 'androidx.webkit:webkit:1.4.0'

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,24 @@
99
<androidx.recyclerview.widget.RecyclerView
1010
android:id="@+id/selectedTabs"
1111
android:layout_width="match_parent"
12-
android:layout_height="match_parent"
12+
android:layout_height="wrap_content"
13+
android:layout_above="@+id/helpTextView"
14+
android:layout_alignParentTop="true"
15+
android:layout_marginTop="0dp"
1316
tools:listitem="@layout/list_choose_tabs" />
1417

18+
<TextView
19+
android:id="@+id/helpTextView"
20+
android:layout_width="wrap_content"
21+
android:layout_height="wrap_content"
22+
android:layout_alignParentStart="true"
23+
android:layout_alignParentBottom="true"
24+
android:layout_marginStart="8dp"
25+
android:layout_marginBottom="8dp"
26+
android:layout_toStartOf="@id/addTabsButton"
27+
android:text="@string/main_page_content_how_to_remove"
28+
android:textSize="16sp" />
29+
1530
<com.google.android.material.floatingactionbutton.FloatingActionButton
1631
android:id="@+id/addTabsButton"
1732
android:layout_width="wrap_content"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@
432432
<!-- Content -->
433433
<string name="main_page_content">Content of main page</string>
434434
<string name="main_page_content_summary">What tabs are shown on the main page</string>
435+
<string name="main_page_content_how_to_remove">Swipe left or right to remove item</string>
435436
<string name="selection">Selection</string>
436437
<string name="blank_page_summary">Blank Page</string>
437438
<string name="kiosk_page_summary">Kiosk Page</string>

0 commit comments

Comments
 (0)