mirror of https://github.com/ThmmyNoLife/mTHMMY
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
4.0 KiB
91 lines
4.0 KiB
<?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="wrap_content"
|
|
android:layout_marginBottom="5dp"
|
|
android:paddingEnd="4dp"
|
|
android:paddingStart="4dp">
|
|
|
|
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/card_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
card_view:cardBackgroundColor="@color/card_background"
|
|
card_view:cardCornerRadius="5dp"
|
|
card_view:cardElevation="2dp"
|
|
card_view:cardPreventCornerOverlap="false"
|
|
card_view:cardUseCompatPadding="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/header"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingTop="16dp">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/thumbnail_holder"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/thumbnail"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:adjustViewBounds="true"
|
|
android:contentDescription="@string/post_thumbnail"
|
|
android:maxHeight="@dimen/thumbnail_size"
|
|
android:maxWidth="@dimen/thumbnail_size"
|
|
app:srcCompat="@drawable/ic_default_user_thumbnail_white_24dp" />
|
|
</FrameLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/username"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_toEndOf="@+id/thumbnail_holder"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:text="@string/post_author"
|
|
android:textColor="@color/primary_text"
|
|
android:textStyle="bold" />
|
|
|
|
<EditText
|
|
android:id="@+id/edit_message_subject"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/username"
|
|
android:layout_toEndOf="@+id/thumbnail_holder"
|
|
android:hint="@string/subject"
|
|
android:inputType="textMultiLine"
|
|
android:maxLength="80"
|
|
android:textSize="10sp"
|
|
tools:ignore="SmallSp" />
|
|
</RelativeLayout>
|
|
<gr.thmmy.mthmmy.editorview.EditorView
|
|
android:id="@+id/edit_editorview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/card_background"
|
|
card_view:hint="Post message"/>
|
|
</LinearLayout>
|
|
</android.support.v7.widget.CardView>
|
|
</FrameLayout>
|