Instantiates a layout XML file into its corresponding View objects
Questions tagged [android-inflate]
651 questions
0
votes
1 answer
Custom View won't inflate properly
Trying to build an android game with a map (right now we're just trying to make it draw a circle though) and the view we created won't inflate properly, the app keeps crashing
The activity
package edu.virignia.cs2110.dlf4mf.ghostapocalypse;
import…

Fonti
- 1,169
- 2
- 9
- 14
0
votes
0 answers
Android inflate a listview through a drawer
I have searched all over the internet, but I just can't find the right solution for this. And I'm sure it's simple.
I have a drawer layout, and with it I want to open a listview. When I open the listview by itself, it works fine, but when I try to…

Shin
- 11
- 3
0
votes
2 answers
Out of memory. InflateException Binary XML file Android
I have OutOfMemoryError while creating layout with a few images.
In line where logcat show me error i start declare TextView.
Error is on Samsung Galaxy S4.
When i run apps on HTC Desire X there is no error.
What might be the cause of that and how…

PiotrekSo91
- 58
- 6
0
votes
1 answer
inflating layout
I'd like to achieve such a layout, where user got 2 control panels. He is able to switch from first to second by pressing button and vice versa.
Already have tried to use LayoutInflater, however, without success :/
The main reason, why doing it with…

jpact
- 1,042
- 10
- 23
0
votes
1 answer
What is the meaning of re-inflating view in fragment?
While adding user interface to a fragment it is shown to inflate the view each an every call to onCreateView:
public static class ExampleFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup…

guness
- 6,336
- 7
- 59
- 88
0
votes
1 answer
inflate another layout below in android
this is my post shape xml fiile

user3871129
- 261
- 1
- 3
- 9
0
votes
1 answer
setOnClickListener throws nullPointerException in running time
I have an Activity which has a fragment. This fragment is changing it's layout depending on what's going on, for instance:
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
…

Ssr1369
- 348
- 3
- 16
0
votes
3 answers
Accessing Fragment's views after inflating
What I need to achieve
A screen displaying a ListView, which can be replaced by an error screen in case of problems (missing connection, server unavailable and the like).
I need to be able to switch (programmatically) back and forth between these…

XDnl
- 470
- 3
- 14
0
votes
1 answer
How to inflate view to bottom
I am trying to dynamically inflate a tabhost to the bottom of a view; however, no matter what I do it gets sent to the top.
RelativeLayout item = (RelativeLayout) findViewById(R.id.messagesactivityview);
View child =…

Raul Puri
- 119
- 1
- 1
- 12
0
votes
1 answer
Inflate a custom view from XML, then set her height and witdh programmatically
I'm loosing myself in an custom size View problem since a couple of days. After some long research, I finally decide to ask your help... please ! T_T
In my app, I created a custom View with the XML calendrieradmin_day.xml :

Viliktùr
- 11
- 4
0
votes
1 answer
Android Inflate Excetion when trying to add a fragment (android.vew.InflateException)
MainActivity.java
I followed this [tutorial][1]
and I got the Binary xml inflate exception at line number 11.
package in.wptrafficanalyzer.locationsearchdialogv2;
import android.app.SearchManager;
import android.content.Intent;
import…

Raaja
- 97
- 2
- 7
0
votes
1 answer
Android ProgressDialog : NullPointerException when trying to add a custom view
I get this error when i try to add a custom view for a ProgressDialog :
07-23 12:29:27.395: E/AndroidRuntime(9206): FATAL EXCEPTION: main
07-23 12:29:27.395: E/AndroidRuntime(9206): Process: com.app.frisbeee, PID: 9206
07-23 12:29:27.395:…

wawanopoulos
- 9,614
- 31
- 111
- 166
0
votes
0 answers
Always getting the same value from inflated layouts
I am inflating a layout on a button click,as many time as button clicked,This Layout is having edittexts,I want to get all that values into hashmap,But all time i get the only first value into hashmap,Loop is running number of layouts inflated…

user3820044
- 177
- 1
- 3
- 20
0
votes
3 answers
Round shaped image is elongated horizontally or vertically
I have to display a splash image which has a round shaped object (a Ball). The Layout for splash is a simple linear layout with just a single Image view to occupy the full screen.
Image : single image with the size of 1280 x 720.
When my splash…

iappmaker
- 2,945
- 9
- 35
- 76
0
votes
1 answer
Why is inflator not inflating the view?
I had an xml layout which worked fine, but I have tried the AdMob ads inserting an AdView and it isn't working anymore. In the log I can just see the "before" text, but I can't see the "after" text. What could this be due to?
fragment_home.xml

user1903
- 790
- 1
- 6
- 10