Browse Source

Make layout of "Settings" height-responsive, add right padding for labels

master
Miłosz Sieradzki 11 years ago
parent
commit
846f13f0ca
  1. 70
      res/layout/settings.xml

70
res/layout/settings.xml

@ -13,7 +13,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutLocation" android:id="@+id/layoutLocation"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" android:background="?android:attr/listChoiceBackgroundIndicator"
android:paddingRight="10dp" > android:paddingRight="10dp" >
@ -24,6 +27,7 @@
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:paddingLeft="10dp" android:paddingLeft="10dp"
android:paddingRight="60dp"
android:text="@string/location" android:text="@string/location"
android:textAppearance="?android:attr/textAppearanceMedium" /> android:textAppearance="?android:attr/textAppearanceMedium" />
@ -46,7 +50,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutFullScreen" android:id="@+id/layoutFullScreen"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" android:background="?android:attr/listChoiceBackgroundIndicator"
android:paddingRight="10dp" > android:paddingRight="10dp" >
@ -57,6 +64,7 @@
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:paddingLeft="10dp" android:paddingLeft="10dp"
android:paddingRight="60dp"
android:text="@string/fullscreen" android:text="@string/fullscreen"
android:textAppearance="?android:attr/textAppearanceMedium" /> android:textAppearance="?android:attr/textAppearanceMedium" />
@ -79,7 +87,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutFlash" android:id="@+id/layoutFlash"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" android:background="?android:attr/listChoiceBackgroundIndicator"
android:paddingRight="10dp" > android:paddingRight="10dp" >
@ -90,6 +101,7 @@
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:paddingLeft="10dp" android:paddingLeft="10dp"
android:paddingRight="60dp"
android:text="@string/flash" android:text="@string/flash"
android:textAppearance="?android:attr/textAppearanceMedium" /> android:textAppearance="?android:attr/textAppearanceMedium" />
@ -112,7 +124,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutAdBlock" android:id="@+id/layoutAdBlock"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" android:background="?android:attr/listChoiceBackgroundIndicator"
android:paddingRight="10dp" > android:paddingRight="10dp" >
@ -122,6 +137,7 @@
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:paddingLeft="10dp" android:paddingLeft="10dp"
android:paddingRight="60dp"
android:text="@string/block_ads" android:text="@string/block_ads"
android:textAppearance="?android:attr/textAppearanceMedium" /> android:textAppearance="?android:attr/textAppearanceMedium" />
@ -144,7 +160,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutUseOrbot" android:id="@+id/layoutUseOrbot"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" android:background="?android:attr/listChoiceBackgroundIndicator"
android:paddingRight="10dp" > android:paddingRight="10dp" >
@ -154,6 +173,7 @@
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:paddingLeft="10dp" android:paddingLeft="10dp"
android:paddingRight="60dp"
android:text="@string/enable_orbot" android:text="@string/enable_orbot"
android:textAppearance="?android:attr/textAppearanceMedium" /> android:textAppearance="?android:attr/textAppearanceMedium" />
@ -176,7 +196,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutUserAgent" android:id="@+id/layoutUserAgent"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" > android:background="?android:attr/listChoiceBackgroundIndicator" >
<LinearLayout <LinearLayout
@ -215,7 +238,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutDownload" android:id="@+id/layoutDownload"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" > android:background="?android:attr/listChoiceBackgroundIndicator" >
<LinearLayout <LinearLayout
@ -254,7 +280,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutHomepage" android:id="@+id/layoutHomepage"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" > android:background="?android:attr/listChoiceBackgroundIndicator" >
<LinearLayout <LinearLayout
@ -293,7 +322,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutSearch" android:id="@+id/layoutSearch"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" > android:background="?android:attr/listChoiceBackgroundIndicator" >
<LinearLayout <LinearLayout
@ -331,7 +363,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutAdvanced" android:id="@+id/layoutAdvanced"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" > android:background="?android:attr/listChoiceBackgroundIndicator" >
<TextView <TextView
@ -355,7 +390,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutSource" android:id="@+id/layoutSource"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" > android:background="?android:attr/listChoiceBackgroundIndicator" >
<LinearLayout <LinearLayout
@ -394,7 +432,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutLicense" android:id="@+id/layoutLicense"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" > android:background="?android:attr/listChoiceBackgroundIndicator" >
<LinearLayout <LinearLayout
@ -426,7 +467,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/layoutVersion" android:id="@+id/layoutVersion"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:minHeight="60dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="?android:attr/listChoiceBackgroundIndicator" > android:background="?android:attr/listChoiceBackgroundIndicator" >
<LinearLayout <LinearLayout

Loading…
Cancel
Save