2017-01-08 09:24:02 +11:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-04-12 14:21:52 +10:00
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-01-17 05:15:42 +11:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:id="@+id/activity_compose"
|
|
|
|
android:layout_width="match_parent"
|
2017-03-08 00:09:33 +11:00
|
|
|
android:layout_height="match_parent">
|
2017-01-08 09:24:02 +11:00
|
|
|
|
2017-01-17 05:15:42 +11:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2017-03-08 00:09:33 +11:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
2017-03-11 04:38:49 +11:00
|
|
|
|
2017-03-08 00:09:33 +11:00
|
|
|
<android.support.v7.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
2017-02-04 11:53:33 +11:00
|
|
|
android:layout_width="match_parent"
|
2017-03-08 00:09:33 +11:00
|
|
|
android:layout_height="?attr/actionBarSize"
|
2017-03-11 04:38:49 +11:00
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:background="@android:color/transparent"
|
2017-03-29 15:22:14 +11:00
|
|
|
android:elevation="4dp" />
|
2017-01-17 05:15:42 +11:00
|
|
|
|
2017-04-21 15:08:38 +10:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/compose_content_warning_bar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_marginBottom="8dp">
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/field_content_warning"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:ems="10"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:hint="@string/hint_content_warning"
|
|
|
|
android:inputType="text|textCapSentences" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?android:attr/listDivider"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-03-08 00:09:33 +11:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1"
|
2017-03-11 04:38:49 +11:00
|
|
|
android:paddingBottom="4dp"
|
2017-03-08 00:09:33 +11:00
|
|
|
android:paddingLeft="16dp"
|
2017-03-11 04:38:49 +11:00
|
|
|
android:paddingRight="16dp">
|
2017-01-08 09:24:02 +11:00
|
|
|
|
2017-05-05 08:55:34 +10:00
|
|
|
<com.keylesspalace.tusky.util.EditTextTyped
|
2017-05-03 08:17:54 +10:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:id="@+id/compose_edit_field"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:ems="10"
|
|
|
|
android:gravity="start|top"
|
|
|
|
android:hint="@string/hint_compose"
|
|
|
|
android:inputType="text|textMultiLine|textCapSentences" />
|
2017-01-08 09:24:02 +11:00
|
|
|
|
2017-03-11 04:38:49 +11:00
|
|
|
<HorizontalScrollView
|
2017-03-08 00:09:33 +11:00
|
|
|
android:layout_width="match_parent"
|
2017-04-11 00:23:44 +10:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true">
|
|
|
|
|
2017-03-11 04:38:49 +11:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/compose_media_preview_bar"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
2017-01-08 09:24:02 +11:00
|
|
|
|
2017-03-11 04:38:49 +11:00
|
|
|
<!--This is filled at runtime with ImageView's for each preview in the upload queue.-->
|
2017-01-08 09:24:02 +11:00
|
|
|
|
2017-03-11 04:38:49 +11:00
|
|
|
</LinearLayout>
|
|
|
|
</HorizontalScrollView>
|
2017-01-08 09:24:02 +11:00
|
|
|
|
2017-04-11 00:23:44 +10:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/postProgress"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_centerVertical="true" />
|
|
|
|
|
2017-03-08 00:09:33 +11:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2017-03-11 04:38:49 +11:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingBottom="8dp"
|
2017-03-08 00:09:33 +11:00
|
|
|
android:paddingLeft="16dp"
|
2017-03-11 04:38:49 +11:00
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:paddingTop="4dp">
|
|
|
|
|
2017-04-16 01:43:26 +10:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/compose_photo_take"
|
|
|
|
style="?attr/image_button_style"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
app:srcCompat="@drawable/ic_camera_24dp"
|
|
|
|
android:contentDescription="@string/action_photo_take" />
|
|
|
|
|
2017-03-11 04:38:49 +11:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/compose_photo_pick"
|
|
|
|
style="?attr/image_button_style"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_marginRight="8dp"
|
2017-04-12 14:21:52 +10:00
|
|
|
app:srcCompat="@drawable/ic_attach_file_24dp"
|
|
|
|
android:contentDescription="@string/action_photo_pick" />
|
2017-03-11 04:38:49 +11:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/action_toggle_visibility"
|
|
|
|
style="?attr/image_button_style"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_marginRight="8dp"
|
2017-04-12 14:21:52 +10:00
|
|
|
app:srcCompat="@drawable/ic_public_24dp"
|
|
|
|
android:contentDescription="@string/action_compose_options" />
|
2017-03-11 04:38:49 +11:00
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/action_toggle_nsfw"
|
|
|
|
style="?attr/image_button_style"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minWidth="0dp"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="8dp"
|
|
|
|
android:visibility="gone"
|
2017-03-29 15:22:14 +11:00
|
|
|
android:textColor="?attr/compose_nsfw_button_color"
|
2017-03-11 04:38:49 +11:00
|
|
|
android:text="@string/toggle_nsfw" />
|
|
|
|
|
|
|
|
<android.support.v4.widget.Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1" />
|
2017-03-08 00:09:33 +11:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/characters_left"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-03-11 04:38:49 +11:00
|
|
|
android:text="500"
|
|
|
|
android:textColor="?android:textColorPrimary" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/floating_btn"
|
2017-04-11 00:23:44 +10:00
|
|
|
android:background="@drawable/compose_button_colors"
|
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="35dp"
|
2017-03-11 04:38:49 +11:00
|
|
|
android:layout_marginLeft="10dp"
|
2017-03-31 10:23:43 +11:00
|
|
|
android:text="@string/action_send"
|
|
|
|
android:textColor="@android:color/white" />
|
2017-03-08 00:09:33 +11:00
|
|
|
</LinearLayout>
|
2017-01-08 09:24:02 +11:00
|
|
|
</LinearLayout>
|
|
|
|
|
2017-03-08 00:09:33 +11:00
|
|
|
|
2017-03-10 09:21:02 +11:00
|
|
|
</android.support.design.widget.CoordinatorLayout>
|