Skip to content

Instantly share code, notes, and snippets.

@Bregnet
Created June 18, 2017 08:43
Show Gist options
  • Save Bregnet/13e8ae698d0df3716ae5f32f2f6133a8 to your computer and use it in GitHub Desktop.
Save Bregnet/13e8ae698d0df3716ae5f32f2f6133a8 to your computer and use it in GitHub Desktop.
ActuvitySendData
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_height="70dp"
android:layout_width="match_parent"
android:orientation="vertical"
android:gravity="center">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="center"
android:background="#001863"
android:layout_marginRight="43dp">
<TextView
android:layout_height="wrap_content"
android:text="Nama"
android:layout_width="wrap_content"
android:textSize="15sp"
android:textStyle="bold|italic"/>
</LinearLayout>
<View
android:layout_height="3dp"
android:layout_width="match_parent"
android:background="#000000"/>
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="center"
android:background="#7E0902"
android:layout_marginLeft="40dp">
<EditText
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:ems="10"
android:layout_width="wrap_content"
android:padding="10dp"
android:id="@+id/InputNama"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_height="70dp"
android:layout_width="match_parent"
android:orientation="vertical"
android:gravity="center"
android:layout_marginTop="10dp">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="center"
android:background="#001863"
android:layout_marginRight="43dp">
<TextView
android:layout_height="wrap_content"
android:text="Alamat"
android:layout_width="wrap_content"
android:textSize="15sp"
android:textStyle="bold|italic"/>
</LinearLayout>
<View
android:layout_height="3dp"
android:layout_width="match_parent"
android:background="#000000"/>
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="center"
android:background="#7E0902"
android:layout_marginLeft="40dp">
<EditText
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:ems="10"
android:layout_width="wrap_content"
android:padding="10dp"
android:id="@+id/InputAlamat"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_height="70dp"
android:layout_width="match_parent"
android:orientation="vertical"
android:gravity="center"
android:layout_marginTop="10dp">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="center"
android:background="#001863"
android:layout_marginRight="43dp">
<TextView
android:layout_height="wrap_content"
android:text="Hoby"
android:layout_width="wrap_content"
android:textSize="15sp"
android:textStyle="bold|italic"/>
</LinearLayout>
<View
android:layout_height="3dp"
android:layout_width="match_parent"
android:background="#000000"/>
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="center"
android:background="#7E0902"
android:layout_marginLeft="40dp">
<EditText
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:ems="10"
android:layout_width="wrap_content"
android:padding="10dp"
android:id="@+id/InputHoby"/>
</LinearLayout>
</LinearLayout>
<Button
android:layout_height="wrap_content"
android:text="Kirim Data"
android:layout_width="match_parent"
android:layout_marginTop="10dp"
android:id="@+id/KirimData"/>
</LinearLayout>
 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment