Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- activity_main
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:layout_margin="16dp">
- <!-- place for logo -->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="vertical"
- android:gravity="center">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="MY TASK"
- android:textSize="64sp"/>
- </LinearLayout>
- <!-- place for user input -->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="vertical"
- android:gravity="center">
- <EditText
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/userName"
- android:id="@+id/txtUser"/>
- <EditText
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/userPass"
- android:inputType="textPassword"
- android:layout_marginTop="20dp"
- android:id="@+id/txtPass"/>
- </LinearLayout>
- <!-- place for buttons-->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="horizontal"
- android:gravity="top">
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/register"
- android:textColor="#ffffff"
- android:background="#009fff"
- android:textSize="22sp"
- android:layout_weight="1"
- android:layout_margin="20dp"
- android:id="@+id/btnRegister"/>
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/login"
- android:textColor="#ffffff"
- android:background="#009fff"
- android:textSize="22sp"
- android:layout_weight="1"
- android:layout_margin="20dp"
- android:id="@+id/btnLogin"/>
- </LinearLayout>
- </LinearLayout>
- ---------------------------------------------------
- activity_register
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical" android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_margin="16dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="2"
- android:orientation="vertical"
- >
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:text="LOGO"
- android:textSize="62sp"
- android:layout_gravity="center"
- />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="vertical"
- android:layout_margin="30dp">
- <EditText
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/regUserName"
- android:hint="Enter a user name..."
- android:layout_weight="1"
- android:gravity="bottom"/>
- <EditText
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/regPass1"
- android:hint="Enter your password...."
- android:layout_weight="1"
- android:gravity="bottom"
- android:inputType="textPassword"/>
- <EditText
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/regPass2"
- android:hint="Re-Enter your password..."
- android:layout_weight="1"
- android:gravity="bottom"
- android:inputType="textPassword"
- />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="2"
- android:orientation="horizontal">
- <Button
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@string/register"
- android:textColor="#ffffff"
- android:background="#009fff"
- android:textSize="32sp"
- android:layout_weight="1"
- android:layout_margin="10dp"
- android:id="@+id/btnRegRegister"/>
- <Button
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="cancel"
- android:textColor="#ffffff"
- android:background="#009fff"
- android:textSize="32sp"
- android:layout_weight="1"
- android:layout_margin="10dp"
- android:id="@+id/btnRegCancel"/>
- </LinearLayout>
- </LinearLayout>
- ------------------------------------------------
- activity_task
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:layout_margin="16dp">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Error"
- android:gravity="center"
- android:textSize="32sp"
- android:id="@+id/txtUserName"/>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <EditText
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:hint="Enter a new task...."
- android:id="@+id/etMyTask"/>
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="6"
- android:textColor="#ffffff"
- android:background="#009fff"
- android:text="+"
- android:textSize="34sp"
- android:id="@+id/btnAddTask"/>
- </LinearLayout>
- <ListView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/lstTask"></ListView>
- </LinearLayout>
- --------------------------------------------
- task_item
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="10dp"
- android:orientation="horizontal"
- android:gravity="center_vertical">
- <Switch
- android:id="@+id/taskDone"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Task name...."
- android:textSize="24sp"
- android:id="@+id/taskName"
- android:layout_marginLeft="10dp"
- android:layout_weight="1"/>
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/trash"
- android:id="@+id/taskDelete"/>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement