Last active
April 26, 2019 10:31
-
-
Save AdoraNwodo/5c29a58f50aef71ee01293ec813b867e to your computer and use it in GitHub Desktop.
Layout for Gallery Activity - Uploading an Image to Firebase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
tools:showIn="@layout/activity_gallery" | |
tools:context=".GalleryActivity" | |
android:padding="30dp" | |
android:orientation="vertical" | |
> | |
<ImageView | |
android:id="@+id/image_preview" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:src="@drawable/ic_image_gray_24dp" | |
/> | |
<Button | |
android:id="@+id/btn_choose_image" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:text="Choose image" | |
/> | |
<Button | |
android:id="@+id/btn_upload_image" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:text="Upload image" | |
/> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment