File tree 9 files changed +51
-11
lines changed
src/com/doug/nextbus/RoboSherlock 9 files changed +51
-11
lines changed Original file line number Diff line number Diff line change 2
2
gen /
3
3
.DS_Store
4
4
.metadata /
5
- project .properties
5
+ * .properties
Original file line number Diff line number Diff line change 5
5
android : versionName =" 3.10" >
6
6
7
7
<uses-sdk
8
- android : minSdkVersion =" 10 "
8
+ android : minSdkVersion =" 11 "
9
9
android : targetSdkVersion =" 17" />
10
10
11
11
<uses-permission android : name =" android.permission.INTERNET" />
14
14
android : allowBackup =" true"
15
15
android : icon =" @drawable/ic_launcher"
16
16
android : label =" @string/app_name"
17
- android : theme =" @style/Theme.MySherlock " >
17
+ android : theme =" @style/Theme.Styled " >
18
18
<uses-library
19
19
android : name =" com.google.android.maps"
20
20
android : required =" true" />
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <layer-list xmlns : android =" http://schemas.android.com/apk/res/android" >
3
+ <!-- Bottom Line -->
4
+ <item >
5
+ <shape android : shape =" rectangle" >
6
+ <solid android : color =" @color/black" />
7
+ </shape >
8
+ </item >
9
+
10
+ <!-- Color of your action bar -->
11
+ <item android : bottom =" 1dip" >
12
+ <shape android : shape =" rectangle" >
13
+ <solid android : color =" @color/titlecolor" />
14
+ </shape >
15
+ </item >
16
+ </layer-list >
Original file line number Diff line number Diff line change 7
7
<com .viewpagerindicator.TitlePageIndicator
8
8
android : id =" @+id/routes"
9
9
android : layout_width =" fill_parent"
10
- android : layout_height =" 50dp "
10
+ android : layout_height =" 49dp "
11
11
android : paddingTop =" 10dp" />
12
12
13
13
<android .support.v4.view.ViewPager
Original file line number Diff line number Diff line change 3
3
4
4
<color name =" themecolor" >#000000</color >
5
5
6
- <style name =" Theme.MySherlock" parent =" Theme.Sherlock" ></style >
6
+ <style name =" Theme.Styled" parent =" Theme.Sherlock" >
7
+ <item name =" actionBarStyle" >@style/Widget.Styled.ActionBar</item >
8
+ <item name =" actionBarSize" >50dp</item >
9
+ <item name =" android:actionBarStyle" >@style/Widget.Styled.ActionBar</item >
10
+ <item name =" android:actionBarSize" >50dp</item >
11
+ </style >
12
+
13
+ <style name =" Widget.Styled.ActionBar" parent =" Widget.Sherlock.ActionBar" >
14
+ <item name =" android:background" >@drawable/actionbarbackground</item >
15
+ <item name =" background" >@drawable/actionbarbackground</item >
16
+ </style >
7
17
8
18
</resources >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<resources xmlns : android =" http://schemas.android.com/apk/res/android" >
3
3
4
- <color name =" themecolor" >#ffffff </color >
4
+ <color name =" themecolor" >#000000 </color >
5
5
6
- <style name =" Theme.MySherlock" parent =" Theme.Sherlock" ></style >
6
+ <style name =" Theme.Styled" parent =" Theme.Sherlock" >
7
+ <item name =" actionBarStyle" >@style/Widget.Styled.ActionBar</item >
8
+ <item name =" actionBarSize" >50dp</item >"
9
+ <item name =" android:actionBarStyle" >@style/Widget.Styled.ActionBar</item >
10
+ <item name =" android:actionBarSize" >50dp</item >
11
+ </style >
12
+
13
+ <style name =" Widget.Styled.ActionBar" parent =" Widget.Sherlock.ActionBar" >
14
+ <item name =" android:background" >@drawable/actionbarbackground</item >
15
+ <item name =" background" >@drawable/actionbarbackground</item >
16
+ </style >
7
17
8
18
</resources >
Original file line number Diff line number Diff line change 15
15
*/
16
16
package com .doug .nextbus .RoboSherlock ;
17
17
18
+ import android .R .style ;
18
19
import android .content .Intent ;
19
20
import android .content .res .Configuration ;
21
+ import android .graphics .drawable .ColorDrawable ;
20
22
import android .os .Bundle ;
21
23
22
24
import com .actionbarsherlock .app .SherlockActivity ;
23
25
import com .actionbarsherlock .view .Menu ;
26
+ import com .doug .nextbus .R ;
24
27
import com .google .inject .Inject ;
25
28
import com .google .inject .Key ;
26
29
Original file line number Diff line number Diff line change 5
5
import android .os .Bundle ;
6
6
import android .view .KeyEvent ;
7
7
import android .view .View ;
8
- import android .view .Window ;
9
8
import android .view .ViewGroup .LayoutParams ;
9
+ import android .view .Window ;
10
+
10
11
import com .actionbarsherlock .ActionBarSherlock ;
11
12
import com .actionbarsherlock .ActionBarSherlock .OnActionModeFinishedListener ;
12
13
import com .actionbarsherlock .ActionBarSherlock .OnActionModeStartedListener ;
Original file line number Diff line number Diff line change 15
15
*/
16
16
package com .doug .nextbus .RoboSherlock ;
17
17
18
+ import java .util .HashMap ;
19
+ import java .util .Map ;
20
+
18
21
import roboguice .RoboGuice ;
19
22
import roboguice .activity .event .OnActivityResultEvent ;
20
23
import roboguice .activity .event .OnConfigurationChangedEvent ;
42
45
import com .google .inject .Inject ;
43
46
import com .google .inject .Key ;
44
47
45
- import java .util .HashMap ;
46
- import java .util .Map ;
47
-
48
48
/**
49
49
* An example of how to make your own Robo-enabled Sherlock activity. Feel free
50
50
* to do with with any of the other Sherlock activity types!
You can’t perform that action at this time.
0 commit comments