MyBlogShare

Tampilan Layout Upload Image

Jul 10th, 2021
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.59 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.   xmlns:app="http://schemas.android.com/apk/res-auto"
  4.   xmlns:tools="http://schemas.android.com/tools"
  5.   android:layout_width="match_parent"
  6.   android:layout_height="match_parent"
  7.   android:orientation="vertical"
  8.   tools:context=".MainActivity">
  9.  
  10.     <ImageView
  11.       android:id="@+id/imageupload"
  12.       android:layout_width="match_parent"
  13.       android:layout_height="300dp"
  14.       android:layout_marginTop="21dp"
  15.       android:src="@drawable/image"/>
  16.  
  17.     <LinearLayout
  18.       android:layout_width="match_parent"
  19.       android:layout_height="wrap_content"
  20.       android:padding="10dp"
  21.       android:orientation="horizontal">
  22.  
  23.         <Button
  24.           android:layout_width="match_parent"
  25.           android:layout_height="wrap_content"
  26.           android:text="Pilih Foto"
  27.           android:layout_margin="5dp"
  28.           android:textColor="#ffffff"
  29.           android:id="@+id/pilih_foto"
  30.           android:textStyle="bold"
  31.           android:background="@color/colorAccent"
  32.           android:layout_weight="1"/>
  33.  
  34.         <Button
  35.           android:layout_width="match_parent"
  36.           android:layout_height="wrap_content"
  37.           android:text="Upload Foto"
  38.           android:textStyle="bold"
  39.           android:layout_margin="5dp"
  40.           android:id="@+id/btn_upload"
  41.           android:textColor="#ffffff"
  42.           android:background="@color/colorPrimary"
  43.           android:layout_weight="1"/>
  44.     </LinearLayout>
  45.  
  46. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment