I'm a little confused about two XML properties: match_parent
and fill_parent
. It seems that both are the same. Is there any difference between them?
Android – the difference between match_parent and fill_parent
androidandroid-layout
Related Topic
- Android – the simplest and most robust way to get the user’s current location on Android
- Android – the difference between gravity and layout_gravity in Android
- Android – Difference between “@id/” and “@+id/” in Android
- Android – What’s the difference between commit() and apply() in SharedPreferences
- Android – Is deprecated word the only difference between fill_parent and match_parent
- Android – the difference between FragmentPagerAdapter and FragmentStatePagerAdapter
- Android – the difference between compileSdkVersion and targetSdkVersion
- Android – Implement a RadioButtonPreference in Android
Best Answer
They're the same thing (in API Level 8+). Use
match_parent
.http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html