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

301 lines
11 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2017-04-28 22:19:32 +02:00
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
2017-04-28 22:19:32 +02:00
xmlns:tools="http://schemas.android.com/tools"
2017-05-06 08:10:05 +02:00
android:id="@+id/viewRoot"
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-04-28 22:19:32 +02:00
android:orientation="vertical"
>
2017-04-28 22:19:32 +02:00
<ScrollView
2017-05-06 08:10:05 +02:00
android:id="@+id/scrollView"
android:layout_width="match_parent"
2017-04-28 22:19:32 +02:00
android:layout_height="0dp"
android:layout_weight="1"
2017-05-06 08:10:05 +02:00
android:cacheColorHint="#00000000"
android:fadeScrollbars="false"
2017-04-28 22:19:32 +02:00
android:fadingEdgeLength="20dp"
2017-05-06 08:10:05 +02:00
android:fillViewport="true"
2017-04-28 22:19:32 +02:00
android:requiresFadingEdge="vertical"
android:scrollbarStyle="outsideOverlay"
>
2017-04-23 07:42:09 +02:00
<LinearLayout
android:id="@+id/llContent"
2017-04-23 07:42:09 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
2017-05-06 08:10:05 +02:00
android:paddingBottom="320dp"
android:paddingEnd="12dp"
2017-05-06 08:10:05 +02:00
android:paddingStart="12dp"
android:paddingTop="12dp"
2017-04-23 07:42:09 +02:00
>
2017-04-28 22:19:32 +02:00
<LinearLayout
android:id="@+id/llReply"
2017-04-23 07:42:09 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-04-28 22:19:32 +02:00
android:layout_marginBottom="4dp"
android:background="?attr/colorReplyBackground"
android:orientation="vertical"
android:padding="6dp"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/reply_to_this_status"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
>
<jp.juggler.subwaytooter.view.MyNetworkImageView
2017-04-28 22:19:32 +02:00
android:id="@+id/ivReply"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginEnd="8dp"
android:background="@drawable/btn_bg_transparent"
android:scaleType="fitCenter"
/>
<TextView
android:id="@+id/tvReplyTo"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical"
/>
<ImageButton
android:id="@+id/btnRemoveReply"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginStart="4dp"
android:background="@drawable/btn_bg_transparent"
android:gravity="center_vertical"
android:src="?attr/btn_close"
android:contentDescription="@string/delete"
2017-04-28 22:19:32 +02:00
/>
</LinearLayout>
</LinearLayout>
2017-04-23 07:42:09 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<TextView
2017-04-28 22:19:32 +02:00
android:layout_width="wrap_content"
2017-04-23 07:42:09 +02:00
android:layout_height="wrap_content"
2017-04-28 22:19:32 +02:00
android:layout_marginEnd="4dp"
android:text="@string/post_from"
2017-04-23 07:42:09 +02:00
/>
2017-04-28 22:19:32 +02:00
<Button
android:id="@+id/btnAccount"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
2017-04-23 07:42:09 +02:00
android:background="@drawable/btn_bg_transparent"
android:gravity="center_vertical"
2017-04-28 22:19:32 +02:00
android:paddingEnd="8dp"
android:paddingStart="8dp"
android:textAllCaps="false"
2017-04-23 07:42:09 +02:00
/>
</LinearLayout>
2017-04-28 22:19:32 +02:00
<LinearLayout
android:id="@+id/llAttachment"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="4dp"
android:baselineAligned="false"
android:gravity="center_vertical"
android:orientation="horizontal"
>
<jp.juggler.subwaytooter.view.MyNetworkImageView
2017-04-28 22:19:32 +02:00
android:id="@+id/ivMedia1"
android:layout_width="48dp"
android:layout_height="match_parent"
android:background="@drawable/btn_bg_transparent"
android:scaleType="fitCenter"
/>
<jp.juggler.subwaytooter.view.MyNetworkImageView
2017-04-28 22:19:32 +02:00
android:id="@+id/ivMedia2"
android:layout_width="48dp"
android:layout_height="match_parent"
android:layout_marginStart="4dp"
android:background="@drawable/btn_bg_transparent"
android:scaleType="fitCenter"
/>
<jp.juggler.subwaytooter.view.MyNetworkImageView
2017-04-28 22:19:32 +02:00
android:id="@+id/ivMedia3"
android:layout_width="48dp"
android:layout_height="match_parent"
android:layout_marginStart="4dp"
android:background="@drawable/btn_bg_transparent"
android:scaleType="fitCenter"
/>
<jp.juggler.subwaytooter.view.MyNetworkImageView
2017-04-28 22:19:32 +02:00
android:id="@+id/ivMedia4"
android:layout_width="48dp"
android:layout_height="match_parent"
android:layout_marginStart="4dp"
android:background="@drawable/btn_bg_transparent"
android:scaleType="fitCenter"
/>
2017-04-28 22:19:32 +02:00
<CheckBox
android:id="@+id/cbNSFW"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|start"
android:layout_marginStart="4dp"
android:text="@string/nsfw"
/>
</LinearLayout>
2017-04-28 22:19:32 +02:00
<CheckBox
android:id="@+id/cbContentWarning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-04-28 22:19:32 +02:00
android:layout_marginTop="4dp"
android:text="@string/content_warning"
/>
2017-04-28 22:19:32 +02:00
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-04-28 22:19:32 +02:00
android:background="?attr/colorPostFormBackground"
>
<jp.juggler.subwaytooter.view.MyEditText
2017-04-28 22:19:32 +02:00
android:id="@+id/etContentWarning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/content_warning_hint"
android:inputType="text"
/>
</FrameLayout>
<TextView
2017-04-28 22:19:32 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/status"
/>
2017-04-28 22:19:32 +02:00
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-04-28 22:19:32 +02:00
android:background="?attr/colorPostFormBackground"
>
<jp.juggler.subwaytooter.view.MyEditText
2017-04-28 22:19:32 +02:00
android:id="@+id/etContent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start|top"
android:hint="@string/content_hint"
android:inputType="textMultiLine"
android:minLines="5"
/>
2017-04-28 22:19:32 +02:00
</FrameLayout>
2017-04-28 22:19:32 +02:00
</LinearLayout>
2017-04-28 22:19:32 +02:00
</ScrollView>
2017-04-28 22:19:32 +02:00
<LinearLayout
android:id="@+id/llFooterBar"
2017-04-28 22:19:32 +02:00
android:layout_width="match_parent"
2017-05-06 08:10:05 +02:00
android:layout_height="48dp"
2017-04-28 22:19:32 +02:00
android:background="?attr/color_column_header"
android:baselineAligned="false"
android:orientation="horizontal"
>
2017-04-28 22:19:32 +02:00
<ImageButton
android:id="@+id/btnAttachment"
2017-05-06 08:10:05 +02:00
android:layout_width="48dp"
android:layout_height="48dp"
2017-04-28 22:19:32 +02:00
android:background="@drawable/btn_bg_transparent"
2017-05-06 08:10:05 +02:00
android:contentDescription="@string/media_attachment"
2017-04-28 22:19:32 +02:00
android:src="?attr/btn_attachment"
/>
2017-04-28 22:19:32 +02:00
<ImageButton
android:id="@+id/btnVisibility"
2017-05-06 08:10:05 +02:00
android:layout_width="48dp"
android:layout_height="48dp"
2017-04-28 22:19:32 +02:00
android:layout_marginStart="4dp"
android:background="@drawable/btn_bg_transparent"
2017-05-06 08:10:05 +02:00
android:contentDescription="@string/visibility"
2017-04-28 22:19:32 +02:00
android:minHeight="48dp"
android:minWidth="48dp"
tools:src="?attr/ic_public"
/>
2017-05-27 00:36:08 +02:00
<ImageButton
android:id="@+id/btnPlugin"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginStart="4dp"
android:background="@drawable/btn_bg_transparent"
android:contentDescription="@string/plugin"
android:src="?attr/ic_plugin"
/>
2017-05-06 08:10:05 +02:00
<ImageButton
android:id="@+id/btnMore"
2017-05-06 08:10:05 +02:00
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginStart="4dp"
2017-05-06 08:10:05 +02:00
android:background="@drawable/btn_bg_transparent"
android:contentDescription="@string/more"
android:src="?attr/btn_more"
2017-05-06 08:10:05 +02:00
/>
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"
/>
<TextView
2017-04-28 22:19:32 +02:00
android:id="@+id/tvCharCount"
2017-05-06 08:10:05 +02:00
android:layout_width="wrap_content"
android:layout_height="48dp"
2017-04-28 22:19:32 +02:00
android:layout_marginEnd="4dp"
android:layout_weight="1"
android:gravity="end|center_vertical"
2017-05-06 08:10:05 +02:00
android:minWidth="32dp"
2017-04-28 22:19:32 +02:00
tools:text="-500"
tools:textColor="#f00"
/>
2017-04-28 22:19:32 +02:00
<ImageButton
android:id="@+id/btnPost"
2017-05-06 08:10:05 +02:00
android:layout_width="48dp"
android:layout_height="48dp"
2017-04-28 22:19:32 +02:00
android:background="@drawable/btn_bg_transparent"
2017-05-06 08:10:05 +02:00
android:contentDescription="@string/toot"
2017-04-28 22:19:32 +02:00
android:src="?attr/btn_post"
/>
</LinearLayout>
2017-04-28 22:19:32 +02:00
</LinearLayout>