Android use namespace as prefix for attributes in library

前端 未结 1 1952
渐次进展
渐次进展 2021-01-19 19:22

I am trying to implement the ActionBar through the support library, v7. Because I want to support the app for Android 2.1 (API level 7) and above.

I read in http://d

1条回答
  •  借酒劲吻你
    2021-01-19 19:30

    Here is an example of a menu:

    
    
        
        
    
    
    

    The whole philosophy is to have http://schemas.android.com/apk/res-auto in the namespace attribute in root menu. It doesn't matter what is the namespace identifier as long as it's valid and is used as such when using showAsAction attributes. Does this answer your question?

    0 讨论(0)
提交回复
热议问题