Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_gravity="center"
- android:orientation="vertical"
- tools:context=".LinearLayout" >
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingLeft="110px"
- android:paddingTop="10px"
- android:text="Login Page with Linear Layout " />
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:paddingTop="20px">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingLeft="10px"
- android:paddingTop="20px"
- android:text="Username" />
- <EditText
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="0.5"
- android:layout_marginLeft="40px"
- android:paddingTop="20px" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:paddingTop="20px"
- >
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Password"
- android:paddingTop="20px"
- android:paddingLeft="10px"/>
- <EditText
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginLeft="40px"
- android:layout_weight="0.50"
- android:paddingTop="20px" />
- </LinearLayout>
- <Button
- android:layout_width="wrap_content"
- android:layout_height="100dp"
- android:layout_gravity="center"
- android:paddingLeft="20px"
- android:paddingTop="10px"
- android:onClick="press"
- android:text="Press to see Login with Table Layout" />
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement