I have a settings activity that extends PreferenceActivity. However, I also have a custom preference that I added using my own layout. The question is, how can I use the same resource (padding/margin) in my own layout? I want all the elements in the list look aligned.
How to get padding/margin resources used in PreferenceActivity in Android?
680 views Asked by user1865027 At
1
You can define a dimens file in res/values directory
Then use this variable in all place you want, it is easy if you want to modify the design of app, it costs just one edit.