match_parentを使用する必要がありますが、match_parentとfill_parentに名前以外の違い
が本当に無いのか気になったので調査してみました。
結論から言うと、名前以外に違いはありませんでした。
match_parentとfill_parentは、ViewGroupの内部クラスLayoutParamsに定義されています。
public static class LayoutParams {
/**
* Special value for the height or width requested by a View.
* FILL_PARENT means that the view wants to be as big as its parent,
* minus the parent's padding, if any. This value is deprecated
* starting in API Level 8 and replaced by {@link #MATCH_PARENT}.
*/
@SuppressWarnings({"UnusedDeclaration"})
@Deprecated
public static final int FILL_PARENT = -1;
/**
* Special value for the height or width requested by a View.
* MATCH_PARENT means that the view wants to be as big as its parent,
* minus the parent's padding, if any. Introduced in API Level 8.
*/
public static final int MATCH_PARENT = -1;
どちらも同じ値でした。やはり単に名前変更だけのリファクタリングだったようです。
以上です。