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

142 lines
5.5 KiB
XML
Raw Normal View History

2022-05-15 18:38:32 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2022-08-06 23:43:39 +00:00
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="?attr/primaryBlackBackground">
2022-05-15 18:38:32 +00:00
<ScrollView
2022-08-06 23:43:39 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent">
2022-05-15 18:38:32 +00:00
<LinearLayout
2022-08-06 23:43:39 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="vertical">
2022-05-15 18:38:32 +00:00
2022-06-03 17:18:13 +00:00
<LinearLayout
2022-08-06 23:43:39 +00:00
android:id="@+id/settings_profile"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="20dp"
android:visibility="gone"
tools:visibility="visible">
2022-06-03 17:18:13 +00:00
<androidx.cardview.widget.CardView
2022-08-06 23:43:39 +00:00
android:layout_width="50dp"
android:layout_height="50dp"
app:cardCornerRadius="25dp">
2022-06-03 17:18:13 +00:00
<ImageView
2022-08-06 23:43:39 +00:00
android:id="@+id/settings_profile_pic"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="ContentDescription" />
2022-06-03 17:18:13 +00:00
</androidx.cardview.widget.CardView>
<TextView
2022-08-06 23:43:39 +00:00
android:id="@+id/settings_profile_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:textColor="?attr/textColor"
android:textSize="18sp"
android:textStyle="normal"
tools:text="Hello world" />
2022-06-03 17:18:13 +00:00
</LinearLayout>
2022-08-06 23:43:39 +00:00
2022-06-09 13:50:55 +00:00
<TextView
2022-08-06 23:43:39 +00:00
android:id="@+id/settings_general"
style="@style/SettingsItem"
android:nextFocusDown="@id/settings_player"
android:text="@string/category_general" />
2022-06-03 17:18:13 +00:00
2022-05-15 18:38:32 +00:00
<TextView
2022-08-06 23:43:39 +00:00
android:id="@+id/settings_player"
style="@style/SettingsItem"
2022-05-15 18:38:32 +00:00
2022-08-06 23:43:39 +00:00
android:nextFocusUp="@id/settings_general"
android:nextFocusDown="@id/settings_providers"
2022-08-06 23:43:39 +00:00
android:text="@string/category_player" />
2022-05-15 18:38:32 +00:00
<TextView
android:id="@+id/settings_providers"
2022-08-06 23:43:39 +00:00
style="@style/SettingsItem"
2022-05-15 18:38:32 +00:00
2022-08-06 23:43:39 +00:00
android:nextFocusUp="@id/settings_player"
android:nextFocusDown="@id/settings_ui"
android:text="@string/category_providers" />
2022-05-15 18:38:32 +00:00
<TextView
2022-08-06 23:43:39 +00:00
android:id="@+id/settings_ui"
style="@style/SettingsItem"
2022-05-15 18:38:32 +00:00
android:nextFocusUp="@id/settings_providers"
2022-08-06 23:43:39 +00:00
android:nextFocusDown="@id/settings_updates"
android:text="@string/category_ui" />
2022-05-15 18:38:32 +00:00
<TextView
2022-08-06 23:43:39 +00:00
android:id="@+id/settings_updates"
style="@style/SettingsItem"
2022-05-15 18:38:32 +00:00
2022-08-06 23:43:39 +00:00
android:nextFocusUp="@id/settings_ui"
android:nextFocusDown="@id/settings_credits"
android:text="@string/category_updates" />
2022-05-15 18:38:32 +00:00
<TextView
2022-08-06 23:43:39 +00:00
android:id="@+id/settings_credits"
style="@style/SettingsItem"
android:nextFocusUp="@id/settings_updates"
android:text="@string/category_account" />
2022-05-15 18:38:32 +00:00
2022-08-06 23:43:39 +00:00
<TextView
android:id="@+id/settings_extensions"
style="@style/SettingsItem"
android:nextFocusUp="@id/settings_credits"
2022-08-06 23:43:39 +00:00
android:text="@string/extensions" />
2022-05-15 18:38:32 +00:00
2022-08-15 13:27:25 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="10dp"
android:text="@string/app_version"
android:textColor="?attr/textColor" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="10dp"
android:text="•"
android:textColor="?attr/textColor" />
<TextView
2022-08-17 13:51:58 +00:00
android:id="@+id/commit_hash"
2022-08-15 13:27:25 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="10dp"
android:text="@string/commit_hash"
android:textColor="?attr/textColor" />
</LinearLayout>
2022-05-15 18:38:32 +00:00
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>