Does anyone know how to get rid of the icon shadow? or at least change its shape? I thought first that it was touchWiz thing, but then I checked other icon and they seem to have different shaped shadows.
Here is the image to clarify what I mean:
and here is the icon I am using:
Just remove the app from the device completely, clean the project and run it again. It has nothing to do with your drawable. I think it is some sort of cache.
Related
I intend to do this exact thing:
I tried layers as background, I even tried to do this programmatically, nothing gives me the desired look. Please help.
I'm trying to use a listview in my application with a gradient from the bottom.
I do not want to use the gradient in the background, I like to use it in the listview.
To try to explain better, I attached a picture of what I want.
The background will show images that will change.
I searched a lot and made several tests, but without success.
I appreciate any help.
Thanks and regards
Android has something built in for that. It is called fading edge. The two XML properties are android:fadingEdgeLength and android:requiresFadingEdge. If you were hoping to have the image gradient change, I don't think they are dynamic.
I want to change the color of the bottomline of the sherlock actionbar.
But I want to change it dynamically.
When the user is offline I want it to appear red, when he is logging on I want it orange and when he is succesfully connected the line should be green.
How can I achieve this?
Thanks.
I found a solution in case anyone wants to do this.
I used this website to make 3 styles and took the 'ab_transparent' resource out of the zip.
To set the actionbar on runtime I used
getSupportActionBar().setBackgroundDrawable(getResources().getDrawable(R.drawable.ab_transparent_connecting));
Sidenote: this worked perfectly on android 4.0+ but on <4.0 I had to call
this.supportInvalidateOptionsMenu();
after setting the backgrounddrawable for it to take effect.
I have followed a gallery tutorial and have it working fine, but the problem that I need help solving is that I want to change the background colour of the gallery. If I just use:
setBackgroundColor(Color.BLACK);
then it messes up and I lose the border also. I want to keep the border, but change the colour from the default grey. I've also tried using different resources such as:
R.styleable.gallery1_android_colorBackground
but that also does not work. Does anyone have any idea how to solve this?
Cheers
In your getView() from your ImageAdapteradd the following attribute:
imageView.setBackgroundColor(Color.BLACK);
Hope this help.
Has anyone had any success with TabWidget.setDivider()? I'm not sure it does what I'm assuming: gives you a chance to supply a drawable to be drawn between each tab instance?
mTabHost.getTabWidget().setDividerDrawable(R.drawable.dividerDrawable);
this does not appear to do anything. Looking at the tab drawable resources in the android project shows that the dividers are actually drawn into the tab images themselves - is this supposed to work or is it not supported?
Call that before you set the content of the tabs.Or It would crash.
similar answer is here