Top "Layout-inflater" questions

The layout-inflater tag refers to the Android LayoutInflater class which is used to build a view hierarchy from an xml layout file.

How can I get a reference of a view from a inflated layout

I have a huge layout for my activity that i set using setContentView(). In that layout I have a TableLayout(…

android android-tablelayout layout-inflater
Loading timePickerDialog from a fragment

I am trying to use a custom time picker and then run the picker from a fragment. This is the …

android datetimepicker timepicker layout-inflater findviewbyid
Unable to add window -- token null is not for an application

hi im trying to inflate an view(B.xml)(which has spinner in it)from a AsyncTask's onPostExecute() in a …

android dialog android-asynctask spinner layout-inflater
Android layout previewer throws error when adding custom LinearLayout

I've defined a custom ViewGroup that extends the functionality of a LinearLayout: public class TestLayout extends LinearLayout { public TestLayout(Context …

java android android-linearlayout layout-inflater
ViewStub raises error while inflating more than one layouts conditionally

In my app, I am having a spinner, and a ViewStub, depending upon the user item selection from spinner, I …

android inflate layout-inflater viewstub
How to remove View in Android?

I have two Buttons which is in main layout. If Add Button is clicked it has to add EditText dynamically(…

android android-view layout-inflater viewgroup android-inflate
Unable to set layout width, height and weight of inflated view in XML in Android

I am developing an Android app. In my app, I need to inflate list of views dynamically. I added them …

android android-layout android-view layout-inflater android-viewgroup
How to get data from dynamically created EditText using LayoutInflater in android?

This is Relative Layout view which is created dynamically like this : ... So my question is how to get the values …

android android-edittext android-relativelayout layout-inflater
Trying to inflate layout in Activity not working

I'm trying to add a custom view that I made to an adapter of mine. I'm trying to do this …

android xml android-layout layout-inflater commonsware-cwac
It inflate the view without the margin

I have this code View item = View.inflate(context, R.layout.item_layout, null); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(…

android margin inflate android-inflate layout-inflater