Skip to main content

Questions tagged [layout-inflater]

The layout-inflater tag refers to the Android LayoutInflater class which is used to build a view hierarchy from an xml layout file.

layout-inflater
-1 votes
0 answers
18 views

View loading speed optimization - custom view reuse leads to too many inflates leads to slow view loading

I have a custom btn view that was reused many times,but ‘mBinding = CustomBtnGrayBinding.inflate(LayoutInflater.from(context), this);’ inflate too many times, make the parent view load too slow. So, I ...
frisky XP's user avatar
0 votes
0 answers
12 views

Inflating Fragment View using View Binding with tow different ways

Typically, when inflating Fragments, I can use two different methods,, but I want to know the difference between them. override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, ...
Ali El-Sayed's user avatar
0 votes
0 answers
47 views

Binary XML file line #9: Error inflating , Binary XML file line #7<gradient> tag requires 'angle' attribute to be a multiple of 45

I wrote a android game power by recycle view called word game master After running and building, the program crashes. 4 types of exceptions were thrown. 1.android.view.InflateException, 2.java.lang....
hosein-developer's user avatar
0 votes
0 answers
64 views

Crash when navigating between fragments using app:navgraph in Android

My app is crashing randomly with the following error response. It shows a crash on this XML code at line number app:navGraph="@navigation/nav_radio" this. <fragment android:id=&...
Sukhwinder Kaur's user avatar
0 votes
1 answer
21 views

Can I use Canvas element in other functions to show on view

I have created a layout includes some view within, also it includes a LinearLayout to draw a graphic main_page_layout.xml <?xml version="1.0" encoding="utf-8"?> <androidx....
Onurkudrt's user avatar
0 votes
1 answer
36 views

Android Dialog not inflating view?

In an Android App, I have a list of multiple entries, that should be editable. Since every entry is made out of multiple values, i've created a fragment that basically represents the edit-form. When ...
dognose's user avatar
  • 20.7k
0 votes
0 answers
26 views

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

I am working on a News App with fragments. the main error I'm getting is "java.lang.RuntimeException: Unable to start activity ComponentInfo{com.diparoy.newsexplorer/com.diparoy.newsexplorer.ui....
DIPA ROY's user avatar
1 vote
0 answers
206 views

Why Android U(android 14) inflating layout/views took more time than Android T(android 13)?

We found that it took more time for inflating layouts/views on Android Uthan Android T in our devices. So I make an experiment with pixel Phone. Firstly, I developed a demo app which just do inflate ...
zhe chang's user avatar
0 votes
0 answers
37 views

Why my inflated layout is empty in custom bottom sheet fragment?

I want to create a bottom sheet template for my project to avoid repetitive codes. So I created a template layout with an empty linear layout for placing content view: <!-- ...
user21193451's user avatar
0 votes
1 answer
60 views

Listview in android studio java

I'm trying to implement a listview but i had an error in the Adapter Class on View view = LayoutInflater.from(context).inflate(R.layout.agences_items,parent,false); when compiling and the error ...
Kenne Dany's user avatar
2 votes
1 answer
199 views

How to inflate Views like in Activity, so that TextView will become MaterialTextView, for example?

Background I work on an app that doesn't always have an Activity (or AppCompatActivity to be precise). Sometimes it has a floating UI instead (using SAW permission), so it has only ApplicationContext. ...
android developer's user avatar
0 votes
1 answer
106 views

Error inflating class com.google.android.material.textfield.TextInputLayout: Binary XML file line #125

Binary XML file line #125 | Error inflating class I got this error with this code: <com.google.android.material.textfield.TextInputLayout android:id="@+id/group_ll" ...
Owlon's user avatar
  • 5
0 votes
2 answers
122 views

Dynamically added Views not visible

I am trying to add TextViews to a LinearLayout wrapped in a ScrollView during runtime, but the visibility of the TextViews will eventually not display on screen even though their visibility flags are ...
brutal11's user avatar
0 votes
0 answers
62 views

is it possible to modify the layout of other running applications

Let's say I have an application running in the background that is running displayed on top of other applications, When I run the following function it will change the text, image or color of the ...
M Hasan Nudin's user avatar
0 votes
1 answer
83 views

how to change layoutinflater to use another layout in kotlin to use fragments?

I'm improving an app by adding tabs (fragments), so now, my activity_main.xml is: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas....
Harmony Valley's user avatar

15 30 50 per page
1
2 3 4 5
82