Skip to content

Commit 342da2a

Browse files
Pal SzaszJohan Redestig
authored andcommitted
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
1 parent e7731f0 commit 342da2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/res/res/layout/always_use_checkbox.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626

2727
<CheckBox
2828
android:id="@+id/alwaysUse"
29-
android:layout_width="wrap_content"
29+
android:layout_width="match_parent"
3030
android:layout_height="wrap_content"
3131
android:focusable="true"
3232
android:clickable="true" />
3333

3434
<TextView
3535
android:id="@+id/clearDefaultHint"
36-
android:layout_width="wrap_content"
36+
android:layout_width="match_parent"
3737
android:layout_height="wrap_content"
3838
android:textAppearance="?android:attr/textAppearanceSmall"
3939
android:paddingLeft="36dip"

0 commit comments

Comments
 (0)