Skip to content
jamesmontemagno edited this page Jul 14, 2012 · 5 revisions

It is easy to get started with MonoDroid.ActionBar.

After downloading the MonoDroid.ActionBar from GitHub you will want to integrate it into your existing project.

There are 2 main Directories that you will want to copy:

  1. ActionBar - contains core action bar framework files
  2. ActionBareBase - contains base activities that all activities should derive from

Besides that you will want to copy in all of the Resource files that MonoDroid.ActionBar uses:

Drawable - buttons and required images

  • actionbar_back_indicator.png (from all drawable directories)
  • actionbar_background.xml
  • actionbar_btn.xml + actionbar_btn_pressed.xml + actionbar_btn_normal.xml
  • bottomactionbar_background.xml
  • bottomactionbar_btn.xml + bottomactionbar_btn_normal.xml + bottomactionbar_btn_pressed.xml
  • ic_overflow_dark.png (overflow icon, from all drawable directories)

Layout -

  • ActionBar.axml
  • ActionBar_Item.axml
  • BlankSpinner.axml
  • OverflowActionBar_Item.axml
  • SpinnerItem.axml

Values

  • Attrs.xml
  • Colors.xml
  • Dimens.xml (recommended you use all Value-x files)
  • Styles.xml

After importing all of these files you should be good go to. Now you should be able to do a Find and Replace All on "MonoDroid.ActionBarSample" and replace it with your namespace if you so desire.

Clone this wiki locally