LinearLayout wrap Content - Android User Interface

Android examples for User Interface:Layout

Description

LinearLayout wrap Content

Demo Code


//package com.java2s;

import android.widget.LinearLayout;

public class Main {
    public static LinearLayout.LayoutParams wrapContent() {
        return new LinearLayout.LayoutParams(
                LinearLayout.LayoutParams.WRAP_CONTENT,
                LinearLayout.LayoutParams.WRAP_CONTENT);
    }/*  www.j a  v a2  s  . c  o m*/
}

Related Tutorials