summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPal Szasz <pal.szasz@sonyericsson.com>2010-08-24 08:51:29 +0200
committerJohan Redestig <johan.redestig@sonyericsson.com>2010-08-25 10:09:38 +0200
commit342da2a5a6d5c5fce2068cd57905a29ab554b650 (patch)
treeae61048f4c499378f8919fcbf358cfc184e884f2 /core
parente7731f0a7f824add1fffa391965cbfeaf7cb2cf2 (diff)
downloadframeworks_base-342da2a5a6d5c5fce2068cd57905a29ab554b650.zip
frameworks_base-342da2a5a6d5c5fce2068cd57905a29ab554b650.tar.gz
frameworks_base-342da2a5a6d5c5fce2068cd57905a29ab554b650.tar.bz2
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
Diffstat (limited to 'core')
-rw-r--r--core/res/res/layout/always_use_checkbox.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/res/res/layout/always_use_checkbox.xml b/core/res/res/layout/always_use_checkbox.xml
index baa4bee..a955352 100644
--- a/core/res/res/layout/always_use_checkbox.xml
+++ b/core/res/res/layout/always_use_checkbox.xml
@@ -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"