Android Spinner change arrow color - java

I have seen questions about this previously but none seem to work for me.
I want to change the color of the material drop down, as seen here
I want to make the arrow black.
I have tried making a custom drawable and using that with dropDownSelector but it didn't show the arrow correctly. I have tried adding it as a style and it didn't work either.
Any ideas would be great.
Thanks

I have encountered the same problem as well. But i had some focus problems, because Spinner was inside ScrollView. I have solved the issue by implementing ListPopupWindow.
Here is great example how to implement ListPopupWindow :

Related

I need an element like TextSwitcher in AndroidStudio

Hi guys i just used TextSwitcher but this isn't the element that i exactly want. Firstly there shouldn't be any buttons, it can be slided with finger, also not like ScrollView. One slide for one text change. I hope i could explain my problem properly.

Buttons/Images in Java and their positioning (android app) Problem

I'm am currently developing an app but came across a problem.
I want to have a Button or Image that I can move around. In the background, I have 3 "zones" where the Button/Image could be placed.
I don't know what to look for. I have searched the Internet for things like
https://developer.android.com/training/gestures/movement
Track X and Y coorinate of a button
Position of a Button Container with button
Button position after moving
(Android Studio button positioning)
I have searched for many things but cannot find a proper solution.
Please be so kind and share links with me on how to solve my problem.
Thank you in advance.
** SOLVED **
What i needed was Drag an Drop buttons
Looks like you'll need to implement a custom GLSurfaceView where you have a canvas to draw your different regions, and can also track movements. have a look here:
Displaying graphics with OpenGL ES
Respond to touch events

Navigation View Can't Change Its Background When It Is Selected/checked

I am not able to make the menu item stay with the gray border when selected. The problem is the same as the link below:
Possible Solution
Although the colors of the item menu change, the background does not appear. I've read a lot of topics but i don't find a solution for this problem. I am using in my navigationView the following property:
app:itemBackground="?android:attr/selectableItemBackground"
I found a solution using StateListDrawable, the problem was in the property "?android:attr/selectableItemBackground", so I created my own and the problem was solved.

How to get custom keyboard to show in front of AlertDialog?

I am working on making a custom keyboard using this guide and it seems to work except when I try to use it for an EditText in an AlertDialog. I've tried setting flags as suggested in this answer but that does not seem to make a difference. Any ideas on how to make it show correctly?

How to highlight object on the picture

I set a picture as background in my main activity with some objects like home.gif, car.gif, dog.gif, etc. All object files are transparent.
I want to highlight this objects that user can interact with it.
I could not found examples in web how to get this effect. So I am asking here.
I would be grateful if you could help me.
Thank you for your time and consideration!
Ciao, Szymon
You want to show the border of the transparent images in an activity?
Then in selector of that view you just add a pressed state which has borders set.

Categories