Permalink
Browse files

Get things building with an Action Bar

Signed-off-by: Eddie Ringle <eddie@eringle.net>
  • Loading branch information...
1 parent b884678 commit a105fe50cf9902c73de5aab58e7924e9237326a1 @EddieRingle committed Feb 25, 2012
View
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.idlesoft.android.apps.github"
- android:versionCode="1"
- android:versionName="1.0">
- <application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
- <activity android:name="Main"
+ android:versionCode="2012022500"
+ android:versionName="3.0-alpha0">
+ <uses-sdk android:minSdkVersion="7" android:maxSdkVersion="15" android:targetSdkVersion="15" />
+ <application android:name=".ui.HubroidApplication"
+ android:label="@string/app_name"
+ android:icon="@drawable/ic_launcher"
+ android:theme="@style/Theme.Hubroid">
+ <activity android:name=".ui.activities.Main"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Binary file not shown.
View
@@ -9,3 +9,5 @@
# Project target.
target=android-15
+android.library.reference.1=contrib/ActionBarSherlock/library
+android.library.reference.2=contrib/Android-ViewPagerIndicator/library
View
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
+ <style name="Theme.Hubroid" parent="@style/Theme.Sherlock.Light">
+ <item name="actionBarStyle">@style/Widget.Styled.ActionBar</item>
+ <item name="android:actionBarStyle">@style/Widget.Styled.ActionBar</item>
+ </style>
+ <style name="Widget.Styled.ActionBar" parent="Widget.Sherlock.ActionBar.Solid">
+ <item name="android:background">@color/abs__background_holo_light</item>
+ </style>
+</resources>
@@ -0,0 +1,6 @@
+package net.idlesoft.android.apps.github.ui;
+
+import android.app.Application;
+
+public class HubroidApplication extends Application {
+}
@@ -1,9 +1,10 @@
-package net.idlesoft.android.apps.github;
+package net.idlesoft.android.apps.github.ui.activities;
-import android.app.Activity;
import android.os.Bundle;
+import com.actionbarsherlock.app.SherlockActivity;
+import net.idlesoft.android.apps.github.R;
-public class Main extends Activity
+public class Main extends SherlockActivity
{
/** Called when the activity is first created. */
@Override

0 comments on commit a105fe5

Please sign in to comment.