I have being playing around with the ListView of XYPlots. I was able to change background either by using style="#style/APDefacto.Light" or style="#style/APDefacto.Dark". These two work well but, I want my graph to have complete white background instead of a light or dark background.
Screenshot with the light background.
If you look carefully at the graph, you will see that the background has a grey color but the graph itself is white. I want the whole background to be completely white.
I have try the solution of the link Change the background color of XYplot in android to white?. But that only have the effect of removing the square on the graph but no change is seen on the background.
Below is the resulting screenshot.
Any clues,
Thanks.
Just add these attrs to your XYPlot's xml:
ap:backgroundColor="#FFF"
ap:graphBackgroundColor="#FFF"
Related
I need to change (better also color in area) any color on WebView with transparent.
It must work like AvoidXfermode (I can't use it because of deprecated)
Example:
I have red background and some dive with black color, I need to change this black color with transparent color and make a "hole" in WebView. In this hole, I must see any View what located behind the WebView.
Please help anybody ...
Does any one knows any way to change background of a progress bar to sth like this image?
As you can see there is a color plate in background which starts from green to red and there is an indicator which shows a title. I have no idea how to make it or if there is some keywords to search about it or even some liberaries.
thanks very much
P.S: It seems this is what I need.
https://github.com/ademar111190/android-phased-seek-bar
You can use seekbar for the indicator with thumb image changes and background as progress drawable in your xml.
Search for customizing seekbar and see whatever suits the best for your requirement.
How do I style my PopupWindow in Android with a white background but still keep the shadow? I am trying to create something like [this][1]:
By default, my PopupWindow has a dark background. So I set the popup window's contents to have a white background which gives me this:
Which has a shadow but still has the black "border" which really is just the uncovered parts of the popup window background.
So I try and set the popup window background to white with:
popupWindow.setBackgroundDrawable(new ColorDrawable(Color.WHITE))
which causes this:
which gives the correct background colour but also removes the shadow.
So is there any easy way to keep the shadow but set the background as white. Is there something else I should use instead of PopupWindow to create what I want? Or do I have to use a 9 patch or something?
I just ended up using a 9 patch created with http://inloop.github.io/shadow4android/
after set background,just add elevation.
popupWindow.setElevation(10);
this will work after API21.
If nothing works, you can use below code. This will place a shadow around Popupwindow with white background. I've tested it in my app.
popupWindow.setBackgroundDrawable(context.getDrawable(android.R.drawable.picture_frame));
In my Android app, I'm trying to get buttons to be tinted a certain color (either blue, red or gold). The default button tint is grey. Does anyone know how to change the color of the button so that the transparency remains with it?
I tried using:android:background
but that ditches the transparency completely and makes the button one solid color.
I also tried using:android:#color/transparent
but that ditches the color completely in favor of a fully transparent button. I've looked online for a while and found mostly stuff relating to image buttons. The kind that I'm trying to tint is just the standard Button buttons. I'm also guessing that this can be done mostly just through XML. Is that correct?
You could try and create your own button drawable like so...
Take the button drawable from the Android SDK ([ANDROID_SDK_HOME]/platforms/data/res) and import the drawables into your project. Then create a layer list with the button drawable on the bottom and a semi-transparent color on top.
I'm trying to make a menu with buttons, and my problem is that i want this menu to be over a camera view (I'm working on Augmented Reality).
But if I make my menu appear it makes the background black instead of having the video of my camera.
Any ideas how to make this background transparent? I tried with :
menu.setBackgroundColor(Color.TRANSPARENT);
but there is no modification :/...
OK. Then you can change the background of the menu as any transperent image. Or you can change the theme in Manifest file to black so that can shows the white background in your Application
Try: menu.setBackgroundColor(Color.alpha(0));