My application targets the v10 of the android Sdk but has the v6 for minSdkVersion. By default the "match_parent" propertie will be used for the width or height. Should i change it for fill_parent to ensure backwards compatibility of device with android under 2.2 ?
yes, you should use fill_parent instead of match_parent to reduce the ambiguity as your min sdk version is V6.
fill_parent also works on android 2.2 .
Use match_parent. Both FILL_PARENT and MATCH_PARENT constants are compiled to -1 and will work on any Android device.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With