tweaking layout for small screens

svn:r24759
This commit is contained in:
Nathan Freitas 2011-05-17 02:03:07 +00:00
parent 4c6df2ad36
commit 22a0261929
2 changed files with 42 additions and 76 deletions

View File

@ -32,45 +32,25 @@
android:textColor="#cccccc" /> android:textColor="#cccccc" />
</RelativeLayout> </RelativeLayout>
<ScrollView android:id="@+id/mainview"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout android:id="@+id/mainLayout"
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_width="wrap_content">
<TableRow android:id="@+id/startRow">
<TableLayout
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_width="wrap_content">
<TableRow>
<ImageView <ImageView
android:id="@+id/imgStatus" android:id="@+id/imgStatus"
android:layout_width="wrap_content" android:layout_width="fill_parent"
android:layout_height="225px" android:layout_margin="5dip"
android:src="@drawable/toroff"/> android:layout_height="fill_parent"
</TableRow> android:layout_gravity="center_horizontal"
<TableRow> android:src="@drawable/toroff"/>
<TextView android:id="@+id/lblStatus"
android:text="- Press to enable - "
<TextView android:id="@+id/lblStatus"
android:text="@string/press_to_start"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:textStyle="bold" android:textStyle="bold"
android:width="320px" android:layout_width="wrap_content"
android:height="100px" android:layout_height="50dip"
android:textColor="#ffffff" android:textColor="#ffffff"
/> />
</TableRow>
</TableLayout>
</TableRow>
</TableLayout>
</ScrollView>
</LinearLayout> </LinearLayout>

View File

@ -15,8 +15,8 @@
<ImageView android:id="@+id/radioModeImage" <ImageView android:id="@+id/radioModeImage"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="3dip" android:layout_marginTop="3px"
android:layout_marginRight="3dip" android:layout_marginRight="3px"
android:gravity="right" android:gravity="right"
android:layout_toRightOf="@+id/radioModeLabel" android:layout_toRightOf="@+id/radioModeLabel"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
@ -26,46 +26,32 @@
<TextView android:id="@+id/radioModeText" <TextView android:id="@+id/radioModeText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/powered_by" android:text="powered by The Tor Project "
android:layout_marginTop="9px" android:layout_marginTop="8px"
android:layout_marginRight="0px" android:layout_marginRight="0px"
android:gravity="right" android:gravity="right"
android:layout_toLeftOf="@+id/radioModeImage" android:layout_toLeftOf="@+id/radioModeImage"
android:textColor="#333333" /> android:textColor="#cccccc" />
</RelativeLayout> </RelativeLayout>
<TableLayout android:id="@+id/mainLayout"
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_width="wrap_content">
<TableRow android:id="@+id/startRow">
<TableLayout
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_width="wrap_content">
<TableRow>
<ImageView <ImageView
android:id="@+id/imgStatus" android:id="@+id/imgStatus"
android:layout_marginTop="30dip" android:layout_margin="5dip"
android:layout_width="wrap_content" android:layout_width="320dip"
android:layout_height="wrap_content" android:layout_height="320dip"
android:src="@drawable/toroff"/> android:src="@drawable/toroff"
</TableRow> android:layout_gravity="center_horizontal"
<TableRow> />
<TextView android:id="@+id/lblStatus" <TextView android:id="@+id/lblStatus"
android:text="@string/press_to_start" android:text="@string/press_to_start"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:textStyle="bold" android:textStyle="bold"
android:layout_width="fill_parent" android:layout_width="wrap_content"
android:layout_height="75px" android:layout_height="30dip"
android:textColor="#ffffff" android:textColor="#ffffff"
/> />
</TableRow>
</TableLayout>
</TableRow>
</TableLayout>