SubwayTooter-Android-App/app/src/main/res/layout/act_nickname.xml

191 lines
6.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2019-10-06 13:23:33 +02:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/llContent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:paddingStart="12dp"
2019-10-06 13:23:33 +02:00
android:paddingEnd="12dp"
android:text="@string/preview" />
<TextView
android:id="@+id/tvPreview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingStart="12dp"
android:paddingTop="6dp"
2019-10-06 13:23:33 +02:00
android:paddingEnd="12dp"
android:paddingBottom="6dp"
android:textSize="20sp"
2019-10-06 13:23:33 +02:00
tools:text="preview..." />
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:fadeScrollbars="false"
2019-10-06 13:23:33 +02:00
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
2019-10-06 13:23:33 +02:00
android:padding="12dp">
2019-10-06 13:23:33 +02:00
<View style="@style/setting_divider" />
<TextView
style="@style/setting_row_label"
2019-10-06 13:23:33 +02:00
android:text="@string/acct" />
<LinearLayout style="@style/setting_row_form">
<TextView
android:id="@+id/tvAcct"
2019-10-06 13:23:33 +02:00
style="@style/setting_horizontal_stretch" />
</LinearLayout>
2019-10-06 13:23:33 +02:00
<View style="@style/setting_divider" />
<TextView
style="@style/setting_row_label"
android:labelFor="@+id/etNickname"
2019-10-06 13:23:33 +02:00
android:text="@string/nickname" />
<LinearLayout style="@style/setting_row_form">
<EditText
android:id="@+id/etNickname"
style="@style/setting_horizontal_stretch"
2019-10-06 13:23:33 +02:00
android:importantForAutofill="no"
android:inputType="text"
2019-10-06 13:23:33 +02:00
android:maxLines="1" />
</LinearLayout>
2019-10-06 13:23:33 +02:00
<View style="@style/setting_divider" />
<TextView
style="@style/setting_row_label"
2019-10-06 13:23:33 +02:00
android:text="@string/text_color" />
<LinearLayout style="@style/setting_row_form">
<Button
android:id="@+id/btnTextColorEdit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/edit"
2019-10-06 13:23:33 +02:00
android:textAllCaps="false" />
<Button
android:id="@+id/btnTextColorReset"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reset"
2019-10-06 13:23:33 +02:00
android:textAllCaps="false" />
</LinearLayout>
2019-10-06 13:23:33 +02:00
<View style="@style/setting_divider" />
<TextView
style="@style/setting_row_label"
2019-10-06 13:23:33 +02:00
android:text="@string/background_color" />
<LinearLayout style="@style/setting_row_form">
<Button
android:id="@+id/btnBackgroundColorEdit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/edit"
2019-10-06 13:23:33 +02:00
android:textAllCaps="false" />
<Button
android:id="@+id/btnBackgroundColorReset"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reset"
2019-10-06 13:23:33 +02:00
android:textAllCaps="false" />
</LinearLayout>
2019-10-06 13:23:33 +02:00
<View style="@style/setting_divider" />
<LinearLayout
2019-10-06 13:23:33 +02:00
android:id="@+id/llNotificationSound"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-10-06 13:23:33 +02:00
android:orientation="vertical">
<TextView
style="@style/setting_row_label"
2019-10-06 13:23:33 +02:00
android:text="@string/notification_sound_before_oreo" />
<LinearLayout style="@style/setting_row_form">
<Button
android:id="@+id/btnNotificationSoundEdit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/edit"
2019-10-06 13:23:33 +02:00
android:textAllCaps="false" />
<Button
android:id="@+id/btnNotificationSoundReset"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reset"
2019-10-06 13:23:33 +02:00
android:textAllCaps="false" />
</LinearLayout>
2019-10-06 13:23:33 +02:00
<View style="@style/setting_divider" />
</LinearLayout>
</LinearLayout>
</ScrollView>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/nickname_applied_after_reload"
2019-10-06 13:23:33 +02:00
android:textSize="12sp" />
<LinearLayout
style="?android:attr/buttonBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-10-06 13:23:33 +02:00
android:measureWithLargestChild="true">
<Button
android:id="@+id/btnSave"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/save"
2019-10-06 13:23:33 +02:00
android:textAllCaps="false" />
<Button
android:id="@+id/btnDiscard"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/discard"
2019-10-06 13:23:33 +02:00
android:textAllCaps="false" />
</LinearLayout>
</LinearLayout>