开发者

android custrom control (button)

开发者 https://www.devze.com 2023-01-04 00:44 出处:网络
I would like to create button which contains text on left and checkbox on right (or any other component). How can I do that?

I would like to create button which contains text on left and checkbox on right (or any other component). How can I do that?

开发者_Go百科As I found I can make my own View extends Button, but how should I implement onDraw method if so?

Thanks


There's an easier solution, look at this post: Android: combining text & image on a Button or ImageButton

0

精彩评论

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