Questions tagged [android-inflate]

Instantiates a layout XML file into its corresponding View objects

651 questions
1
vote
2 answers

Clear View in Android

I am calling the function setLayoutData() for many places i want to clear the view whenever it is called.What is happening now the layout get appends .But i don't want to append how can we clear the view .Please help me this is my function void…
user2568702
1
vote
1 answer

Implement Sorting in Android

I want to do sorting of data on click of a button. I am parsing a XML and storing its value in a List with the help of this class public class MyTripRespone { private List coroprateBookingDetails = null; …
user2568702
1
vote
0 answers

Inflate my simple edittext file dynamically

I have a simple edit text xml file which i wanna inflate in my code.
1
vote
2 answers

Programmatically Inflate View with pre-defined measures

I have a layout resource like this and a I want to inflate it with the layout width and height:
1
vote
3 answers

Error inflating class android 2.2 with drawer navigation

I am using DrawerNavigator in my app. I created an android app which works perfectly with android 4.2 but when I try to launch it in android 2.2 I get this error: android.view.InflateException: Binary XML file line #1: Error inflating class…
alecnash
  • 1,750
  • 1
  • 18
  • 42
1
vote
1 answer

android.view.InflateException: Binary XML file line #2: Error inflating class alpha

I am receiving this error on API 15 devices only it seems. It appears to be an issue with the animations or something, but I have no idea what to do to fix this. When I launch my app, it force closes. On API 17, however, it works fine. This is the…
IMcD23
  • 445
  • 1
  • 7
  • 13
1
vote
1 answer

Inflate layout with defined style

I'm implementing and app with a custom list adapter. When I inflate each list item which have a defined style the style doesn't seem to work. I call the inflate doing this: convertView = inflater.inflate(R.layout.widget,null); The layout is this…
patritri
  • 13
  • 1
  • 3
1
vote
1 answer

Error with the Example-Code from Scringo Android

I downloaded the Scringo SDK for Android (https://dev.scringo.com/downloads/scringo-android-2.1.10.zip) . In the .zip File is storage a Folder with the Name "ScringoSample" and contains a full App structur for a Android-Application. When I start…
user1878413
  • 1,813
  • 4
  • 18
  • 24
1
vote
1 answer

ExpandableView inside another ExpandableView won't inflate children

I've been struggling for a couple of weeks to solve this problem. I have two expandable views, one inside another. Whenever i click on the second level expandable view items, it won't inflate its children. All i see when i click is a small scroll…
1
vote
2 answers

Loading android layout from xml

I would like to load the layout from the xml file, I tried: View view = inflater.inflate(R.layout.map_cameras_fragment, container, false); but it just shows this: java.lang.NullPointerException at maps.z.r.onResume(Unknown Source)... Here is my…
1
vote
0 answers

android XML Error inflating class

I am trying to overlay a drawing on top of a camera preview. I made two custom class extended from SurfaceView: one for the overlay, and one for the cam. Here is my logcat (only the "Caused by" statements) : 04-11 19:58:06.549: W/dalvikvm(867):…
1
vote
1 answer

Android. Add controls programmatically

I have layout with controls:
Shallow
  • 57
  • 3
  • 9
1
vote
1 answer

Inflating a view which includes PDFViewCtrl

I am trying to inflate this view
coderock
  • 143
  • 13
1
vote
1 answer

Typeface.createFromAsset NullPointerException - only sometimes

In my starting activity, I call FontFactory.init(getApplicationContext()); to set Context to FontFactory class. I have also class which extends TextView and in constructor of this TextView there is…
Xdg
  • 1,735
  • 2
  • 27
  • 42