Skip to content

Instantly share code, notes, and snippets.

@DanishAmjad12
Last active July 23, 2018 08:29
Show Gist options
  • Save DanishAmjad12/057cf401709817b732ba662f46e6816a to your computer and use it in GitHub Desktop.
Save DanishAmjad12/057cf401709817b732ba662f46e6816a to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimary"
android:orientation="horizontal"
tools:context="com.example.daamjad.googleapiclient.MainActivity">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:gravity="center"
android:text="VIEW 1!"
android:textColor="@android:color/white" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:gravity="center"
android:text="VIEW 1!"
android:textColor="@android:color/white" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment