1
有没有办法将默认的android attrs设置为自定义视图,当在xml
中定义此视图时可以使用该方法?例如,我需要创建CustomImageView
,其中FrameLayout
与ImageView
和ProgressBar
位于其中。如果我在xml中添加这样的视图,例如,我想设置该视图的背景或src。 FrameLayout
没有android:src
属性,它不通过Android Studio自动完成窗口提供,我可以让Android Studio知道此布局可以处理这些属性吗?android:src attrs自定义视图