Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to change text color of IcsSpinner on ActionBarSherlock?
    primarykey
    data
    text
    <p>My Action bar is currently like this:</p> <p><img src="https://i.stack.imgur.com/goN8I.png" alt="enter image description here"></p> <p>i want it to be like this:</p> <p><img src="https://i.stack.imgur.com/MERFz.png" alt="enter image description here"></p> <p>ignore the black line beside the logo. Mainly what i want is to <code>change the color of the text in the IcsSpinner to white</code></p> <p>my activity code is:</p> <pre><code> ArrayAdapter&lt;String&gt; listAdapter = new ArrayAdapter&lt;String&gt;(this, R.layout.sherlock_spinner_item, cities); listAdapter .setDropDownViewResource(R.layout.sherlock_spinner_dropdown_item); setContentView(mViewPager); final ActionBar bar = getSupportActionBar(); bar.setCustomView(R.layout.custom_actionbar); bar.setIcon(R.drawable.logo); bar.setDisplayShowCustomEnabled(true); IcsSpinner citySpinner = (IcsSpinner) (bar.getCustomView()) .findViewById(R.id.city_spinner); citySpinner.setAdapter(listAdapter); </code></pre> <p>and my custom_actionbar.xml is:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="right|center_vertical" android:orientation="horizontal" &gt; &lt;com.actionbarsherlock.internal.widget.IcsSpinner android:id="@+id/city_spinner" android:layout_width="wrap_content" android:layout_height="match_parent"/&gt; &lt;/RelativeLayout&gt; </code></pre> <p>I even want the spinner to be <code>just left to the refresh icon</code>. Like in the second image.</p> <p>Thank you</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload