Instantiates a layout XML file into its corresponding View objects
Questions tagged [android-inflate]
651 questions
0
votes
0 answers
android.view.InflateException: Binary XML file line #40
When i start my application after some time it gives an error and the application started to give error there are some releted topics about that but i cant fix my bug please help me for that
my java code;
package com.infotek.fusionlauncher;
import…

Shockelduck
- 65
- 1
- 2
- 15
0
votes
2 answers
android TableLayout with dynamically added cells - nothing displayed
I have TableLayout with dynamically added cells. Unfortunately cells are not displayed (all dynamically added part seems to be not existing when displaying layout).
First part of my layout definition:

user2707175
- 1,133
- 2
- 17
- 44
0
votes
2 answers
Remove Child View From Fragment
I'm on Android 2.3.3 and I'm trying to remove programmatically a child view node from its container.
I'm inside a fragment. The method removeView doesn't seem to work...
The method getCategories is an async http task that return objects result (I…

Jumpa
- 4,319
- 11
- 52
- 100
0
votes
0 answers
Binary XML file line #17: Error inflating class - unpredictable error
I'm trying to inflate layout to custom adapter in getView(...) method but sometimes I get an error in title. I already tried to search in similar questions here but I didn't find a solution which worked for me. This error is strange because it…

Doctor Zoidberg
- 93
- 1
- 8
0
votes
3 answers
Error inflating custom TextView in Android
I have searched for hours now for a solution but can't find one. I am trying to create a custom TextView which animates the values if it is numbers. However, I get an exception even before it starts the first value. I hope you can help.
Here is my…

7heViking
- 7,137
- 11
- 50
- 94
0
votes
2 answers
calling a view from outside the layout of the activity
I am calling a view from outside the layout of my activity so I am doing:
View v = inflater.inflate(R.layout.image_view_layout, null);
ImageView iv = (ImageView) v.findViewById(R.id.img_pager);
where R.layout.image_view_layout is the layout of…

Learning Android
- 273
- 4
- 17
0
votes
3 answers
Error when inflating the ImageButton
I click the ImageButton in Fragment-A , And it will change to Fragment-B.
But if I add the two ImageButton in Fragment-B , it will crash.
The following code is in Fragment-A.
ImageButton FileButton = (ImageButton) view.findViewById(R.id.FileButton)…

Wun
- 6,211
- 11
- 56
- 101
0
votes
1 answer
Eclipse, layout in a view on an image view
so i have this class called book. this book is both a java class and an xml file for the layout. i then have a class/xml file called book_shelf. in my book_shelf xml file i have a view called book1.
public class book_shelf extends Activity…

Mikecit22
- 157
- 1
- 14
0
votes
1 answer
Error inflating class fragment after remove and import google-play-service_lib project
I have searched many related question, but still have no clue to solve it.
Before I deleted the google_play_service_lib project, everthing is fine, BUT after i deleted it, and import it again, the error just happened...
Here are the…

Tyo Yang
- 81
- 8
0
votes
2 answers
Some mobile phone gets the error "android.view.InflateException: Binary XML file "of SlidingMenu
My app is all right on most of the phone.However,on some kinds of phone,it will get the error below:
android.view.InflateException: Binary XML file line #2: Error inflating class com.jeremyfeinstein.slidingmenu.lib.SlidingMenu
at…

GuoBuping
- 63
- 8
0
votes
1 answer
Inflating a layout(activity) properly with left panel
public static class PlanetFragment extends Fragment {
public static final String ARG_PLANET_NUMBER = "planet_number";
public PlanetFragment() {
// Empty constructor required for fragment subclasses
}
…

Dave Doga Oz
- 1,238
- 1
- 10
- 19
0
votes
1 answer
How to check if view was already loaded? (InflateException: Duplicate id)
I'm building an android app in which I use one Activity from which I can load several fragments. So I start with the FragmentA, and from that I load Fragment B as follows:
FragmentTransaction tx =…

kramer65
- 50,427
- 120
- 308
- 488
0
votes
1 answer
Can't inflate FrameLayout
I am trying the code from the answer of this question: dynamically add and remove view to viewpager
I copied the code but inflater at the following line can't be resolved.
FrameLayout v0 = (FrameLayout) inflater.inflate (R.layout.fragment_schema,…

stefana
- 2,606
- 3
- 29
- 47
0
votes
3 answers
inflate view and back key android or onBackPressed()
final View view1 = getLayoutInflater().inflate(
R.layout.activity, homescreen, false);
We are using getLayoutInflater() to inflate custom views in an activity. So flow is when user clicks on one button we remove one view and inflate…

Amod Gokhale
- 2,346
- 4
- 17
- 32
0
votes
0 answers
how view id is assigned to View [java] object during inflation?
How is the compile-time generated R.id.view_id for view_id attribute that is defined in layout.xml assigned during that particular view's runtime inflation ?
Obviously attribute names are available during runtime layout.xml parsing, my question is…

kiruwka
- 9,250
- 4
- 30
- 41