mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2025-07-03 23:25:03 +00:00
Can create post with images
This commit is contained in:
@ -13,11 +13,34 @@
|
||||
android:lines="3"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small" />
|
||||
|
||||
<!-- Submit post -->
|
||||
<Button
|
||||
android:id="@+id/submit_create_post_form"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/post_action_send"
|
||||
android:layout_gravity="end" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<!-- Add an image -->
|
||||
<ImageButton
|
||||
android:id="@+id/select_image_button"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:src="@android:drawable/ic_menu_gallery"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:scaleType="fitCenter"
|
||||
android:contentDescription="@string/image_description_pick_image"/>
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="2dp"
|
||||
android:layout_weight="2"/>
|
||||
|
||||
<!-- Submit post -->
|
||||
<Button
|
||||
android:id="@+id/submit_create_post_form"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/post_action_send"
|
||||
android:layout_gravity="end" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
Reference in New Issue
Block a user