Skip to content

Instantly share code, notes, and snippets.

@alfianyusufabdullah
Created January 2, 2018 12:05
Show Gist options
  • Save alfianyusufabdullah/a89ec82067c7eabdf3eac771e2b46183 to your computer and use it in GitHub Desktop.
Save alfianyusufabdullah/a89ec82067c7eabdf3eac771e2b46183 to your computer and use it in GitHub Desktop.
main
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/rootView"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.alfianyusufabdullah.crudezqlite.MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical"
android:padding="16dp">
<android.support.design.widget.TextInputLayout
android:id="@+id/inputNama"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_nama">
<android.support.design.widget.TextInputEditText
android:id="@+id/etNama"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textNoSuggestions|textPersonName" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/inputNim"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:hint="@string/hint_nim">
<android.support.design.widget.TextInputEditText
android:id="@+id/etNim"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number"/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/inputSemester"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:hint="@string/hint_semester">
<android.support.design.widget.TextInputEditText
android:id="@+id/etSemester"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number" />
</android.support.design.widget.TextInputLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:orientation="horizontal">
<Button
android:id="@+id/btnLihatData"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/btn_text_liat_data"
android:textColor="#fff"
android:theme="@style/MyButton" />
<Button
android:id="@+id/btnTambahData"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/btn_text_tambah_data"
android:textColor="#fff"
android:theme="@style/MyButton" />
</LinearLayout>
</LinearLayout>
</ScrollView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment