Changing the checkbox size in Android 2.0

女生的网名这么多〃 提交于 2020-01-05 12:15:21

问题


Ok so I know this has been asked before and there seems to be that all of the answers point to this very old tutorial.

http://www.anddev.org/viewtopic.php?p=17050

My problem with that tutorial is it is over a year old and references the use of files that are not available anymore in the android SDK.

It is also very hard to understand the crux of what I think should be such a simple thing.

Can someone on here please clarify for me. It would seem that you just set a different drawable as the background and it takes on the size of the drawable. Is that correct?


回答1:


Thats right just simply setting the background to your new selector with larger images should do the trick. You shouldn't need to make a style for your checkboxes like in this tutorial but it could save you some time in the long run.



来源:https://stackoverflow.com/questions/5207714/changing-the-checkbox-size-in-android-2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!