ndt-dev - [ndt-dev] [ndt] r400 committed - Tweak layout, centering logo, text.
Subject: NDT-DEV email list created
List archive
- From:
- To:
- Subject: [ndt-dev] [ndt] r400 committed - Tweak layout, centering logo, text.
- Date: Fri, 17 Jun 2011 18:10:28 +0000
Revision: 400
Author:
Date: Fri Jun 17 11:09:30 2011
Log: Tweak layout, centering logo, text.
http://code.google.com/p/ndt/source/detail?r=400
Modified:
/branches/android/Android/res/layout/start.xml
/branches/android/Android/res/values/styles.xml
=======================================
--- /branches/android/Android/res/layout/start.xml Fri Jun 17 08:22:59
2011
+++ /branches/android/Android/res/layout/start.xml Fri Jun 17 11:09:30
2011
@@ -3,26 +3,33 @@
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout android:id="@+id/UpperFrame"
- android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:layout_weight="1"
android:layout_above="@+id/LowerFrame"
- android:layout_alignParentTop="true"
android:orientation="vertical">
- <ImageView android:id="@+id/MLabLogo"
android:layout_width="wrap_content"
- android:layout_height="wrap_content" android:src="@drawable/mlab_logo"
- android:gravity="center" />
- <TextView android:layout_width="fill_parent"
- android:layout_height="wrap_content"
android:id="@+id/MLabDesc"
- android:text="@string/mlabdesc"
android:gravity="bottom"
- android:scrollbars="vertical" android:padding="40sp"
- android:textColor="#ffffff" android:textSize="18sp" />
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_above="@+id/LowerFrame"
+ android:layout_alignParentTop="true"
+ android:orientation="vertical">
+ <ImageView android:id="@+id/MLabLogo"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:src="@drawable/mlab_logo_small"
+ android:gravity="center"
+ android:padding="25sp" />
+ <TextView android:id="@+id/MLabDesc"
+ android:text="@string/mlabdesc"
+ style="@style/NdtDesc"
+ android:scrollbars="vertical" />
</LinearLayout>
<LinearLayout android:id="@+id/LowerFrame"
- android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
android:orientation="horizontal">
- <Button android:text="@string/start"
android:id="@+id/ButtonStart"
- android:layout_width="wrap_content"
android:layout_weight="1"
- android:layout_height="wrap_content" />
- <Button android:text="@string/about"
android:id="@+id/ButtonAbout"
- android:layout_width="wrap_content"
android:layout_weight="1"
- android:layout_height="wrap_content" />
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:orientation="horizontal">
+ <Button android:text="@string/start"
+ android:id="@+id/ButtonStart"
+ style="@style/NdtButton" />
+ <Button android:text="@string/about"
+ android:id="@+id/ButtonAbout"
+ style="@style/NdtButton" />
</LinearLayout>
</RelativeLayout>
=======================================
--- /branches/android/Android/res/values/styles.xml Fri Jun 17 08:22:59
2011
+++ /branches/android/Android/res/values/styles.xml Fri Jun 17 11:09:30
2011
@@ -3,7 +3,17 @@
<style name="NdtTheme" parent="android:Theme">
<item name="android:background">#3cb878</item>
</style>
- <style name="Desc" parent="@android:style/TextAppearance">
- <item name="android:textColor">#00FF00</item>
+ <style name="NdtDesc" parent="@android:style/TextAppearance">
+ <item name="android:textColor">#FFFFFF</item>
+ <item name="android:textSize">18sp</item>
+ <item name="android:gravity">bottom</item>
+ <item name="android:layout_height">fill_parent</item>
+ <item name="android:layout_width">fill_parent</item>
+ <item name="android:padding">40sp</item>
+ </style>
+ <style name="NdtButton" parent="@android:style/Widget.Button">
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_weight">1</item>
</style>
</resources>
- [ndt-dev] [ndt] r400 committed - Tweak layout, centering logo, text., ndt, 06/17/2011
Archive powered by MHonArc 2.6.16.