Advertisement
Baru_Berbagi

activity_main.xml

Jul 28th, 2021
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.76 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.     <TextView
  11.        android:layout_width="match_parent"
  12.        android:layout_height="wrap_content"
  13.        android:text="Share text"
  14.        android:background="#F76B6B"
  15.        android:padding="15dp"
  16.        android:gravity="center"
  17.        android:textSize="25dp"
  18.        android:textColor="#ffff"/>
  19.  
  20.     <EditText
  21.        android:id="@+id/edtText"
  22.        android:layout_width="match_parent"
  23.        android:layout_height="wrap_content"
  24.        android:padding="11dp"
  25.        android:layout_marginTop="25dp"
  26.        android:hint="Masukkan text"/>
  27.  
  28.     <Button
  29.        android:id="@+id/btnShareText"
  30.        android:layout_width="match_parent"
  31.        android:layout_height="wrap_content"
  32.        android:text="Share Text"
  33.        android:padding="11dp"/>
  34.  
  35.     <TextView
  36.        android:layout_width="match_parent"
  37.        android:layout_height="wrap_content"
  38.        android:text="Share permanent"
  39.        android:background="#BC39DA"
  40.        android:padding="15dp"
  41.        android:gravity="center"
  42.        android:textSize="25dp"
  43.        android:textColor="#ffff"
  44.        android:layout_marginTop="50dp"/>
  45.  
  46.     <Button
  47.        android:id="@+id/btnSharePermanent"
  48.        android:layout_width="match_parent"
  49.        android:layout_height="wrap_content"
  50.        android:padding="11dp"
  51.        android:layout_marginTop="15dp"
  52.        android:text="Share"/>
  53.  
  54. </LinearLayout>
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement