Skip to content

Instantly share code, notes, and snippets.

@pbrewczynski
Created June 13, 2013 11:49
Show Gist options
  • Save pbrewczynski/5773094 to your computer and use it in GitHub Desktop.
Save pbrewczynski/5773094 to your computer and use it in GitHub Desktop.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/containerLinearLayout"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<Button
android:id="@+id/firstPlayerButton"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="5"
android:background="@color/player_one"
android:text="Button" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"
android:orientation="horizontal">
<TextView
android:id="@+id/firstPlayerResult"
android:layout_height="match_parent"
android:layout_width="0dp"
android:layout_weight="1"
android:text="0"
android:background="@color/player_one"
/>
<Button
android:id="@+id/controlPanelButton"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:text="@string/start_game"
android:background="@color/result"
/>
<TextView
android:id="@+id/secondPlayerResult"
android:layout_height="match_parent"
android:layout_width="0dp"
android:layout_weight="1"
android:text="0"
android:background="@color/player_two"
/>
</LinearLayout>
<Button
android:id="@+id/secondPlayerButton"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="5"
android:background="@color/player_two"
android:text="Button"
/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment