drawable Questions
3
Solved
I would like to know if i can, somehow, create a drawable resource (png for example) called 787.png. Because Eclipse wont let me compile the project unless i modify it.
Thanks in advance.
5
I can't seem to reference my image in the drawable folder. I have the image there however i keep getting an error stating that I cannot convert an int to Drawable. my R.java generated file has the ...
6
Solved
I need an xml drawable (for a cordova splash screen) in android. I Want to display a transparent logo centered on the screen (without stretching), while the rest of the screen has a background colo...
11
Solved
I want to add a new vector asset. I am trying to add a clipArt but it only shows in the dialog box "Nothing to show". No icon is showing and I want to add an icon. I don't know to fix th...
Taitaichung asked 16/10, 2020 at 3:33
10
Solved
I know about set drawableRight in XML. but i required to do it programmatically because it is change as per some condition.
6
Solved
I'm trying to create a simple Drawable that I want to set as the background for a view (using setBackgroundDrawable). I simply want to divide the background of the drawable into 2 equal rectangles ...
6
Solved
I'm trying to create a drawable on the fly to use as a background for a custom linearlayout. It needs to have hash marks and such (no big deal), but also have numbers labeling what the hash marks a...
2
logging my app my Logcat says: WARN: ... has unresolved theme attributes! Consider using Resources.getDrawable(int, Theme) or Context.getDrawable(int).
the code which produces the warning:
if (...
6
Solved
I know how to set a drawable as the color of the text using xml but I don't know how it is done in Java.
In xml is something like this:
android:textColor="@drawable/selected_color"
in JAVA ?
9
Solved
Can you load a drawable from a sub directory in the assets (not the drawable folder) folder?
8
4
Is it possible to "invert" colors in a Drawable? Kind of what you have in a negative, you know?
I know it's possible to change a Drawable to black and white, but what about inverting colors?
12
Solved
In my Android project, I want to loop through the entire collection of Drawable resources. Normally, you can only retrieve a specific resource via its ID using something like:
InputStream is = Res...
Premiere asked 11/7, 2010 at 2:17
2
After right-click --> new Batch Drawable Import and selecting any .png from the Select Image Asset(s) box, the primary Batch Drawable Importer box remains empty (ie: the selection was ignored!).
F...
Benzidine asked 23/1, 2020 at 3:48
3
Solved
I want to use an icon from an icon pack. I know how to find installed icon packs. But I can't find out how to load an icon from an icon pack.
Find icon packs - WORKS
That's how I find icon packs:...
Stu asked 18/7, 2015 at 11:19
3
Solved
This is my code :
<TextView
android:id="@+id/error_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="2dp"
android:drawablePadding=...
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
11
Solved
I'm working on a UI for an app, and I'm attempting to use grayscale icons, and allow the user to change the theme to a color of their choosing. To do this, I'm trying to just apply a ColorFilter of...
Improbity asked 4/12, 2010 at 17:54
4
Solved
I am writing an API that can be included in various APK's. I want to generate a notification with that app's icon, which requires the resource ID. I'm not finding a way to find the resource ID. I d...
Philately asked 4/12, 2013 at 19:59
14
Solved
I have a CheckBox that I want centered within its own boundaries, not pushed to the side. Probably easier demonstrated than explained:
Note that it isn't centered. Currently defined as:
<Che...
Valarievalda asked 16/11, 2012 at 5:58
5
I am trying to set custom drawable as tabIndicator as shown below
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
app:tabIndicatorFullWidth="false"
app:layout_scroll...
Ericson asked 14/10, 2019 at 11:28
8
Solved
I am presently using the following piece of code to load in images as drawable objects form a URL.
Drawable drawable_from_url(String url, String src_name)
throws java.net.MalformedURLException, j...
2
I need to use clipart in vector asset and image asset option in drawable folder but when I click on clipart to choose different images it does not do anything . It just shows a blue boundary around...
Disorderly asked 6/3, 2021 at 11:48
6
Solved
I'm trying to understand http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources and I wonder if there's a point having both drawable and drawable-ldpi? Th...
Siegel asked 6/6, 2013 at 17:14
6
Solved
I have an image from the web in an ImageView. It is very small (a favicon) and I'd like to store it in my SQLite database.
I can get a Drawable from mImageView.getDrawable() but then I don't know w...
Tyus asked 14/12, 2010 at 4:14
1 Next >
© 2022 - 2024 — McMap. All rights reserved.