cloudstream/app/src/main/res/layout/home_select_mainpage.xml

124 lines
5.3 KiB
XML
Raw Normal View History

2021-12-26 00:05:10 +00:00
<?xml version="1.0" encoding="utf-8"?>
2022-01-29 18:57:19 +00:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
2021-12-26 00:05:10 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ListView
android:clipToPadding="false"
android:nextFocusRight="@id/cancel_btt"
android:nextFocusLeft="@id/apply_btt"
android:id="@+id/listview1"
2022-01-14 18:14:24 +00:00
android:layout_marginBottom="60dp"
2021-12-26 00:05:10 +00:00
android:minHeight="0dp"
android:layout_marginTop="10dp"
android:requiresFadingEdge="vertical"
tools:listitem="@layout/sort_bottom_single_choice"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-01-29 18:57:19 +00:00
android:layout_rowWeight="1" />
2021-12-26 00:05:10 +00:00
<HorizontalScrollView
2022-01-14 18:14:24 +00:00
android:layout_marginTop="-60dp"
2021-12-26 00:05:10 +00:00
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:clipToPadding="true"
android:fadingEdge="horizontal"
android:requiresFadingEdge="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
2022-01-29 18:57:19 +00:00
2021-12-26 00:05:10 +00:00
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<!-- android:minWidth="0dp"
app:iconTint="?attr/textColor"
android:insetLeft="0dp"
android:insetTop="0dp"
android:insetRight="0dp"
android:insetBottom="0dp"
app:iconGravity="textStart"
app:iconPadding="0dp"
android:layout_height="35dp"-->
<!-- <com.google.android.material.button.MaterialButton
android:nextFocusRight="@id/home_select_tv_series"
app:icon="@drawable/ic_baseline_close_24"
android:id="@+id/home_select_none"
style="@style/RoundedSelectableButtonIcon"/>-->
<com.google.android.material.button.MaterialButton
android:nextFocusRight="@id/home_select_tv_series"
android:id="@+id/home_select_movies"
android:text="@string/movies"
2022-01-29 18:57:19 +00:00
style="@style/RoundedSelectableButton" />
2021-12-26 00:05:10 +00:00
<com.google.android.material.button.MaterialButton
android:nextFocusLeft="@id/home_select_movies"
android:nextFocusRight="@id/home_select_anime"
android:id="@+id/home_select_tv_series"
android:text="@string/tv_series"
2022-01-29 18:57:19 +00:00
style="@style/RoundedSelectableButton" />
2021-12-26 00:05:10 +00:00
<com.google.android.material.button.MaterialButton
android:nextFocusLeft="@id/home_select_tv_series"
2022-03-21 11:07:36 +00:00
android:nextFocusRight="@id/home_select_asian"
2021-12-26 00:05:10 +00:00
android:id="@+id/home_select_anime"
android:text="@string/anime"
2022-01-29 18:57:19 +00:00
style="@style/RoundedSelectableButton" />
2021-12-26 00:05:10 +00:00
<com.google.android.material.button.MaterialButton
android:nextFocusLeft="@id/home_select_anime"
2022-03-21 11:07:36 +00:00
android:nextFocusRight="@id/home_select_cartoons"
android:id="@+id/home_select_asian"
android:text="@string/asian_drama"
style="@style/RoundedSelectableButton" />
<com.google.android.material.button.MaterialButton
android:nextFocusLeft="@id/home_select_asian"
2021-12-26 00:05:10 +00:00
android:nextFocusRight="@id/home_select_documentaries"
android:id="@+id/home_select_cartoons"
android:text="@string/cartoons"
2022-01-29 18:57:19 +00:00
style="@style/RoundedSelectableButton" />
2021-12-26 00:05:10 +00:00
<com.google.android.material.button.MaterialButton
android:nextFocusLeft="@id/home_select_cartoons"
android:id="@+id/home_select_documentaries"
android:text="@string/documentaries"
2022-01-29 18:57:19 +00:00
style="@style/RoundedSelectableButton" />
2021-12-26 00:05:10 +00:00
</LinearLayout>
</HorizontalScrollView>
2022-01-29 18:57:19 +00:00
2021-12-26 00:05:10 +00:00
<LinearLayout
android:visibility="gone"
android:id="@+id/apply_btt_holder"
android:orientation="horizontal"
android:layout_gravity="bottom"
android:gravity="bottom|end"
android:layout_width="match_parent"
android:layout_height="60dp">
<com.google.android.material.button.MaterialButton
style="@style/WhiteButton"
android:layout_gravity="center_vertical|end"
android:text="@string/sort_apply"
android:id="@+id/apply_btt"
2022-01-29 18:57:19 +00:00
android:layout_width="wrap_content" />
2021-12-26 00:05:10 +00:00
<com.google.android.material.button.MaterialButton
style="@style/BlackButton"
android:layout_gravity="center_vertical|end"
android:text="@string/sort_cancel"
android:id="@+id/cancel_btt"
2022-01-29 18:57:19 +00:00
android:layout_width="wrap_content" />
2021-12-26 00:05:10 +00:00
</LinearLayout>
</LinearLayout>