Android: Default attributes for custom views

后端 未结 3 995
渐次进展
渐次进展 2021-02-14 20:24

I have a custom view that extends one of the framework classes. Most Views in Android have some default attributes defined for them (such as Button bei

3条回答
  •  囚心锁ツ
    2021-02-14 21:13

    You could additionally create a style for this layout and set the style where you use the view.

    source: http://developer.android.com/guide/topics/resources/style-resource.html

提交回复
热议问题