Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oval tap target + custom tint target #374

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion taptargetview/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<manifest package="com.getkeepsafe.taptargetview"/>
<manifest package="com.getkeepsafe.taptargetview" />
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ class FloatValueAnimatorBuilder {

EndListener endListener;

interface UpdateListener {
void onUpdate(float lerpTime);
}

interface EndListener {
void onEnd();
}

protected FloatValueAnimatorBuilder() {
this(false);
}
Expand Down Expand Up @@ -95,4 +87,12 @@ public void onAnimationEnd(Animator animation) {

return animator;
}

interface UpdateListener {
void onUpdate(float lerpTime);
}

interface EndListener {
void onEnd();
}
}
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
/**
* Copyright 2016 Keepsafe Software, Inc.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.getkeepsafe.taptargetview;

import java.lang.reflect.Field;

class ReflectUtil {
ReflectUtil() {
}

/** Returns the value of the given private field from the source object **/
static Object getPrivateField(Object source, String fieldName)
throws NoSuchFieldException, IllegalAccessException {
final Field objectField = source.getClass().getDeclaredField(fieldName);
objectField.setAccessible(true);
return objectField.get(source);
}
}
/**
* Copyright 2016 Keepsafe Software, Inc.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.getkeepsafe.taptargetview;

import java.lang.reflect.Field;

class ReflectUtil {
ReflectUtil() {
}

/**
* Returns the value of the given private field from the source object
**/
static Object getPrivateField(Object source, String fieldName)
throws NoSuchFieldException, IllegalAccessException {
final Field objectField = source.getClass().getDeclaredField(fieldName);
objectField.setAccessible(true);
return objectField.get(source);
}
}
Loading