mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2025-07-07 18:42:53 +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>
|
||||
|
@ -184,4 +184,5 @@
|
||||
<string name="menu_clear_local_db">Clear local database</string>
|
||||
<string name="success_clear_local_db">The local database has been successfully cleared! You may need to restart the application to make the changes being fully applied.</string>
|
||||
<string name="err_clear_local_db">An error occurred while trying to clear local database!</string>
|
||||
<string name="image_description_pick_image">Pick an image</string>
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user