diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2014-12-31 16:31:49 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2014-12-31 16:31:49 +0100 |
commit | ed559834ccddafa955df5b528f08fba964e57699 (patch) | |
tree | 3fcbcedaf49232de5c8fe8b6f67bd2fd8c52afa9 /app/src/main/res/layout/activity_soil.xml | |
download | io.trygvis.soilmoisture-android-ed559834ccddafa955df5b528f08fba964e57699.tar.gz io.trygvis.soilmoisture-android-ed559834ccddafa955df5b528f08fba964e57699.tar.bz2 io.trygvis.soilmoisture-android-ed559834ccddafa955df5b528f08fba964e57699.tar.xz io.trygvis.soilmoisture-android-ed559834ccddafa955df5b528f08fba964e57699.zip |
o Initial import of Soil Moisture app.
Diffstat (limited to 'app/src/main/res/layout/activity_soil.xml')
-rw-r--r-- | app/src/main/res/layout/activity_soil.xml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_soil.xml b/app/src/main/res/layout/activity_soil.xml new file mode 100644 index 0000000..c2784b9 --- /dev/null +++ b/app/src/main/res/layout/activity_soil.xml @@ -0,0 +1,60 @@ +<RelativeLayout 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:paddingLeft="@dimen/activity_horizontal_margin" + android:paddingRight="@dimen/activity_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin" + android:paddingBottom="@dimen/activity_vertical_margin" + tools:context="io.trygvis.soilmoisture.SoilActivity"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" + android:text="Large Text" + android:id="@+id/name" + android:layout_alignParentStart="true" + /> + + <ProgressBar + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:id="@+id/currentValueHorizontal" + android:layout_alignBottom="@+id/textView" + android:layout_toEndOf="@+id/space"/> + + <ProgressBar + style="?android:attr/progressBarStyleLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/currentValueSpinner" + android:layout_above="@+id/button_refresh" + android:layout_centerHorizontal="true"/> + + <Button + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="Refresh" + android:id="@+id/button_refresh" + android:layout_alignParentBottom="true" + android:layout_centerHorizontal="true"/> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/current_value" + android:id="@+id/textView" + android:layout_below="@+id/name" + android:layout_alignParentStart="true"/> + + <Space + android:layout_width="20px" + android:layout_height="20px" + android:layout_alignTop="@+id/currentValueHorizontal" + android:layout_toEndOf="@+id/textView" + android:id="@+id/space" + android:layout_alignBottom="@+id/textView"/> + +</RelativeLayout> |