I just create the Layout design using java code only not from the XML Layout Designs.
Like the following
LinearLayout llay=new LinearLayout(this);
TextView tv1=new TextView(this);
tv1.setText("New Layout");
llay.addView(tv1);
How do use the LayoutInflater inflater for my LinearLayout ??? I am new to Android
The
LayoutInflateris used to get and split a layout defined via XML in your code. What I want to say is basically that you certainly don’t need layout inflating if you define your layout via Java code like you’ve posted.If you want to pass your
LinearLayoutas your content view then set it in youronCreate()method like this.