mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 11:02:35 +01:00
Move Choose Tabs help message to Action Bar subtitle
This commit is contained in:
parent
160f9df64e
commit
f7a0b9951e
@ -17,6 +17,7 @@ import android.widget.TextView;
|
|||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.appcompat.app.AlertDialog;
|
import androidx.appcompat.app.AlertDialog;
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.appcompat.content.res.AppCompatResources;
|
import androidx.appcompat.content.res.AppCompatResources;
|
||||||
import androidx.appcompat.widget.AppCompatImageView;
|
import androidx.appcompat.widget.AppCompatImageView;
|
||||||
import androidx.fragment.app.Fragment;
|
import androidx.fragment.app.Fragment;
|
||||||
@ -86,6 +87,9 @@ public class ChooseTabsFragment extends Fragment {
|
|||||||
|
|
||||||
selectedTabsAdapter = new SelectedTabsAdapter(requireContext(), itemTouchHelper);
|
selectedTabsAdapter = new SelectedTabsAdapter(requireContext(), itemTouchHelper);
|
||||||
listSelectedTabs.setAdapter(selectedTabsAdapter);
|
listSelectedTabs.setAdapter(selectedTabsAdapter);
|
||||||
|
|
||||||
|
((AppCompatActivity) getActivity()).getSupportActionBar()
|
||||||
|
.setSubtitle(R.string.main_page_content_swipe_remove);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -9,24 +9,9 @@
|
|||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/selectedTabs"
|
android:id="@+id/selectedTabs"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:layout_above="@+id/helpTextView"
|
|
||||||
android:layout_alignParentTop="true"
|
|
||||||
android:layout_marginTop="0dp"
|
|
||||||
tools:listitem="@layout/list_choose_tabs" />
|
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
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||||
android:id="@+id/addTabsButton"
|
android:id="@+id/addTabsButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -432,7 +432,7 @@
|
|||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
<string name="main_page_content">Content of main page</string>
|
<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_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="main_page_content_swipe_remove">Swipe items to remove them</string>
|
||||||
<string name="selection">Selection</string>
|
<string name="selection">Selection</string>
|
||||||
<string name="blank_page_summary">Blank Page</string>
|
<string name="blank_page_summary">Blank Page</string>
|
||||||
<string name="kiosk_page_summary">Kiosk Page</string>
|
<string name="kiosk_page_summary">Kiosk Page</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user