fixes log layout for narrow screens

This commit is contained in:
n8fr8 2012-10-04 11:26:12 +05:30
parent 433f1cdeb9
commit a593423e3a
1 changed files with 34 additions and 21 deletions

View File

@ -76,42 +76,55 @@
android:text="@string/menu_log" ></Button> android:text="@string/menu_log" ></Button>
<RelativeLayout android:id="@+id/trafficRow" <RelativeLayout android:id="@+id/trafficRow"
android:gravity="bottom" android:gravity="top"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:visibility="invisible" android:visibility="invisible"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="6dp" android:padding="6dp"
android:layout_marginTop="6dp" android:layout_marginTop="6dp"
android:background="#ee333333"> android:background="#ee333333">
<RelativeLayout
android:id="@+id/rowTrafficDown" android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<TextView <TextView
android:id="@+id/trafficDownLabel" android:id="@+id/trafficDownLabel"
android:textColor="#FFFFFFFF" android:textColor="#FFFFFFFF"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:textSize="16sp" android:textSize="20sp"
android:text="@string/main_layout_download" android:text="@string/main_layout_download"
android:gravity="center_vertical|center_horizontal" android:gravity="center_vertical"
android:textStyle="bold" />
<TextView
android:id="@+id/trafficUpLabel"
android:textColor="#FFFFFFFF"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="@string/main_layout_upload"
android:textSize="16sp"
android:gravity="center_vertical|center_horizontal"
android:textStyle="bold" /> android:textStyle="bold" />
<TextView <TextView
android:id="@+id/trafficDown" android:id="@+id/trafficDown"
android:textColor="#FF00B627" android:textColor="#FF00B627"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentLeft="true" android:layout_alignParentRight="true"
android:layout_below="@+id/trafficDownLabel"
android:textSize="20sp" android:textSize="20sp"
android:gravity="center_vertical|center_horizontal" android:gravity="center_vertical"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/rowTrafficUp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/rowTrafficDown"
>
<TextView
android:id="@+id/trafficUpLabel"
android:textColor="#FFFFFFFF"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="@string/main_layout_upload"
android:textSize="20sp"
android:gravity="center_vertical"
android:textStyle="bold" /> android:textStyle="bold" />
<TextView <TextView
android:id="@+id/trafficUp" android:id="@+id/trafficUp"
@ -119,10 +132,10 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_below="@+id/trafficUpLabel"
android:textSize="20sp" android:textSize="20sp"
android:gravity="center_vertical|center_horizontal" android:gravity="center_vertical"
android:textStyle="bold" /> android:textStyle="bold" />
</RelativeLayout>
<TextView <TextView
android:id="@+id/orbotLog" android:id="@+id/orbotLog"
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
@ -131,7 +144,7 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_below="@+id/trafficDown" android:layout_below="@+id/rowTrafficUp"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:textIsSelectable="true" android:textIsSelectable="true"
/> />