2019-04-28 20:43:54 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2020-02-29 04:41:45 +00:00
|
|
|
<FrameLayout
|
2019-04-28 20:43:54 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
2020-02-29 04:41:45 +00:00
|
|
|
android:layout_weight="1">
|
2019-04-28 20:43:54 +00:00
|
|
|
|
2020-02-29 04:41:45 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/options_root"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="180dp"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/icon_preview"
|
|
|
|
android:layout_width="64dp"
|
|
|
|
android:layout_height="64dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:ignore="ContentDescription"
|
2021-03-27 14:45:49 +00:00
|
|
|
tools:src="@drawable/ic_asterisk" />
|
2020-02-29 04:41:45 +00:00
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/group_name_input_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:gravity="center_vertical"
|
2020-09-19 16:01:51 +00:00
|
|
|
android:hint="@string/name"
|
2020-02-29 04:41:45 +00:00
|
|
|
android:paddingTop="6dp"
|
|
|
|
android:paddingBottom="6dp"
|
|
|
|
app:errorEnabled="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/icon_preview"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
2021-09-04 17:40:24 +00:00
|
|
|
<org.schabi.newpipe.views.NewPipeEditText
|
2020-02-29 04:41:45 +00:00
|
|
|
android:id="@+id/group_name_input"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:importantForAutofill="no"
|
|
|
|
android:inputType="textCapSentences"
|
|
|
|
android:maxLines="1"
|
|
|
|
tools:ignore="LabelFor,UnusedAttribute" />
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2019-04-28 20:43:54 +00:00
|
|
|
|
|
|
|
|
2021-09-04 17:32:38 +00:00
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
2020-02-29 04:41:45 +00:00
|
|
|
android:id="@+id/selected_subscription_count_view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/group_name_input_container"
|
|
|
|
tools:text="15 selected" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/select_channel_button"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
android:text="@string/feed_group_dialog_select_subscriptions"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/selected_subscription_count_view" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2019-04-28 20:43:54 +00:00
|
|
|
|
2020-02-29 04:41:45 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/icon_selector"
|
2019-04-28 20:43:54 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-02-29 04:41:45 +00:00
|
|
|
android:clipToPadding="false"
|
|
|
|
android:padding="4dp"
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
android:paddingBottom="16dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
|
|
|
tools:listitem="@layout/picker_icon_item"
|
|
|
|
tools:spanCount="7" />
|
2020-01-30 02:23:10 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
2020-02-29 04:41:45 +00:00
|
|
|
android:id="@+id/subscriptions_selector"
|
2020-01-30 02:23:10 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-05 19:25:44 +00:00
|
|
|
android:orientation="vertical">
|
2020-01-30 02:23:10 +00:00
|
|
|
|
2020-04-05 19:25:44 +00:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
android:id="@+id/subscriptions_header_toolbar"
|
2020-02-29 04:41:45 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-04-05 19:25:44 +00:00
|
|
|
android:layout_height="?attr/actionBarSize"
|
2021-03-29 11:44:29 +00:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:theme="@style/ContrastToolbarTheme">
|
2020-04-05 19:25:44 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/subscriptions_header_info_container"
|
|
|
|
android:layout_width="match_parent"
|
2020-02-29 04:41:45 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="vertical">
|
2020-04-05 19:25:44 +00:00
|
|
|
|
2021-09-04 17:32:38 +00:00
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
2020-04-05 19:25:44 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="start|center_vertical"
|
|
|
|
android:text="@string/tab_subscriptions"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
2021-09-04 17:32:38 +00:00
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
2020-04-05 19:25:44 +00:00
|
|
|
android:id="@+id/subscriptions_header_info"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="start|center_vertical"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
android:textSize="12sp"
|
|
|
|
tools:text="1 selected" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<include
|
|
|
|
android:id="@+id/subscriptions_header_search_container"
|
|
|
|
layout="@layout/toolbar_search_layout"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:visibility="gone" />
|
2020-04-05 19:25:44 +00:00
|
|
|
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
2020-02-29 04:41:45 +00:00
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/subscriptions_selector_list"
|
|
|
|
android:layout_width="match_parent"
|
2020-01-30 02:23:10 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-04-05 19:25:44 +00:00
|
|
|
android:clipToPadding="false"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:padding="2dp"
|
2020-02-29 04:41:45 +00:00
|
|
|
tools:itemCount="200"
|
|
|
|
tools:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
|
|
|
tools:listitem="@layout/picker_subscription_item"
|
|
|
|
tools:spanCount="4" />
|
2020-01-30 02:23:10 +00:00
|
|
|
</LinearLayout>
|
2020-03-05 23:27:00 +00:00
|
|
|
|
2021-09-04 17:32:38 +00:00
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
2020-03-05 23:27:00 +00:00
|
|
|
android:id="@+id/delete_screen_message"
|
|
|
|
style="@style/TextAppearance.AppCompat.Subhead"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:paddingLeft="?dialogPreferredPadding"
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
android:paddingRight="?dialogPreferredPadding"
|
|
|
|
android:paddingBottom="16dp"
|
|
|
|
android:text="@string/feed_group_dialog_delete_message"
|
|
|
|
android:visibility="visible" />
|
2020-02-29 04:41:45 +00:00
|
|
|
</FrameLayout>
|
2019-04-28 20:43:54 +00:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/separator"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?attr/separator_color" />
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingLeft="12dp"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:paddingRight="12dp"
|
|
|
|
android:paddingBottom="4dp">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/delete_button"
|
|
|
|
style="?buttonBarButtonStyle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:minWidth="0dp"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
android:visibility="gone"
|
2021-03-27 14:45:49 +00:00
|
|
|
app:srcCompat="@drawable/ic_delete"
|
2019-04-28 20:43:54 +00:00
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/cancel_button"
|
|
|
|
style="?buttonBarButtonStyle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_toStartOf="@+id/confirm_button"
|
2021-08-04 16:55:32 +00:00
|
|
|
android:text="@string/cancel" />
|
2019-04-28 20:43:54 +00:00
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/confirm_button"
|
|
|
|
style="?buttonBarButtonStyle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:text="@string/create" />
|
|
|
|
</RelativeLayout>
|
2020-04-05 19:25:44 +00:00
|
|
|
</LinearLayout>
|