Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public class TapTarget {
@Nullable
final CharSequence description;

float dimColorOpacity = 0.3f;
float outerCircleAlpha = 0.96f;
int targetRadius = 44;

Expand Down Expand Up @@ -371,6 +372,16 @@ public TapTarget dimColorInt(@ColorInt int color) {
return this;
}

/** **/ /**
* Specify the opacity for the dim color
* <p>
* <b>Note:</b> The specified opacity will range between 0 and 1 been the second 100% opacity
*/
public TapTarget dimColorOpacity(float opacity){
this.dimColorOpacity = opacity;
return this;
}

/** Specify whether or not to draw a drop shadow around the outer circle **/
public TapTarget drawShadow(boolean draw) {
this.drawShadow = draw;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ public void getOutline(View view, Outline outline) {

final Integer targetDimColor = target.dimColorInt(context);
if (targetDimColor != null) {
dimColor = UiUtil.setAlpha(targetDimColor, 0.3f);
dimColor = UiUtil.setAlpha(targetDimColor, target.dimColorOpacity);
} else {
dimColor = -1;
}
Expand Down