Skip to content

Instantly share code, notes, and snippets.

@malwarebo
Created February 16, 2018 10:39
Show Gist options
  • Save malwarebo/6702dc0a8c7b601bd65b1044384bfd30 to your computer and use it in GitHub Desktop.
Save malwarebo/6702dc0a8c7b601bd65b1044384bfd30 to your computer and use it in GitHub Desktop.
Layout_Lesson2 and 3
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.irfan.googlescholarship.MainActivity">
<LinearLayout
android:layout_width="395dp"
android:layout_height="587dp"
android:orientation="vertical"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="8dp">
<ImageView
android:id="@+id/imageView"
android:layout_width="600dp"
android:layout_height="218dp"
app:srcCompat="#f9a825" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="85dp"
android:orientation="horizontal">
<TextView
android:layout_width="170dp"
android:layout_height="50dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginLeft="20dp"
android:layout_marginRight="5dp"
android:layout_marginTop="14dp"
android:background="#7cb342"
android:text="" />
<TextView
android:layout_width="170dp"
android:layout_height="50dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginLeft="5dp"
android:layout_marginTop="14dp"
android:background="#7cb342"
android:text="" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="85dp"
android:orientation="horizontal">
<TextView
android:layout_width="170dp"
android:layout_height="50dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginLeft="20dp"
android:layout_marginRight="5dp"
android:layout_marginTop="14dp"
android:background="#7cb342"
android:text="" />
<TextView
android:layout_width="170dp"
android:layout_height="50dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginLeft="5dp"
android:layout_marginTop="14dp"
android:background="#7cb342"
android:text="" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="85dp"
android:orientation="horizontal">
<TextView
android:layout_width="170dp"
android:layout_height="50dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginLeft="20dp"
android:layout_marginRight="5dp"
android:layout_marginTop="14dp"
android:background="#7cb342"
android:text="" />
<TextView
android:layout_width="170dp"
android:layout_height="50dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginLeft="5dp"
android:layout_marginTop="14dp"
android:background="#7cb342"
android:text="" />
</LinearLayout>
<EditText
android:background="#f57f17"
android:layout_width="390dp"
android:layout_height="80dp"
android:layout_marginLeft="3dp"/>
</LinearLayout>
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment