Add how to remove tab from main page text

This commit is contained in:
ktprograms 2021-08-24 09:39:18 +08:00
parent bdbb9bead2
commit 160f9df64e
3 changed files with 21 additions and 1 deletions

View File

@ -214,6 +214,10 @@ dependencies {
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation "androidx.room:room-runtime:${androidxRoomVersion}"
implementation "androidx.room:room-rxjava3:${androidxRoomVersion}"
// Apple Silicon Mac workaround (https://issuetracker.google.com/issues/174695268#comment9)
kapt "org.xerial:sqlite-jdbc:3.34.0"
kapt "androidx.room:room-compiler:${androidxRoomVersion}"
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'androidx.webkit:webkit:1.4.0'

View File

@ -9,9 +9,24 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/selectedTabs"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/helpTextView"
android:layout_alignParentTop="true"
android:layout_marginTop="0dp"
tools:listitem="@layout/list_choose_tabs" />
<TextView
android:id="@+id/helpTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:layout_marginStart="8dp"
android:layout_marginBottom="8dp"
android:layout_toStartOf="@id/addTabsButton"
android:text="@string/main_page_content_how_to_remove"
android:textSize="16sp" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/addTabsButton"
android:layout_width="wrap_content"

View File

@ -432,6 +432,7 @@
<!-- Content -->
<string name="main_page_content">Content of main page</string>
<string name="main_page_content_summary">What tabs are shown on the main page</string>
<string name="main_page_content_how_to_remove">Swipe left or right to remove item</string>
<string name="selection">Selection</string>
<string name="blank_page_summary">Blank Page</string>
<string name="kiosk_page_summary">Kiosk Page</string>