Files
exalted_dice/ExaltedDice/res/layout/main.xml
Ricky Barrette 3102d485db Added custom number picker for api < 11 compatibility
Extracted number picker (non public) from older android source and
included it into this project to remain compatible with devices api
level < 11. Devices api level > 11 will use native number pickers as the
are public facing in the sdk

Change-Id: I7cf7cba066b25516e90bd9951f4de7964b7fd613
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-02-11 12:30:12 -05:00

69 lines
2.4 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:myapp="com.TwentyCode.android.ExaltedDice"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:baselineAligned="false"
android:orientation="horizontal" >
<RelativeLayout
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="2.5" >
<include
android:id="@+id/die_selector"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_gravity="center"
layout="@layout/dice_selector" />
</RelativeLayout>
<RelativeLayout
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="1" >
<Button
android:id="@+id/roll_button"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/roll" />
<ProgressBar
android:id="@+id/roll_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:visibility="gone" />
</RelativeLayout>
</LinearLayout>
<ListView
android:id="@+id/list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/ad"
android:layout_below="@id/holder"
android:layout_gravity="top" />
<com.admob.android.ads.AdView
android:id="@id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"
myapp:backgroundColor="#000000"
myapp:primaryTextColor="#FFFFFF"
myapp:secondaryTextColor="#CCCCCC" />
</RelativeLayout>