Search code examples
androidbackwards-compatibility

match_parent compatibility


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 ?


Solution

  • 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 .