diff options
Diffstat (limited to 'app/src/main/res/layout/template_text_post.xml')
-rw-r--r-- | app/src/main/res/layout/template_text_post.xml | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/app/src/main/res/layout/template_text_post.xml b/app/src/main/res/layout/template_text_post.xml new file mode 100644 index 0000000..a56683c --- /dev/null +++ b/app/src/main/res/layout/template_text_post.xml @@ -0,0 +1,97 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <LinearLayout + android:id="@+id/post_template" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <android.support.constraint.ConstraintLayout xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="16dp" + android:layout_marginEnd="16dp" + android:layout_marginStart="16dp" + android:layout_marginTop="16dp" + android:background="@android:color/background_light"> + + <TextView + android:id="@+id/text_post_composer" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:layout_marginTop="8dp" + android:text="Text missing." + android:textColor="@android:color/darker_gray" + android:textSize="16sp" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <TextView + android:id="@+id/text_post_date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:layout_marginTop="8dp" + android:text="Text missing." + android:textColor="@android:color/darker_gray" + android:textSize="12sp" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/text_post_composer" /> + + <Button + android:id="@+id/button_share" + android:layout_width="30dp" + android:layout_height="30dp" + android:layout_margin="16dp" + android:layout_marginBottom="8dp" + android:layout_marginEnd="16dp" + android:layout_marginTop="16dp" + android:background="@drawable/btn_share" + app:layout_constraintBottom_toTopOf="@+id/text_post_content" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <Button + android:id="@+id/button_comment" + android:layout_width="30dp" + android:layout_height="30dp" + android:layout_margin="16dp" + android:layout_marginBottom="8dp" + android:layout_marginEnd="32dp" + android:background="@drawable/btn_comment" + app:layout_constraintBottom_toTopOf="@+id/text_post_content" + app:layout_constraintEnd_toStartOf="@+id/button_share" /> + + <Button + android:id="@+id/button_like" + android:layout_width="30dp" + android:layout_height="30dp" + android:layout_marginBottom="16dp" + android:layout_marginEnd="16dp" + android:background="@drawable/btn_like" + app:layout_constraintBottom_toTopOf="@+id/text_post_content" + app:layout_constraintEnd_toStartOf="@+id/button_comment" /> + + <TextView + android:id="@+id/text_post_content" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginEnd="8dp" + android:layout_marginStart="8dp" + android:layout_marginTop="8dp" + android:text="Text missing." + android:textColor="@android:color/darker_gray" + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/text_post_date" /> + + </android.support.constraint.ConstraintLayout> + + </LinearLayout> +</LinearLayout> |