Update wifi preference layout and progress category layout.

This commit is contained in:
Amith Yamasani
2010-11-22 14:21:09 -08:00
parent 52322a9173
commit 78019ea80d
2 changed files with 27 additions and 28 deletions

View File

@@ -15,30 +15,22 @@
--> -->
<!-- Layout used for ProgressCategory in bluetooth settings. --> <!-- Layout used for ProgressCategory in bluetooth settings. -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="?android:attr/listSeparatorTextViewStyle"> style="?android:attr/listSeparatorTextViewStyle"
android:gravity="center_vertical"
android:orientation="horizontal"
>
<!-- This and the other text view have the style of the list separator text view without the background and padding --> <!-- This and the other text view have the style of the list separator text view without the background and padding -->
<TextView <TextView
style="?android:attr/listSeparatorTextViewStyle" style="?android:attr/listSeparatorTextViewStyle"
android:background="@null" android:background="@null"
android:paddingLeft="0dip" android:paddingLeft="32dip"
android:id="@+android:id/title" android:id="@+android:id/title"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentLeft="true" android:layout_weight="1"
android:layout_centerVertical="true" android:layout_gravity="center_vertical"
/>
<ProgressBar
android:id="@+id/scanning_progress"
android:text="@string/progress_scanning"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="?android:attr/scrollbarSize"
style="?android:attr/progressBarStyleSmallTitle"
/> />
<TextView <TextView
@@ -48,10 +40,19 @@
android:id="@+id/scanning_text" android:id="@+id/scanning_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerVertical="true" android:layout_gravity="center_vertical"
android:layout_toLeftOf="@id/scanning_progress"
android:layout_marginRight="5sp" android:layout_marginRight="5sp"
android:text="@string/progress_scanning" android:text="@string/progress_scanning"
/> />
</RelativeLayout> <ProgressBar
android:id="@+id/scanning_progress"
android:text="@string/progress_scanning"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginRight="16dip"
style="?android:attr/progressBarStyleSmallTitle"
/>
</LinearLayout>

View File

@@ -18,6 +18,4 @@
android:id="@+id/signal" android:id="@+id/signal"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginRight="4sp"
android:layout_gravity="center_vertical"
android:src="@drawable/wifi_signal" /> android:src="@drawable/wifi_signal" />