在Android Studio 3.0中,我无法找到fill_parent类型的布局宽度。

时间:2018-01-29 23:22:49

标签: android android-studio-3.0

Android Studio 3.0 中,我无法找到 fill_parent 类型的 layout_width 。我需要有关如何访问此layout_width类型的帮助。任何帮助将不胜感激。

1 个答案:

答案 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"中有相同的值类。