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

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

View File

@ -12,11 +12,11 @@
android:layout_height="30dp" android:layout_height="30dp"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:background="#A0909090"> android:background="#A0909090">
<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" <ImageView
android:layout_gravity="center" android:id="@+id/imgStatus"
android:layout_height="wrap_content" android:layout_margin="5dip"
android:layout_width="wrap_content"> android:layout_width="320dip"
<TableRow android:id="@+id/startRow"> android:layout_height="320dip"
<TableLayout android:src="@drawable/toroff"
android:layout_gravity="center" android:layout_gravity="center_horizontal"
android:layout_height="wrap_content" />
android:layout_width="wrap_content">
<TableRow> <TextView android:id="@+id/lblStatus"
<ImageView android:text="@string/press_to_start"
android:id="@+id/imgStatus" android:layout_gravity="center_horizontal"
android:layout_marginTop="30dip" android:textStyle="bold"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="30dip"
android:src="@drawable/toroff"/> android:textColor="#ffffff"
</TableRow> />
<TableRow>
<TextView android:id="@+id/lblStatus"
android:text="@string/press_to_start"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:textStyle="bold"
android:layout_width="fill_parent"
android:layout_height="75px"
android:textColor="#ffffff"
/>
</TableRow>
</TableLayout>
</TableRow>
</TableLayout>