I have customised the spinner items background into black color.But border around spinner and the separartor between each spinner item is in white color. I want to change separator color and border to dark gray color.
How can i change these color? Is spinner uses list view or some other as parent to populate items in spinner? If so can i change the separator background of parent view?
I've a border set around a drawable using LinearLayout (bg: rounded rectangle).
The drawable and the border is used as a tab view. I'd like to change the border color of the tab when it is selected.
How can I do this?
Color state list doesn't seem to work as the view being selected is not the shape (i.e border) but the tab. Drawable state list doesn't seem to work either as I'm trying to swivel between views, not drawables. Moreover, I can't find any "onSelectedListener" of the sort...
I wanted to see if I could change the top/bottom wrap fading effect seen on most long scrolling components. In this case I would like to change the color from black to whatever color I desire on a ListView.
I have a TextView and I'd like to add a black border along its top and bottom borders. I tried adding android:drawableTop and android:drawableBottom to the TextView, but that only caused the entire view to become black.
Is there a way to easily add a top and bottom border to a View (in particular, a TextView) in Android?
I changed the background color of Tab WIdget in Android. But when I changed the background, I lost the border of each Tab. I want to change the border color of Tab Widget. How can I change it? Is there any other way by which I can show the border?
Let's say I have following text in TextView: Hey there, visit www.example.com. If I set TextView's attribute autoLink="all" www.example.com will be properly detected. However, if I now touch TextView, TextView's text that's not link ('Hey there, visit' part) will go gray. Is there a way to prevent this behavior?
Could any1 please tell me how to get the selected text from a from EditView .I am using getStartSelection and getEndSelction method to get the start and end position.But after that how do i get the text and where do i store it and then change its color.
Im trying to change background color when an item is selected. Something like using a color selector, but actually it crashes. I've created a list_selector.xml inside /res/color/.<?xml version="1.0" encoding="UTF-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"><item android:state_focused="true" android:color ="@ color/ plain_yellow"/><item android:state_pressed="true" android:state_enabled="false" android:color ="@color /plain _yellow" /><item android:state_enabled="false" android:color="@color/ plain_yellow" /><item android: state_active="true" android:color="@color/ plain_yellow" /><item android:color="@android: color/ transparent" /></selector> plain_yellow is a color i've defined in /res/values. I've tried to assign that selector programatically and using the xml, but the app crashes. Am i doing something wrong?
The graphic designer of the Android app that I'm currently building has come up with a two-color line as a separator between items in a layout box: If you look closely at the image, you see a darkish gray line, with immediately below it a very light gray (almost white) line. The lines should resize to the width of the container. What is the best way to implement this in the UI?
I have a galaxy s2 running ICS (but the issue occurred) and I have a very odd issue with the keyboard.
A short while ago, my screen broke and I had it replaced, good as new. Well almost. When ever I use the messaging app, or another type of app like that (Whats App for example), when you are composing a new message, and the textbox is shrunk down to one line at the bottom of the screen, there appears to be no input detected on that part of the screen, the send button (on the right hand side) works, and the other controls all work fine, just not the textbox.
So I figured that when the screen broke, it messed up that part of the screen, but other apps that have controls in that region (such as the camera app that has the photo button, or the lock screen with the emergency call button) all work 100%.
Its just textboxes at the bottom of the screen that do not seem to accept touch events.
The display area of my SGS has been reduced there is now a black line (approximatively 1 millimeter thick) around the display now anything that should be displayed has been centered (a kind of)i have noticed that after press-holding the HOME BUTTON (to get to the task manager).even when the phone that black border is still there and it look like the screen has been pushed down the display is not now at the same level as the top-cover (or screen cover).I have used the factory reset but nothing has changed.My phone look horrible now.
I am creating a button programmatically. It is rounded and has a gradient background, and works fine and looks nice, but I couldn't do two things I wanted:
Set a 1 pixel stroke with a given color. I tried getPaint().setStroke(), but couldn't figure how to set the stroke color. How should I do it? Align the gradient to the bottom of the button, no matter what height it has. Is this possible?
As you can see in the link below there is an extra padding (around 2mm) below the EditText field. I can't seem to remove this padding in anyway. This occurs with other widgets as well (like Buttons). It looks like Android is default adding this extra padding to all elements.
I have a tab bar for which I've set the initial icons and labels as necessary. I have also hooked the onTabChanged callback of the TabHost such that I'm properly getting notified when a user selects a tab.
However, I've now discovered that there's not direct way to change the indicator of a tab. Can anyone enlighten me as to how the indicator icon can be changed on a tab when selected, and I'd like to do this programmatically (i.e. not in XML preferably).
There must be some way of doing this, given the Android developer docs set forth specs on selected states for tab icons.
When a listitem in a ListActivity is selected, I want to add some ImageButtons on the listitem and want to change its height from 60px to 90px. When the listitem is unseleted, it will be restored. How should I do?
I am using gallery widget i want to change selected image. When i run the following code and i use roller ball or arrow keys over device and if i try to scroll left to right or right to left focus goes out of gallery to next item over the screen what is that ?
I am trying to free up space because I'm having problems updating apps because not enough disk space. I tried to get rid of Polaris Viewer which I never use and tried to drag it to the waste bin but it stuck on the bottom taskbar and I don't know how to remove it.
How to get rid of the bar at the bottom of the screen while using a transparent Nav Bar. I have been messing around with the SystemUI.apk, but I feel like it's more likely the GoogleHome launcher (which seems to just put some tweaks onto the stock launcher) or even the Launcher2.apk that is formatting the wallpaper like this. I am just staring to mess with coding, so I'm not sure where the formatting is happening.
I REALLY want to use the Google Home launcher and not just switch to a third party launcher like Nova. Nova launcher does get the wallpaper full screen with transparent nav bar, but it does not have the features that the Google Home launcher has.
not sure why i can't find anything on this, cause i know ive seen it before, but does anybody have zip files or know the thread where i can get the rosie/espresso clear or transparent bottom bar and also a thread for the top notification bar too?
For those with the Samsung Captivate, are you able to change the applications that are on the bottom tool bar? I could see switching out the native mail app and putting in the gmail app on that tool bar. Is this possible?
The iPhone gives the app the ability to change the notification bar's color so you can have it match your app's design without having to hide it completely.Is there a way to change the notification bar color in Android?I'm looking to have it force black with white text to be less visually present while using the app, but still there.
Is there any way to change the color of indeterminate progressbar. i made changes in the progress_indeterminate.xml and saved it my projects drawable folder and tried to set progressBar.setProgressDrawable(R.drawable.progress_indeterminate) but still the color did not change. it uses the default color.