• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to change the spiiner color

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to change the spiiner color.I tried to change .i am able to change text color,background color.But still unable to change the whole spinner color to one color.

this is spinner


this is code


this is xml file which use to change the text color.I can change the backgroun color,but it doesn't affect to whole spinner.It only change the text part.



this is xml which use to change the spinner srop down menu


this is working fine.BUt i need to change the whole color of a spinner to One custom color.How to do that ?
Also if i add background color as below it doesn't show the spinner drop down part clearly?

<Spinner
android:id="@+id/spnMyShift"
android:layout_width="200dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:textColor="#FF0000"
android:background="#696969"
android:layout_toRightOf="@+id/myShift"
/>
 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone help me?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic