android-drawable Questions
4
Solved
I have this function in my main activity which doesn't display a badge:
private fun setFindShiftBadge(state: HomeState) {
val findShiftsBadge = BadgeDrawable.create(this)
home_framelayout.foreg...
Lynnett asked 31/1, 2020 at 18:44
0
I'm trying to display launcher icon of the app:
Image(
modifier = Modifier.size(24.dp),
painter = adaptiveIconPainterResource(id = R.mipmap.ic_launcher_round),
contentDescription = stringResourc...
Raychel asked 13/3, 2024 at 13:0
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
6
Solved
I want to create a border for a linearLayout. So I decide to create a shape. I want the border to have a gradient. The following is not doing it. It fills the rectangle and then creates a stroke. I...
Barbell asked 1/1, 2014 at 16:49
11
Solved
I have a textView in xml here.
<TextView
android:id="@+id/bookTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableLef...
Parisi asked 3/8, 2011 at 19:8
20
Is it possible to set the margin or padding for the image which we added with the android:drawableLeft?
Fred asked 26/7, 2010 at 17:36
15
Gradle build is not successful because it cannot find ic_launcher_foreground.xml in drawable.
Taillight asked 22/3, 2018 at 4:35
3
I have quite a few (208 currently) SVG files that I programmatically turn into .imageset assets for my iOS app. I'd like to do the same for Android somehow.
I'm pretty pleased with the result I ge...
Brook asked 28/2, 2020 at 23:32
4
Which method is more efficient for creating Bitmap out of Drawable from resources?
Bitmap myBitmap = BitmapFactory.decodeResource(context.getResources(),
R.drawable.icon_resource);
Vs
Drawabl...
Bucher asked 12/2, 2013 at 20:13
6
Solved
Even though I didn't choose photothumb.db as a drawable, I get an error saying photothumb.db should end with .xml or .png
my profilesmaller image is of type png
Below are my codes
<FrameLayou...
Zobias asked 7/12, 2016 at 7:33
5
Solved
I have a custom progress bar that looks like this:
Here's the .xml code I've used to create it:
background_drawable.xml
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="ht...
Kenney asked 27/8, 2018 at 14:51
6
Solved
I find out that since Android Studio 4.1 I cannot change the background color of a Button by setting color on its android:background, just no effect. And custom Drawable is not working as well.
My ...
Yonne asked 6/11, 2020 at 23:7
8
Solved
I am trying to achieve this progress bar design:
The current code that I have produces this:
This is the code:
<item android:id="@android:id/background">
<shape>
<corners an...
Prophet asked 7/3, 2017 at 11:2
3
Solved
I created my vector drawable animation and I want to use in in Compose. I found in official documentation that I need to call animatedVectorResource. But whole AnimatedImageVector has been removed ...
Shih asked 5/8, 2021 at 18:48
5
Solved
I've an app with over 5000 downloads and more than 500 users active daily and out of nowhere I started get an weird error on Crashlytics:
Caused by android.content.res.Resources$NotFoundException:...
Gouveia asked 27/10, 2018 at 3:9
26
Solved
I'm working on an android application, and I have a drawable that I'm loading up from a source image. On this image, I'd like to convert all of the white pixels to a different color, say blue, and ...
Rhapsody asked 21/8, 2009 at 1:10
2
Solved
I have application with exoplayer on Android. I have create youtube's double-tap gesture to jump 10 seconds forward or backward with animation! How create this semicircle with ripple effect on doub...
Mariejeanne asked 6/11, 2018 at 13:55
3
Solved
How can I convert my android vector drawable to SVG?
Don't mark it as duplicate question. I have already tried those methods but didn't work, what I have tried https://shapeshifter.design/ website,...
Luminal asked 23/6, 2020 at 17:7
7
Solved
I am trying to convert a hex value to an int so I can create a new color drawable. I'm not sure if this is possible, but according to the documentation, it should. It plainly asks for
public Col...
Cotopaxi asked 16/10, 2013 at 15:35
1
I'm trying to create a zoomable ImageView that can display vector images (SVG converted to Vector Drawable) that doesn't loose it's sharpness when zooming in.
I've used multiple Zooming approaches ...
Aureole asked 12/10, 2022 at 15:14
2
Solved
My vector drawable from Vector Asset:
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint...
Norse asked 17/10, 2020 at 3:51
10
Solved
I added some icons on 4 buttons and they look so big next to the button. So how can I resize them? I used drawableLeft on the buttons to add icons.
The drawables are called deal, trophy, puzzle and...
Wherewith asked 6/12, 2016 at 15:25
3
I'm using the Android's new splash screen API, and I see a limitation in this new API. I want to place the logo above the center line without compromising the size of the logo in the splash screen ...
Trismus asked 31/8, 2022 at 10:51
22
Solved
I would like to set a certain Drawable as the device's wallpaper, but all wallpaper functions accept Bitmaps only. I cannot use WallpaperManager because I'm pre 2.1.
Also, my drawables are downloa...
Sourdough asked 14/6, 2010 at 7:46
26
Solved
I'm seeing the following exception in crash logs:
android.app.RemoteServiceException: Bad notification posted from package com.my.package: Couldn't create icon: StatusBarIcon(pkg=com.my.package us...
Curcuma asked 14/8, 2014 at 21:9
1 Next >
© 2022 - 2025 — McMap. All rights reserved.