2017-05-07 20:16:41 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<ScrollView
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-05-15 19:44:40 +02:00
|
|
|
android:id="@+id/svContent"
|
2017-05-07 20:16:41 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-05-13 00:53:42 +02:00
|
|
|
|
|
|
|
android:clipToPadding="false"
|
2017-05-15 19:44:40 +02:00
|
|
|
android:fillViewport="true"
|
|
|
|
android:paddingBottom="12dp"
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
android:scrollbarStyle="outsideOverlay"
|
2017-05-07 20:16:41 +02:00
|
|
|
>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
<View style="@style/setting_divider"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/column_header"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/llColumnHeader"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-15 19:44:40 +02:00
|
|
|
android:layout_marginBottom="6dp"
|
2017-05-07 20:16:41 +02:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
android:paddingTop="3dp"
|
|
|
|
>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/ivColumnHeader"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
tools:src="?attr/btn_federate_tl"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvColumnName"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
tools:text="@string/federate_timeline"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/background_color"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnHeaderBackgroundEdit"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/edit"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnHeaderBackgroundReset"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/reset"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/foreground_color"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnHeaderTextEdit"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/edit"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnHeaderTextReset"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/reset"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View style="@style/setting_divider"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
2017-08-11 17:21:26 +02:00
|
|
|
android:text="@string/column"
|
2017-05-07 20:16:41 +02:00
|
|
|
/>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/flColumnBackground"
|
|
|
|
android:layout_width="match_parent"
|
2017-08-11 17:21:26 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-05-07 20:16:41 +02:00
|
|
|
>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/ivColumnBackground"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
/>
|
2017-08-11 17:21:26 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="12dp"
|
|
|
|
android:orientation="vertical"
|
|
|
|
>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?attr/colorTimeSmall"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:text="username@instance"
|
|
|
|
android:id="@+id/tvSampleAcct"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<jp.juggler.subwaytooter.view.MyTextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:lineSpacingMultiplier="1.1"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/content"
|
|
|
|
android:id="@+id/tvSampleContent"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
2017-05-07 20:16:41 +02:00
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
2017-08-11 17:21:26 +02:00
|
|
|
android:text="@string/background_color"
|
2017-05-07 20:16:41 +02:00
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnColumnBackgroundColor"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/edit"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnColumnBackgroundColorReset"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/reset"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
2017-08-11 17:21:26 +02:00
|
|
|
android:text="@string/background_image"
|
2017-05-07 20:16:41 +02:00
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnColumnBackgroundImage"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/pick_image"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnColumnBackgroundImageReset"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/reset"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
2017-05-15 19:44:40 +02:00
|
|
|
android:labelFor="@+id/etAlpha"
|
2017-08-11 17:21:26 +02:00
|
|
|
android:text="@string/background_image_alpha"
|
2017-05-07 20:16:41 +02:00
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-05-15 19:44:40 +02:00
|
|
|
<LinearLayout
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
/>
|
2017-05-07 20:16:41 +02:00
|
|
|
|
2017-05-15 15:15:00 +02:00
|
|
|
<EditText
|
2017-05-15 19:44:40 +02:00
|
|
|
android:id="@+id/etAlpha"
|
2017-05-15 15:15:00 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
2017-05-15 19:44:40 +02:00
|
|
|
android:digits="0123456789.,"
|
2017-05-15 15:15:00 +02:00
|
|
|
android:inputType="numberDecimal"
|
2017-05-15 19:44:40 +02:00
|
|
|
android:maxLines="1"
|
|
|
|
android:minLines="1"
|
2017-05-15 15:15:00 +02:00
|
|
|
android:minWidth="64dp"
|
|
|
|
/>
|
2017-05-15 19:44:40 +02:00
|
|
|
|
2017-05-07 20:16:41 +02:00
|
|
|
<SeekBar
|
|
|
|
android:id="@+id/sbColumnBackgroundAlpha"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:paddingEnd="32dp"
|
|
|
|
android:paddingStart="32dp"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-08-11 17:21:26 +02:00
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/acct_color"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnAcctColor"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/edit"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnAcctColorReset"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/reset"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/content_color"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnContentColor"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/edit"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnContentColorReset"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/reset"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-05-07 20:16:41 +02:00
|
|
|
<View style="@style/setting_divider"/>
|
2017-08-11 17:21:26 +02:00
|
|
|
|
2017-05-07 20:16:41 +02:00
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|