314 lines
15 KiB
XML
314 lines
15 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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="match_parent"
|
|
android:background="#f5f5f5"
|
|
tools:context=".ui.fragments.AccountFragment">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linear_account"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="12dp"
|
|
android:background="#ffffff"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/text_account"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="7dp"
|
|
android:paddingEnd="7dp"
|
|
android:text="@string/account"
|
|
android:textColor="@android:color/primary_text_light"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linear_account_login"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="7dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:contentDescription="@string/account"
|
|
android:minWidth="48dp"
|
|
android:minHeight="48dp"
|
|
android:padding="9dp"
|
|
android:scaleType="fitXY"
|
|
android:src="@drawable/ic_baseline_account_box_24"
|
|
app:srcCompat="@drawable/ic_baseline_account_box_24" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/text_account_login"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/account_login_ex"
|
|
android:textColor="@android:color/primary_text_light"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_account_login_desc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/account_login_desc"
|
|
android:textColor="@android:color/secondary_text_light" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linear_settings"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="12dp"
|
|
android:background="#ffffff"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/text_settings"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="7dp"
|
|
android:paddingEnd="7dp"
|
|
android:text="@string/settings"
|
|
android:textColor="@android:color/primary_text_light"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linear_settings_secondary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="7dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:contentDescription="@string/settings_secondary"
|
|
android:minWidth="48dp"
|
|
android:minHeight="48dp"
|
|
android:padding="9dp"
|
|
android:scaleType="fitXY"
|
|
android:src="@drawable/ic_baseline_subtitles_24" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linearLayout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/switch_secondary"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/text_settings_secondary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/settings_secondary"
|
|
android:textColor="@android:color/primary_text_light"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_settings_secondary_desc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="2"
|
|
android:text="@string/settings_secondary_desc"
|
|
android:textColor="@android:color/secondary_text_light" />
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/switch_secondary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linear_settings_autoplay"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="7dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView4"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:contentDescription="@string/settings_autoplay"
|
|
android:minWidth="48dp"
|
|
android:minHeight="48dp"
|
|
android:padding="9dp"
|
|
android:src="@drawable/ic_baseline_autorenew_24" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linearLayout2"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/switch_autoplay"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/text_settings_auoplay"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_autoplay"
|
|
android:textColor="@android:color/primary_text_light"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_settings_auoplay_desc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_autoplay_desc"
|
|
android:textColor="@android:color/secondary_text_light" />
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/switch_autoplay"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linear_info"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="12dp"
|
|
android:background="#ffffff"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/text_info"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="7dp"
|
|
android:paddingEnd="7dp"
|
|
android:text="@string/info"
|
|
android:textColor="@android:color/primary_text_light"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linear_about"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="7dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:contentDescription="@string/info"
|
|
android:minWidth="48dp"
|
|
android:minHeight="48dp"
|
|
android:padding="9dp"
|
|
android:scaleType="fitXY"
|
|
app:srcCompat="@drawable/ic_baseline_info_24" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/text_info_about"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/info_about"
|
|
android:textColor="@android:color/primary_text_light"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_info_about_desc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/info_about_desc"
|
|
android:textColor="@android:color/secondary_text_light" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?android:attr/listDivider" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_licenses"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="7dp"
|
|
android:paddingStart="48dp"
|
|
android:paddingEnd="48dp"
|
|
android:text="@string/licenses"
|
|
android:textColor="@android:color/primary_text_light"
|
|
android:textSize="16sp" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |