Fix the layouting of the checkbox.

Sometimes (very rarely) the checkbox is not layouted correctly
(it's partly visible only). The reason is that the checkbox
(and the hint text below it) has layout_width set to
"wrap_content" as well, which means it needs more then one
layout runs to get the final layout.

Change-Id: I460bb29e2d9b4fdcf3df314e2baf9c45b2a6259b
This commit is contained in:
Pal Szasz
2010-08-24 08:51:29 +02:00
committed by Johan Redestig
parent e7731f0a7f
commit 342da2a5a6

View File

@@ -26,14 +26,14 @@
<CheckBox
android:id="@+id/alwaysUse"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="true"
android:clickable="true" />
<TextView
android:id="@+id/clearDefaultHint"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:paddingLeft="36dip"