在 Android Studio 3.0 中,我无法找到 fill_parent 类型的 layout_width 。我需要有关如何访问此layout_width类型的帮助。任何帮助将不胜感激。
答案 0 :(得分:0)
@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;
他们在" ViewGroup"中有相同的值类。