Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have never used the <code>ActionBarSherlock</code> library (I have used <a href="https://github.com/cyrilmottier/GreenDroid">Greendroid</a> in the past, but now I use <a href="http://developer.android.com/resources/samples/ActionBarCompat/index.html">ActionBarCompat</a> for pre-honeycomb devices, which is great and very easy to use.). </p> <p>That being said, I suggest you to look a the <code>res/values</code> folder where you will probably find all the default styles (probably wrapped in a custom theme which extends the default android theme). From there, you just have to extend that Sherlock theme and override the styles with your own.</p> <p>If you want a good tutorial on how styles and themes work in Android, I suggest you to read the <a href="http://developer.android.com/guide/topics/ui/themes.html">official documentation</a>.</p> <p><strong>Edit</strong></p> <p>In order to use <code>ActionBarCompat</code>you have to do the following:</p> <ol> <li>Import the project from the samples directory (inside the directory where the android SDK is installed). (Note that you should download the latest SDK).</li> <li>Remove <code>MainActivity</code> from the build path (right click on the class -> Build Path -> Exclude).</li> <li>Set the project as a project library (right click on the project -> properties -> android -> check <em>Is Library</em>).</li> <li>Add this project as a library for your app (right click on the project -> properties -> android -> click on Add in the Library section).</li> <li>Make your activities inherits from <code>ActionBarActivity</code>.</li> <li>Set the theme as <code>@style/appTheme</code> in the manifest.</li> </ol> <p>Finally, don't forget that the action bar actions are in the <code>res/menu/main.xml</code> file. And same thing for the colors and styles, look at the <code>res/values</code>directory.</p>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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