开发者

ListView checkboxes are over text, how to pad text and force checkbox standard color?

开发者 https://www.devze.com 2023-04-03 23:14 出处:网络
I have a listview checkboxes with text in a Linear Layout: <CheckBox android:layout_width=\"fill_parent\"

I have a listview checkboxes with text in a Linear Layout:

<CheckBox android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:id="@+id/nomeAPP" style="?listItem" />

But those checkboxes are over the text.

There's any way to pad the text a little to the right?

Also, I was testing with a AVD with 2.2 SDK. Just tested on my phone (also on 2.2), but looks like b开发者_运维问答ecause of the phone theme (i have a cooked rom) the checkbox color is white (instead the standard grey). Is anyone way to force the checkbox color to the usual grey?


Try using the padding attribute i.e android:paddingRight to apply padding to text towards right.Please refer this link.

0

精彩评论

暂无评论...
验证码 换一张
取 消