Include layout with custom attributes

后端 未结 7 1004
我寻月下人不归
我寻月下人不归 2020-12-02 22:24

I\'m building a complex layout and I want to use include tag for my custom component, like this:



        
7条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 22:48

    It's not possible to use with custom attributes, or any attributes other than the ones stated on the API page (up through at least 5.0.0):

    https://code.google.com/p/android/issues/detail?id=38023

    http://grepcode.com/file/repo1.maven.org/maven2/org.robolectric/android-all/5.0.0_r2-robolectric-1/android/view/LayoutInflater.java

提交回复
热议问题