Instantiates a layout XML file into its corresponding View objects
Questions tagged [android-inflate]
651 questions
0
votes
1 answer
Inflate Exception android java
Can anybody give me a hint why is this thing happening ?
I have removed volley.jar(an external jar but this error remains!!)
I am trying to make a listview where i fill up data received from php server as json.
I am using Asynctask functions to make…

RockFeller Dumbstep
- 51
- 8
0
votes
1 answer
Android findViewById always returns null
Currently, I am trying to build an streaming app using Android NDK and Live555. But my current problem is much more confusing. I've created a CustomPreviewClass to show the actual camera picture. But unfortunatly, when I try to access the view the…

Robin
- 709
- 2
- 8
- 20
0
votes
1 answer
Touch is disabled on Inflated View
I have implemented InfoWindowAdapter on GoogleMap objected to inflate the view of clicked marker the inflated view is showing perfectly but OnclickListener is not working on button of that view also not even button is being touched.
Actually the…

Haider Ali
- 800
- 2
- 9
- 22
0
votes
0 answers
Activity is starting slowly
There are several buttons in my app. New activity starts quickly whenever i press any button except for one. It lags to open a new activity.Why it is lagging ?
Here is the code snipet :
Intent intent = new Intent(this,…

Developer
- 385
- 1
- 3
- 18
0
votes
1 answer
InflateException when inflating a fragment for a drawer caused by NullPointerException thrown by setContentView() in MainActivity
Since Android Studio came out I decided to import my project in it from Eclipse. But the app crashes in API 16 but works fine 21. Minimum API is 14 and maximum is 21, I can't try running at something in between because I don't have any device at…

Silvano Cerza
- 954
- 5
- 16
0
votes
1 answer
NullPointerException while creating TextView dynamically inside custom ArrayAdapter
I am having trouble creating a TextView dynamically inside my custom ArrayAdapter. I guess it has something to do with the inflated layout, but I can't find a similar case anywhere around.
I get NPE at this line:
likers[position] = new…

Edmond Tamas
- 3,148
- 9
- 44
- 89
0
votes
1 answer
Get Layout Id from an already inflated view
Given a View object which has already been inflated by a layout, how can I retrieve the kind of layout it had been inflated yet? I want to check something like this:
convertView.getLayoutId() == R.layout.my_layout
If this does not work, do you…

Mahoni
- 7,088
- 17
- 58
- 115
0
votes
1 answer
Custom Toast Inflating - Android
I'm creating custom toast class called MyToast:
public class MyToast extends Toast {
public static final int RED = 0;
public static final int BLUE = 1;
public MyToast(Context context, String data, int color) {
super(context);
…

KiKo
- 1,668
- 7
- 27
- 56
0
votes
1 answer
Binary XML file line #14: Error inflating class fragment
I am using appcompat_v7 for the first time and trying to create navigation drawer with it. Everything works fine if i create my project using pre-defined activities suggested by eclipse.
But when i made changes on fragment_navigation_drawer file, i…

awaistoor
- 786
- 2
- 11
- 36
0
votes
0 answers
How should inflating go right way?
I need to have like several listviews on a scrollview which Android doesn't allow me to do so I decided to make it manually to simply inflate some listrows on a vertical LinearLayout, but everything goes not the right way
private void…

Lyubov Alekseeva
- 209
- 1
- 4
- 10
0
votes
2 answers
Creating seekbar dynamically and giving listeners for that but it is not working properly
I am inflating the seekbar dynamically,but if i press the first seekbar, listener changing the values from last seek bar only .
for (int i = 0; i < controlList.size(); i++) {
view1 =…

Boopathi
- 281
- 4
- 11
0
votes
1 answer
How to inflate an object of type Fragment in a view?
I'm trying to save the state of a fragment so that it doesn't have to reload everything when i come back to it.
I have a fragment in which i saved his state. I'm getting it this way:
Fragment f = getFragmentManager().getFragment(savedInstanceState,…

abibbo
- 1
0
votes
3 answers
android.view.inflate exception, Binary xml file line #28 Error inflating class com.xyz.featureTop
I am getting above error on loading my layout to activity. Please have a look in below code
my xml layout file -

unflagged.destination
- 1,576
- 3
- 19
- 38
0
votes
1 answer
Creating more than one TableLayout in the same layout
I have a need to create more than one TableLayout with a varied number of rows in one XML layout.
In my main layout I have an empty LinearLayout, as shown below:

Dan
- 2,304
- 6
- 42
- 69
0
votes
1 answer
Creating numerous LIstViews or TableLayouts programatically
I have read various posts on programmatically creating a TableLayout/ListView and I'm still unsure of the best route to take.
In my mind I have one class called RunTests.java. One test schedule can contain numerous test types, and for each test type…

Dan
- 2,304
- 6
- 42
- 69