android-inflate Questions
10
Solved
I need help with my android app. I need inflate a layout within another layout and I dont know how I do. My xml code is this:
item.xml - I need inflate multiple xml (depending on a variable numbe...
Jacoby asked 28/1, 2014 at 8:29
10
Solved
How do I declare a menu inside of Android fragment? The method that I had used previously is now deprecated.
Originally:
override fun onCreateView(...): View {
setHasOptionsMenu(true)
}
overri...
Urbain asked 18/4, 2022 at 22:56
7
Solved
I want to inflate a layout containing a single seekBar. in this way, I've created a java class that extends fragment class and then I inflate the layout. but the following error occurred:
Binary XM...
Gnostic asked 15/4, 2021 at 18:55
3
I am working with two recyclerview in single screen(For android TV).Each recyclerview have complex layout item.And it's taking time to load.I worked with asynclayoutinflator in activities.
AsyncL...
Altheaalthee asked 5/12, 2018 at 11:18
15
Solved
I have a layout defined in XML. It contains also:
<RelativeLayout
android:id="@+id/item"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
I would like to infl...
Forklift asked 25/2, 2010 at 16:47
33
Solved
I am receiving many errors of kind displayed in the subj. These errors seems to be occasional and I cannot reproduce them. From stack I can learn that such error may occurs for my different layout ...
Workday asked 22/12, 2010 at 19:35
4
I sometime get an Exception with the following message:
onGetLayoutInflater() cannot be executed until the Fragment is
attached to the FragmentManager
My full stacktrace (which is using Compo...
Kob asked 7/5, 2018 at 12:5
7
Solved
I am new to android development and keep coming across references to Inflating views from a layout xml file. I googled and searched the development guide but still wasn't able to pick up a sense fo...
Demon asked 1/1, 2011 at 23:39
11
Solved
Here is my code:
input.xml (layout folder)
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="mat...
Engobe asked 19/12, 2013 at 11:24
4
Solved
I have a LinearLayout with many nested LinearLayouts and TextViewss
My main activity inflates the main LinearLayout,
Then I load data from a server and based on the data received, I add multiple ...
Mariejeanne asked 3/2, 2013 at 1:14
4
My app is failing on a Trend TaintArt for x86 running Android 7.1.2 when it tries to inflate a layout containing an ImageView. The crash reports that the Drawable doesn't exist:
Yet, the Drawabl...
Divertissement asked 7/3, 2020 at 9:24
5
Solved
I have an application with min sdk 16 up to 23. I want to use Material design as much as possible. It also has to be fullscreen app. AppCompat support library is included. Now I have Logon activity...
Desirous asked 17/12, 2015 at 9:43
6
I have a class View1 that extends View. I want to inflate R.layout.test2.xml in this class View1. I have put a following code in this class
public class View1 extends View {
View view;
String[...
Adenoidectomy asked 14/6, 2012 at 8:17
15
Solved
What is the use of LayoutInflater in Android?
Tomika asked 13/8, 2010 at 13:46
1
Solved
Update: I've changed the title to remove the indication that ExoPlayer has anything to do with what is going on as I've managed to duplicate this without it being used at all.
I decided to try and...
Myasthenia asked 13/2, 2019 at 5:1
3
Solved
I'm developing a network app, which is group oriented. The thing is that when I'm about to join a group, it first checks if the group is secure, and if so, it asks for user and password. Getting gr...
Kun asked 13/12, 2010 at 18:57
2
Hi So in our project we are using calligraphy library , it works with no issues but now in one of the activity i added it keeps crashing with the following stacktrace:
01-23 02:25:32.178 3654-3654...
Hassiehassin asked 23/1, 2017 at 7:50
2
Solved
I followed android guide in this article How to Add a Splash Screen to a React Native App
And got to the point where I have my SplashScreen activity launching before my main activity i.e. while an...
Contrapositive asked 30/3, 2018 at 15:36
7
Solved
My onCreateOptionsMenu works only in my MainActivity and when I try to put another onCreateOptionsMenu in another activity to inflate a different menu it does not display my menu bar (note that I h...
Cosmogony asked 24/4, 2015 at 13:16
3
Solved
Please help me out here, I'm hitting brick wall for the last two days and can't figure it out.
I have a simple PreferenceFragment and would like to inflate it from an Activity.
Here is the res/xm...
Uriiah asked 5/4, 2014 at 18:50
2
Solved
I keep getting a java.lang.NullPointerException when I try to use ScrollView in an activity.
The weird thing is that I've used the exact same Scrollview setup in other activities. And all of a su...
Cantle asked 14/12, 2015 at 3:29
9
Solved
I'm trying to create a DialogFragment using a custom view in an AlertDialog. This view must be inflated from xml. In my DialogFragment class I have:
@Override
public Dialog onCreateDialog(Bundle s...
Manufactory asked 22/9, 2011 at 0:18
2
I'm using design support library
defaultConfig {
vectorDrawables.useSupportLibrary = true
...
}
dependencies {
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:support...
Conventicle asked 14/7, 2016 at 19:26
4
In my application's main layout I have a button of Search task. Now when user clicks that button I want to change the layout xml file to search_layout.xml.
I don't want to create a new activity fo...
Indiaindiaman asked 28/6, 2016 at 11:14
1
I build my app against
minSdkVersion 11
targetSdkVersion 23
When I run it on Samsug Galaxy S5 or Note5, the app runs fine with no problem. But when I try to run it on a Samsung S3 running andro...
Phthisic asked 17/6, 2016 at 14:5
1 Next >
© 2022 - 2024 — McMap. All rights reserved.