Questions tagged [android-inflate]

Instantiates a layout XML file into its corresponding View objects

651 questions
0
votes
0 answers

Remove Inflate View from Default Android BLE Adapter Example [java]

I got quiet comfortable with the default Example for the BLE Adapter from the official android website. But i don't get it how i can remove the List with all Devices from the UI. i don't want to show the Devices which where found in a list , but i…
Libero7
  • 3
  • 2
0
votes
0 answers

Force menu inflating behaviour outside the action bar

I'm currently developing an android application, whose target is API19 (min sdk version is set to API14). This app will not run in a mobile phone, but on a custom device. The screen is not a touch screen, so user interaction will rely on a keyboard,…
JorgeGRC
  • 1,032
  • 2
  • 18
  • 37
0
votes
1 answer

Error inflating class RingtonePreference

I was trying to repeat an example from a book, whose source code has been tested on the very same phone, which works, but mine didn't. I have compared the source codes and they are exactly the same. Errors are: 04-05 15:30:33.004:…
Leon
  • 169
  • 3
  • 14
0
votes
0 answers

Hard to reproduce XML inflation error

This crash is being reported sporadically and I can't explain why it would happen or repro it at all myself. I have an activity container which hosts a fragment in a frame layout that gets replaced as the user traverses the app, a bottom bar…
Daniel Wilson
  • 18,838
  • 12
  • 85
  • 135
0
votes
1 answer

Prevent from Duplicating a View on Custom ListView Layout

I created a layout which has a button. I want to prevent from duplicating the button for each row while I'm using the layout to inflate. How should I do that? Thanks, Alireza
Alex
  • 1,623
  • 1
  • 24
  • 48
0
votes
0 answers

how to get multiple edittext value from child view

I have one main layout with one LinearLayout. In this LinearLayout I inflates xml layouts that contain a form with multiple edittext fields(4 EditText) in it. every time i click on add button xml layouts that contain a form with multiple edittext…
0
votes
2 answers

Inflating a View inside one of two Fragments

in my Android application (for tablets), I have a two pane layout. On the left is a fragment containing a navigation menu of sorts, and on the right is a fragment loaded with buttons. Pressing one of these buttons should result in a AlertDialog…
0
votes
1 answer

ListFragment with a custom view hierarchy results with zero width / height children in onViewCreated

I'm inflating View for ListFragment with: @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_home, container, false); } In public void…
0
votes
1 answer

Inflated view does not get dimmensions from xml

I'm trying to add custom view to google map Marker: I inflate a layout. <- this is the problem Then transform it to Bitmap. Generate Marker. So I have layout home_marker_container.xml:
0
votes
1 answer

Android - How to layout and use a custom View?

I am writing an app on Android Studio and I am trying to create a custom view with a specific form I need, something like: Custom View Example (I used different colors to show how the layout is supposed to go) Here's the xml:
0
votes
1 answer

Error inflating com.google.ads.AdView

I am trying to integrate google ads to my game. But when I run this code, I got an exception. Here is my code:
Traabefi
  • 13
  • 4
0
votes
0 answers

android checkbox buttonview gets the initial and last id of checkbox when used in a for loop

private void show_weatherdialog() { AlertDialog.Builder builder = new AlertDialog.Builder(this); LayoutInflater li = getLayoutInflater(); Blockquote inflating the main layout for the row_item that contains tetview, checkbox…
0
votes
0 answers

Unable to start activity ComponentInfo android.view.InflateException

I am developing an application that consists of analog gauge and i found library from analog gauge from here. when i was adding the library to the downloaded project it was added successfully and works fine. But When it comes to my project, When i…
lakshman
  • 181
  • 8
  • 20
0
votes
1 answer

How to fix Unable to start activity ComponentInfo, android.view.InflateException in android

I am developing an android application that consists of a analog gauge view and i found it here when i was imported that library and project in eclipse it was working successfully. When i was including that library into my project it was not…
lakshman
  • 181
  • 8
  • 20
0
votes
1 answer

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

I am getting error when trying to run this code in gingerbread 2.3.The code works fine in jellybean. The above code has support library called Sherlock. I'm still unable to run in ginger bread can anyone help me out? Complete log 01-07…