android-xml Questions
11
Solved
Whenever I made any change to an XML file from the project and tried to run it, I got this error-
Execution failed for task ':app:mergeDebugResources'.
java.lang.IllegalArgumentException: Unable t...
Peculation asked 12/5, 2022 at 9:10
3
Solved
Im currently creating an app, which has a MaterialToolbar widget. I want to set the icons color to white.
I tried following the accepted answer in this question, however, it doesnt work. Adding col...
Luiseluiza asked 30/6, 2020 at 15:31
3
I have a RecyclerView inside of a ConstraintLayout whose top starts at the bottom of a textView, and whose bottom stretches down to the parent. I want the items in this RecyclerView to default to t...
Deel asked 28/11, 2017 at 19:15
4
Solved
Here is markup snippet for drawing rectangle with four rounded corners:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:colo...
Swearingen asked 5/8, 2015 at 9:37
3
Solved
I have a problem in my emulator. My emulator is not shown AlertDialog Scrim. I don't know why. I was try to reset my emulator, changing API level but not solve problem. How can I solve?
Number 5 is...
Actinia asked 12/5, 2023 at 21:3
8
Solved
This is a follow up question to this question:
Update Android Support Library to 23.2.0 cause error: XmlPullParserException Binary XML file line #17<vector> tag requires viewportWidth > 0...
Apices asked 26/2, 2016 at 23:11
4
Solved
I'm using the new ShapeableImageView to make a circular image, but the overlay is showing up as black. How can I make it transparent? This is what it looks like:
And this is the code:
<com.goog...
Gutow asked 14/8, 2020 at 22:0
12
I have searched more on websites and got many suggestions like below
Changing background with custom style to set the corner radius and padding ( Getting image as rectangle and background as roun...
Ultramicroscope asked 28/7, 2015 at 11:48
14
Solved
I recently deleted a fragment including its layout and viewmodel from my project. (FragmentAddFlight, VmAddFlight, fragment_add_flight.xml)
Surprisingly I am getting these errors:
[databinding] ...
Heartbreak asked 8/9, 2019 at 10:44
3
Solved
I have a string with placeholder e.g
<string name="str_1">Hello %s</string>
I want to use this in xml layout as android:text="@string/str_1". Is there any way to use this in xml layo...
Laudable asked 10/4, 2019 at 5:57
5
Solved
I created an app which uses this hdodenhof CircleImageview library.
My app works fine on Android 7 and 7.1 but it is crashing in lower versions such as marshmallow/Android 6. How can I solve this p...
Glazing asked 29/4, 2018 at 12:15
11
Solved
Using the Fonts in XML feature you can specify various font weights for a font family. For example:
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:android=&q...
Veneering asked 5/10, 2017 at 15:32
13
I have a RecyclerView adapter that looks like this:
public class RecyclerAdapter extends RecyclerView.Adapter<RecyclerAdapter.ViewHolder> {
private static Context context;
private List<...
Equi asked 20/11, 2015 at 20:51
3
Solved
I use the new splashscreen api to add an evenly splashscreen to all android versions down to API Level 23.
Are there any requirements for the splash icon? Currently i try to use a svg and i thought...
Presbyter asked 1/12, 2021 at 8:57
1
I updated my android studio to Dolphin. I have some ui issue:
1.Infinite cycle trying to resolve '?textAppearance': Render may not be accurate.
2.Failed to find '@android:attr/textAppearance' in cu...
Crinite asked 6/10, 2022 at 8:6
16
Getting Unknown attribute error on all android tag.
In layout XML, Auto suggestion is not showing all attributes (like layout_width, layout_height, orientation, orientation & all others andro...
Chasitychasm asked 10/2, 2016 at 6:57
1
Solved
This might be an odd question, but is sp as defined in Jetpack Compose different from sp in XML? We have an XML style that we use in TextView defined as follows:
<style name="Body">...
Headquarters asked 1/6, 2022 at 7:58
9
My menu xml code menu.xml:
<?xml version="1.0" encoding="utf-8"?><menu xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Single menu item
Set id, icon and Title for...
Tootsy asked 30/12, 2013 at 9:2
2
Solved
I'm implementing my own <declare-styleable> for a custom View (following the instructions here). I'd like to be able to specify an array of integers as one of the possible XML attributes. How...
Etty asked 8/1, 2013 at 16:33
5
Solved
I am trying to add admob to my android app in android studio. I almost there but am getting the error of:
Namespace 'ads' not bound
Here is also my xml with the ad:
<?xml version="1.0" encod...
Generator asked 27/8, 2013 at 0:30
3
Solved
In some applications I noticed that the status bar and navigational bar are transparent however, not completely. I do not know if this is a background color or something else. Would someone tell me...
Attalanta asked 13/1, 2017 at 13:11
4
Solved
What I'm currently doing
Currently, I have changed the scrollbar in my XML file using the android:scrollbarThumbVertical property like so:
<ScrollView
android:id="@+id/scrollView1"
android...
Guildroy asked 16/2, 2014 at 3:16
2
Solved
I have a FloatingActionButton inside a ConstraintLayout, like so:
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
&...
Mafalda asked 18/12, 2017 at 20:58
4
Solved
This is what my floating action button is showing
rather that just showing the actual circle part of the image, it tries to fit the background of my .png file into the floating action button.
her...
Pilkington asked 27/9, 2016 at 0:44
4
Solved
i am working on an application where i have to get a value of string resource to a constant. how can i do that? any ideas please.
The String is placed in
Application/res/values/strings.xml
and...
Woken asked 10/8, 2011 at 9:53
1 Next >
© 2022 - 2025 — McMap. All rights reserved.