Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- tools:context=".MainActivity">
- <TextView
- android:textAppearance="@style/Base.TextAppearance.AppCompat.Large"
- android:text="Student List"
- android:textColor="#fff"
- android:padding="10dp"
- android:textAlignment="center"
- android:background="@color/colorPrimaryDark"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"/>
- <EditText
- android:layout_width="match_parent"
- android:hint="Enter Your Name"
- android:textAlignment="center"
- android:layout_marginTop="10dp"
- android:layout_height="wrap_content"
- android:id="@+id/userName"/>
- <EditText
- android:layout_width="match_parent"
- android:hint="Enter Your Roll"
- android:textAlignment="center"
- android:layout_height="wrap_content"
- android:id="@+id/department"/>
- <Button
- android:layout_width="match_parent"
- android:textAlignment="center"
- android:text="Add Student"
- android:textSize="19sp"
- android:layout_height="wrap_content"
- android:id="@+id/saveBtn"/>
- <LinearLayout
- android:orientation="horizontal"
- android:background="@color/colorPrimaryDark"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <TextView
- android:textAppearance="@style/Base.TextAppearance.AppCompat.Large"
- android:layout_width="100dp"
- android:textSize="24dp"
- android:text="Roll"
- android:textColor="#fff"
- android:padding="11dp"
- android:layout_height="wrap_content"/>
- <TextView
- android:textAppearance="@style/Base.TextAppearance.AppCompat.Large"
- android:text="Student Name"
- android:padding="10dp"
- android:textColor="#fff"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"/>
- </LinearLayout>
- <ListView
- android:layout_width="match_parent"
- android:textAlignment="center"
- android:layout_height="match_parent"
- android:id="@+id/listView"
- />
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement