Skip to content

Commit

Permalink
GlowPadView library now works for API 11 (Honeycomb) onwards.
Browse files Browse the repository at this point in the history
New method: setShowTargetsOnIdle(boolean b) - this will let you show the targets before the user touched the locking.
  • Loading branch information
nadavfima committed Nov 21, 2012
1 parent 69c4d05 commit a11bf3c
Show file tree
Hide file tree
Showing 9 changed files with 1,244 additions and 1,223 deletions.
2 changes: 1 addition & 1 deletion example/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<uses-permission android:name="android.permission.VIBRATE"/>

<uses-sdk
android:minSdkVersion="8"
android:minSdkVersion="11"
android:targetSdkVersion="17" />

<application
Expand Down
Binary file added example/libs/android-support-v4.jar
Binary file not shown.
9 changes: 0 additions & 9 deletions example/res/menu/activity_main.xml

This file was deleted.

5 changes: 2 additions & 3 deletions example/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="app_name">GlowPadExample</string>
<string name="hello_world">Hello world!</string>
<string name="menu_settings">Settings</string>
<string name="app_name">GlowPadView Example</string>


</resources>
7 changes: 6 additions & 1 deletion example/src/com/example/glowpadexample/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ protected void onCreate(Bundle savedInstanceState) {

mGlowPadView = (GlowPadView) findViewById(R.id.glow_pad_view);

// mGlowPadView.setVibrateEnabled(true);
mGlowPadView.setOnTriggerListener(this);

// uncomment this to make sure the glowpad doesn't vibrate on touch
// mGlowPadView.setVibrateEnabled(false);

// uncomment this to hide targets
mGlowPadView.setShowTargetsOnIdle(true);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion library/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<uses-permission android:name="android.permission.VIBRATE" />

<uses-sdk
android:minSdkVersion="16"
android:minSdkVersion="11"
android:targetSdkVersion="17" />


Expand Down
Binary file added library/libs/android-support-v4.jar
Binary file not shown.
20 changes: 20 additions & 0 deletions library/proguard-project.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
Loading

0 comments on commit a11bf3c

Please sign in to comment.