134 lines
5.8 KiB
XML
134 lines
5.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ Twidere - Twitter client for Android
|
|
~
|
|
~ Copyright (C) 2012-2014 Mariotaku Lee <mariotaku.lee@gmail.com>
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License
|
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/compose_activity"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="@dimen/compose_min_width"
|
|
android:orientation="vertical">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/compose_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1">
|
|
|
|
<org.mariotaku.dynamicgridview.DynamicGridView
|
|
android:id="@+id/media_thumbnail_preview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignBottom="@+id/edit_text_container"
|
|
android:layout_alignEnd="@+id/edit_text_container"
|
|
android:layout_alignLeft="@+id/edit_text_container"
|
|
android:layout_alignRight="@+id/edit_text_container"
|
|
android:layout_alignStart="@+id/edit_text_container"
|
|
android:layout_alignTop="@+id/edit_text_container"
|
|
android:alpha="0.2"
|
|
android:numColumns="@integer/grid_column_image_preview"
|
|
android:stretchMode="columnWidth"
|
|
tools:listitem="@layout/grid_item_image_preview" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/edit_text_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<org.mariotaku.twidere.view.ComposeEditText
|
|
android:id="@+id/edit_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="@null"
|
|
android:completionThreshold="1"
|
|
android:gravity="top"
|
|
android:hint="@string/status_hint"
|
|
android:inputType="text|textLongMessage|textAutoComplete|textMultiLine"
|
|
android:minLines="6"
|
|
android:padding="@dimen/element_spacing_normal"
|
|
android:scrollbars="vertical" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/location_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:background="?selectableItemBackground"
|
|
android:clickable="true"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/element_spacing_normal">
|
|
|
|
<org.mariotaku.twidere.view.ActionIconView
|
|
android:id="@+id/location_icon"
|
|
android:layout_width="@dimen/element_size_small"
|
|
android:layout_height="@dimen/element_size_small"
|
|
android:layout_marginLeft="@dimen/element_spacing_normal"
|
|
android:layout_marginRight="@dimen/element_spacing_normal"
|
|
android:color="?android:textColorSecondary"
|
|
android:src="@drawable/ic_action_location" />
|
|
|
|
<TextView
|
|
android:id="@+id/location_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/element_spacing_normal"
|
|
android:layout_marginRight="@dimen/element_spacing_normal" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/account_selector_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignBottom="@+id/edit_text_container"
|
|
android:layout_alignEnd="@+id/edit_text_container"
|
|
android:layout_alignLeft="@+id/edit_text_container"
|
|
android:layout_alignRight="@+id/edit_text_container"
|
|
android:layout_alignStart="@+id/edit_text_container"
|
|
android:layout_alignTop="@+id/edit_text_container"
|
|
android:visibility="gone">
|
|
|
|
<org.mariotaku.twidere.view.ExtendedRecyclerView
|
|
android:id="@+id/account_selector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
android:overScrollMode="never" />
|
|
</FrameLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/compose_bottombar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:background="?android:panelColorBackground"
|
|
android:divider="?android:dividerVertical"
|
|
android:orientation="vertical"
|
|
android:showDividers="beginning">
|
|
|
|
<include layout="@layout/activity_compose_bottombar" />
|
|
</LinearLayout>
|
|
</LinearLayout> |