Android XML Layout Constants

I am parsing Android XML layout files. I would like to reference Android XML string constants, rather than defining my own. I can easily find integer constants, not XML constants.

Where are these string constants?

Update:

I'm looking for a literal string that refers to values such as android:LinearLayout, android:layout_gravity, android:layout_widthand any matter related to such attributes as match_parent, centeretc.

+4
source share
1 answer

Did you mean that you want to get a string from the string.xml file?

you can get it with

String get = this.getResources().getString(R.string.string_name);
0
source

Source: https://habr.com/ru/post/1539847/


All Articles