363 lines
14 KiB
XML
363 lines
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout
|
|
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"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:id="@+id/llColumn"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/llColumnHeader"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/btn_bg_ddd"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="3dp"
|
|
android:paddingEnd="12dp"
|
|
android:paddingStart="12dp"
|
|
android:paddingTop="3dp"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="bottom"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
<TextView
|
|
android:id="@+id/tvColumnContext"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="end"
|
|
android:paddingEnd="4dp"
|
|
android:paddingStart="4dp"
|
|
android:textColor="?attr/colorColumnHeaderAcct"
|
|
android:textSize="12sp"
|
|
tools:text="tvColumnContext"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvColumnIndex"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:gravity="end"
|
|
android:textColor="?attr/colorColumnHeaderPageNumber"
|
|
android:textSize="12sp"
|
|
tools:text="col 6/12"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="0dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
<ImageView
|
|
android:id="@+id/ivColumnIcon"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:layout_marginEnd="4dp"
|
|
android:importantForAccessibility="no"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvColumnName"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
tools:text="tvColumnName"
|
|
/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/btnColumnSetting"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="2dp"
|
|
android:background="@drawable/btn_bg_transparent"
|
|
android:contentDescription="@string/setting"
|
|
android:src="?attr/ic_tune"
|
|
/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/btnColumnReload"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="2dp"
|
|
android:background="@drawable/btn_bg_transparent"
|
|
android:contentDescription="@string/reload"
|
|
android:src="?attr/btn_refresh"
|
|
/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/btnColumnClose"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="2dp"
|
|
android:background="@drawable/btn_bg_transparent"
|
|
android:contentDescription="@string/close_column"
|
|
android:src="?attr/btn_close"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<jp.juggler.subwaytooter.view.MaxHeightScrollView
|
|
android:id="@+id/llColumnSetting"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fadeScrollbars="false"
|
|
app:maxHeight="240dp"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorColumnSettingBackground"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="3dp"
|
|
android:paddingEnd="12dp"
|
|
android:paddingStart="12dp"
|
|
android:paddingTop="3dp"
|
|
>
|
|
|
|
<CheckBox
|
|
android:id="@+id/cbDontCloseColumn"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/dont_close_column"
|
|
/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/cbWithAttachment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/with_attachment"
|
|
/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/cbDontShowBoost"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/dont_show_boost"
|
|
/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/cbDontShowFavourite"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/dont_show_favourite"
|
|
/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/cbDontShowFollow"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/dont_show_follow"
|
|
/>
|
|
<CheckBox
|
|
android:id="@+id/cbDontShowReply"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/dont_show_reply"
|
|
/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/cbDontStreaming"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/dont_use_streaming_api"
|
|
/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/cbDontAutoRefresh"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/dont_refresh_on_activity_resume"
|
|
/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/cbHideMediaDefault"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/hide_media_default"
|
|
/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/cbEnableSpeech"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/enable_speech"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/llRegexFilter"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:labelFor="@+id/etRegexFilter"
|
|
android:text="@string/regex_filter"
|
|
android:textColor="?attr/colorColumnHeaderPageNumber"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvRegexFilterError"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_weight="1"
|
|
android:textColor="?attr/colorRegexFilterError"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
<EditText
|
|
android:id="@+id/etRegexFilter"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="text"
|
|
android:maxLines="1"
|
|
android:scrollHorizontally="true"
|
|
/>
|
|
|
|
<Button
|
|
android:id="@+id/btnDeleteNotification"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/notification_delete"
|
|
android:textAllCaps="false"
|
|
/>
|
|
|
|
<Button
|
|
android:id="@+id/btnColor"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/color_and_background"
|
|
android:textAllCaps="false"
|
|
/>
|
|
</LinearLayout>
|
|
</jp.juggler.subwaytooter.view.MaxHeightScrollView>
|
|
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/llSearch"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorSearchFormBackground"
|
|
android:paddingBottom="3dp"
|
|
android:paddingEnd="12dp"
|
|
android:paddingStart="12dp"
|
|
android:paddingTop="3dp"
|
|
>
|
|
|
|
<ImageButton
|
|
android:id="@+id/btnSearch"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentTop="true"
|
|
android:background="@drawable/btn_bg_transparent"
|
|
android:contentDescription="@string/search"
|
|
android:src="?attr/ic_search"
|
|
/>
|
|
|
|
<EditText
|
|
android:id="@+id/etSearch"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toStartOf="@id/btnSearch"
|
|
android:imeOptions="actionSearch"
|
|
android:inputType="text"
|
|
tools:ignore="LabelFor"
|
|
/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/cbResolve"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/etSearch"
|
|
android:text="@string/resolve_non_local_account"
|
|
/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/flColumnBackground"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
>
|
|
|
|
<ImageView
|
|
android:id="@+id/ivColumnBackgroundImage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:importantForAccessibility="no"
|
|
android:scaleType="centerCrop"
|
|
android:visibility="gone"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvLoading"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
/>
|
|
|
|
<com.omadahealth.github.swipyrefreshlayout.library.SwipyRefreshLayout
|
|
android:id="@+id/swipyRefreshLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:srl_direction="both"
|
|
>
|
|
|
|
<jp.juggler.subwaytooter.view.MyListView
|
|
android:id="@+id/listView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
|
android:divider="?attr/colorSettingDivider"
|
|
android:dividerHeight="1dp"
|
|
android:fadeScrollbars="false"
|
|
android:fastScrollEnabled="true"
|
|
android:paddingEnd="12dp"
|
|
android:paddingStart="12dp"
|
|
android:scrollbarStyle="outsideOverlay"
|
|
/>
|
|
|
|
</com.omadahealth.github.swipyrefreshlayout.library.SwipyRefreshLayout>
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/vTabletDivider"
|
|
android:layout_width="1dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="end"
|
|
android:background="?attr/colorSettingDivider"
|
|
android:visibility="gone"
|
|
/>
|
|
</FrameLayout> |