Skip to content
This repository was archived by the owner on May 1, 2021. It is now read-only.

Commit ea96ac2

Browse files
removed dialogs support.
updated preference support.
1 parent 5c1e76b commit ea96ac2

File tree

71 files changed

+140
-3708
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+140
-3708
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
/MaterialStuffLibrary/bin
33
/Demo/bin
44
/Demo/gen
5+
/ActionBarPreferenceActivityDemo/bin
6+
/ActionBarPreferenceActivityDemo/gen
7+
/ActionBarPreferenceActivityLibrary/gen
8+
/ActionBarPreferenceActivityLibrary/bin

Demo/.classpath renamed to ActionBarPreferenceActivityDemo/.classpath

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
55
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
66
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/appcompat_v7"/>
7-
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/MaterialStuffLibrary"/>
8-
<classpathentry kind="src" path="src"/>
7+
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/ActionBarPreferenceActivityLibrary"/>
98
<classpathentry kind="src" path="gen"/>
9+
<classpathentry kind="src" path="src"/>
1010
<classpathentry kind="output" path="bin/classes"/>
1111
</classpath>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>MaterialStuffLibrary</name>
3+
<name>ActionBarPreferenceActivityLibraryDemo</name>
44
<comment></comment>
55
<projects>
66
</projects>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3+
org.eclipse.jdt.core.compiler.compliance=1.6
4+
org.eclipse.jdt.core.compiler.source=1.6

Demo/AndroidManifest.xml renamed to ActionBarPreferenceActivityDemo/AndroidManifest.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.alertdialogpro.demo"
3+
package="com.lb.action_bar_preference_activity_library.demo"
44
android:versionCode="1"
55
android:versionName="1.0" >
66

@@ -10,19 +10,18 @@
1010

1111
<application
1212
android:allowBackup="true"
13-
android:icon="@drawable/ic_launcher"
13+
android:icon="@android:drawable/sym_def_app_icon"
1414
android:label="@string/app_name"
1515
android:theme="@style/AppTheme" >
1616
<activity
17-
android:name="com.lb.material_stuff_library.demo.MainActivity"
17+
android:name="com.lb.action_bar_preference_activity_library.demo.SettingsActivity"
1818
android:label="@string/app_name" >
1919
<intent-filter>
2020
<action android:name="android.intent.action.MAIN" />
2121

2222
<category android:name="android.intent.category.LAUNCHER" />
2323
</intent-filter>
2424
</activity>
25-
<activity android:name="com.lb.material_stuff_library.demo.SettingsActivity" />
2625
</application>
2726

2827
</manifest>

Demo/project.properties renamed to ActionBarPreferenceActivityDemo/project.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212

1313
# Project target.
1414
target=android-21
15-
android.library.reference.1=..\\MaterialStuffLibrary
16-
android.library.reference.2=../../appcompat_v7
15+
android.library.reference.1=..\\..\\..\\..\\workspace\\appcompat_v7
16+
android.library.reference.2=../ActionBarPreferenceActivityLibrary
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<menu xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto" >
4+
5+
<!-- <item -->
6+
<!-- android:icon="@android:drawable/ic_menu_info_details" -->
7+
<!-- android:title="@string/more_info" -->
8+
<!-- app:showAsAction="always"> -->
9+
<!-- <menu> -->
10+
<!-- <group -->
11+
<!-- android:checkableBehavior="none" -->
12+
<!-- android:menuCategory="container" > -->
13+
<item
14+
android:id="@+id/menuItem_current_repository_website"
15+
android:title="@string/repository_website" >
16+
</item>
17+
<item
18+
android:id="@+id/menuItem_all_my_repositories"
19+
android:title="@string/all_my_repositories">
20+
</item>
21+
<item
22+
android:id="@+id/menuItem_all_my_apps"
23+
android:title="@string/all_my_apps">
24+
</item>
25+
<!-- </group> -->
26+
<!-- </menu> -->
27+
<!-- </item> -->
28+
29+
</menu>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<string name="app_name">ActionBarPreferenceActivityLibrary Demo</string>
5+
<string name="repository_website">Repository website</string>
6+
<string name="all_my_repositories">All my repositories</string>
7+
<string name="all_my_apps">All my apps</string>
8+
<string name="more_info">More info</string>
9+
10+
</resources>

Demo/res/values/styles.xml renamed to ActionBarPreferenceActivityDemo/res/values/styles.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@
33
<style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light" />
44

55
<style name="AppTheme" parent="AppBaseTheme">
6-
76
<!-- this will set the actionbar background color, which currently is some sort of white -->
87
<item name="colorPrimary">#ffF1F1F1</item>
98
<!-- theses are just for the various textViews. I just like the default ones as of the primary color for the preference screen... -->
109
<item name="android:textColorSecondary">@color/abc_primary_text_material_light</item>
1110
<item name="android:textColorTertiary">@color/abc_primary_text_material_light</item>
12-
<!-- Here you choose which dialog style should be the default one -->
13-
<!-- <item name="alertDialogProTheme">@style/AlertDialogProTheme.Material</item> -->
14-
<item name="alertDialogProTheme">@style/AlertDialogProTheme.Material.Light</item>
1511
</style>
1612

1713
</resources>

Demo/res/xml/pref_general.xml renamed to ActionBarPreferenceActivityDemo/res/xml/pref_general.xml

File renamed without changes.

0 commit comments

Comments
 (0)