Match_parent compatibility

My app is for v10 for Android Sdk, but has v6 for minSdkVersion. By default, the match_parent property will be used for width or height. Should I change it for fill_parent in order to ensure backward compatibility of the device with Android under 2.2?

+6
source share
2 answers

yes, you should use fill_parent instead of match_parent to reduce ambiguity, since your min sdk version is V6.
fill_parent also works on Android 2.2.

+5
source

Use match_parent. Both FILL_PARENT and MATCH_PARENT constants are compiled to -1 and will work on any Android device.

+2
source

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


All Articles