TextView shaded corner indicating clickable - android

When using the stock calendar app, and others including GMail, I have noticed how the TextViews have a light grey underline and a light grey corner to indicate that it is clickable.
How can I style my own TextViews to look like this? I cannot seem to find anything about this previously so it would be nice to know so I can keep my app inline with the stock Android experience.
I have looked through the source code but cannot figure out how this has been done.

Are you sure that it's a TextView and not an EditText?

That is a Spinner, not a TextView.
http://developer.android.com/guide/topics/ui/controls/spinner.html

Related

Material Design TextInputLayout With An Attached Dropdown?

Is there a Material component that will easily let me set the left of a TextInputEditText to be a dropdown like this image below? If not, I can create something, but wanted to see if anyone knew more about Material components before I start doing too much custom work. Looks custom to me, though.
With material component, Google has removed spinner from its UI Elements.
Preferred way to do it is TextInputLayout along with AutoCompleteTextView just like Ashu has mentioned in the comment section.
Here is a more thorough article, which can help you in implementing AutoCompleteTextView.
https://blog.usejournal.com/there-is-no-material-design-spinner-for-android-3261b7c77da8
So far, both answers say to use AutoCompleteTextView. However, that doesn't answer my question. As you can see in the image I posted with the question, only the left side is a drop down. The right side is just a normal text input that isn't affected by the drop down.
However, I think it is safe to assume there isn't a component that will do this for me easily and that it would indeed be custom work to make these two components appear to be one single component.

android support lib 23.1.1 changes floating label color on setError()

is there a way to change the color of 'Password'? Basically, I prefer what support lib 23.1.0 had. I have a page that has multiple TextInputLayouts, and it would be hard to read if both hint and error are in red. please see the screenshot below.
there are a few fixes I want in 23.1.1, so please don't ask me to stay with 23.1.0. Thanks for all the help!!
Since it is a change in library it would be difficult to manipulate it. Android has decided to go that way (changing the label color along with the hint's color) and will become a standard soon and users will get familiar with it as time passes by. Not much we can do about it, but adhere, as always.
Workaround:
Don't set the Labels field on the TextInputLayouts. keep it blank and put another TextView just above it with the desired color and properly align it. That will not change, of course.
As per my comment below, you could also try this:
Hint color wont change. Just checked. So you may want to remove label and just add hint as android:hint="Enter password". The word Password in your screenshot is set in the Label and not as a hint.

Changing the color of the spinner

In this picture you can see (barely lol) that the spinner icons that rest on the bottom and bottom right are very hard to see due to the black background that I am using. What would I need to do to make that greyish looking color to white or any color for that matter?
Try this tutorial:
Android Custom Spinners
A similar process is used for working with custom buttons and other elements.
Updated as the link is broken. Try this stackoverflow answer
Spinner Background Design

Spinner has Grey Text, why? How can I change it to default text colour instead?

I implemented this kind of thing in my app but can't figure out why it turns text grey, like in the photo...
anyone know why? and I how do i change it to default text colour? the spinner in my layout file looks like black text.. but when I run it, it is grey just like in this sample.
http://android-er.blogspot.com/2010/12/custom-spinner-with-icon.html
You'll have to create a custom adapter to hook into the creation of the views. Similar SO question with some useful info for you: Change spinner font color
I'm not sure if I really get your question, but if you want to change the text color of the items of the spinner, just add android:textColor="your color here" to the TextView of row.xml.
yeah I think my question was flawed.. seems like maybe this light grey is default color.. but it looks horrible (unreadable almost) on my galaxy s2.. on emulator it looks ok, but a little light..
it is first spinner i ever created...
so I solved it by hard-coding a darker grey... but I don't like hard coding because I am unsure if some android devices would skin the background of the spinner to some color that makes a dark grey unreadable?

Android change TextField outline/boarder color

I have a text field, and on Android 2.2, when it is in focus or being used, it highlights it and puts an orange boarder around it.
The orange really doesn't look good with the other colors in my app, so I am wondering if there is any way to change that to a different color...
Thanks in advance.
You can write selectors for your textview using which you can change the appearance of your textview when it is selected.
You can refer to this:
http://developer.android.com/reference/android/content/res/ColorStateList.html

Categories

Resources