Advertisement
millatip

activity_main.xml

Jan 8th, 2019
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.40 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="70dp"
  7.    android:orientation="horizontal"
  8.    android:weightSum="1"
  9.    android:layout_gravity="center"
  10.    android:background="@drawable/bg"
  11.    android:padding="8dp"
  12.    android:layout_margin="8dp"
  13.    tools:context=".MainActivity">
  14.  
  15.     <TextView
  16.        android:id="@+id/tv_nama"
  17.        android:layout_width="0dp"
  18.        android:layout_height="match_parent"
  19.        android:layout_weight="0.2"
  20.        android:text="@string/nama"
  21.        android:textAlignment="center"
  22.        android:textColor="@android:color/black"
  23.        android:textSize="20sp"
  24.        android:gravity="center"
  25.        />
  26.     <EditText
  27.        android:id="@+id/edt"
  28.        android:layout_width="0dp"
  29.        android:layout_height="match_parent"
  30.        android:layout_weight="0.5"
  31.        />
  32.     <Button
  33.        android:id="@+id/btn"
  34.        android:layout_width="0dp"
  35.        android:layout_height="35dp"
  36.        android:layout_weight="0.3"
  37.        android:background="@drawable/btn_bg"
  38.        android:text="@string/call_my_name"
  39.        android:textColor="@android:color/white"
  40.        android:textSize="11sp"/>
  41. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement