ViewGroup match Parent - Android User Interface

Android examples for User Interface:ViewGroup

Description

ViewGroup match Parent

Demo Code


//package com.java2s;
import android.view.ViewGroup;
import android.widget.LinearLayout;

public class Main {
    public static ViewGroup.LayoutParams matchParent() {
        return new ViewGroup.LayoutParams(
                LinearLayout.LayoutParams.MATCH_PARENT,
                LinearLayout.LayoutParams.MATCH_PARENT);
    }/*from   w  w  w .  j a  v a  2 s  .c o  m*/
}

Related Tutorials