How do you add user defined properties/values in to the Android manifest file?

前端 未结 2 1677
挽巷
挽巷 2020-12-13 09:56

I want to add a custom attribute / property into the manifest file, and be able to read it at run time. I want to do this so I can customize the app\'s behavior via these ma

2条回答
  •  粉色の甜心
    2020-12-13 10:03

    You can create an empty resource file in res/values and add strings and items (for bool or integer values) to it.

    
    
        bar
        33
        true
    
    

    Alternatively you could simply use a Constants object in which you define your properties as final static variables.

提交回复
热议问题