Questions tagged [android-inflate]

Instantiates a layout XML file into its corresponding View objects

651 questions
0
votes
3 answers

image won't show on inflated ImageView

I'm trying to inflate a photo that i took via camera on on ImageView but get NPE. public void onDescriptionClick(){ RelativeLayout mainLayout = (RelativeLayout) findViewById(R.id.camap); View view =…
0
votes
1 answer

Android RecyclerView - setting it's height and displaying elements

I have and XML file like this (problem is with RecyclerView - scroll to the end of the file):
anton86993
  • 638
  • 1
  • 9
  • 26
0
votes
0 answers

Inflate a layout into Text View

I want to inflate a RelativeLayout with a TextView and ImageView, into a TextView or AutoCompeleteTextView. Something like this: I try with these, but it doesn't work: LayoutInflater vi = (LayoutInflater)…
Beppe
  • 201
  • 1
  • 2
  • 13
0
votes
1 answer

Android - Binary XML file line #11: Error inflating class

Not sure why its giving me this error. The XML is super simple and I just have a class which assigns the objects.
Mikerizzo
  • 587
  • 1
  • 4
  • 22
0
votes
1 answer

Row layout not inflated in Android

I have a problem. I started a few weeks ago learning Android. I am trying to create an adapter for a list. But the lists doesn't show up AT ALL. Any ideas why? The items are objects type Verb. Here is my code: ///my main activity/// public class…
Ela Pink
  • 13
  • 2
0
votes
1 answer

Unable to inflate recycler view programatically

I want to inflate a slider and a recycler view programatically in a fragment. The Slider gets inflated successfully and the swipe refresh also is functioning. NO ERROR IN THE LOG BUT THE RECYLER VIEW DOESN'T GET INFLATED public View…
0
votes
1 answer

android: setTest of another layout (but inflated) not working

I try to edit a text of another layout in android. I already inflted the textview but the text don't move ... View rowLink = getLayoutInflater().inflate(R.layout.nav_header_acceuil, null); TextView nameText = (TextView)…
0
votes
2 answers

Android change textview content

Hi I tried to change the content of a textview of another xml. Unfortunaly it does not work, my code looks like this: View inflatedView = getLayoutInflater().inflate(R.layout.fragment_main, null); TextView testView= (TextView)…
J.Alc
  • 1
0
votes
2 answers

how to link two resource files in android studio?

make activity with 2 resource files (or 2 layouts). 1 containg form to retrieve arraylist from database and 2nd to show that list in list view.. how to link these two resource files? i want to use inflator.. but don't know where to use it? after…
0
votes
2 answers

error in inflating class

I have problem but I don't know what's it. I always wrote this code and it work correctly but this time it doesn't work. error: 10-27 07:40:52.769: E/AndroidRuntime(1572): FATAL EXCEPTION: main 10-27 07:40:52.769: E/AndroidRuntime(1572):…
Mohammad
  • 177
  • 2
  • 9
0
votes
1 answer

Android custom view with button not clickable

I've created a custom RelativeLayout view which I inflate with merge tags. In this custom view I have a button which I want it to do something. I've tried many things but the button simply refuses to be clicked. The strange part is, I can find the…
0
votes
1 answer

Binary file -NoClassDefFoundError: … R$styleable circlepageIndicator.java

error in kitkat device not in greater version of android. after changing gradle file. library used for circle pager indicator. https://github.com/JakeWharton/ViewPagerIndicator dependencies { classpath 'com.android.tools.build:gradle:1.0.0'} to…
Anant Shah
  • 3,744
  • 1
  • 35
  • 48
0
votes
2 answers

android.view.InflateException, Error inflating fragment class

I want to implement a layout that has a MapView and NavigationView, below is what I tried following this tutorial. I am getting this error android.view.InflateException: Binary XML file line #43: Error inflating class fragmen What is wrong? …
A_Matar
  • 2,210
  • 3
  • 31
  • 53
0
votes
0 answers

How to set the dynamic data when button clicks to add inflate layout in android

How to set the dynamic data when button clicks to add inflate layout text and imageview in android?
naveenmethuku
  • 51
  • 1
  • 5
0
votes
0 answers

Two layouts and findViewById

I have two layouts - activity_main.xml and select.xml(transparent). In my MainActivity class I have: setContentView(R.layout.activity_main); and after that: view = View.inflate(MainActivity.this, R.layout.select, null); btnPrev = (ImageButton)…
Nikola
  • 890
  • 1
  • 11
  • 35