Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
Add: set angle programmatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemekEnterprise committed Jul 29, 2017
1 parent 8dd8cb8 commit 7cdc6eb
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ public void setDirection(@Direction int direction) {
postInvalidate();
}

public void setAngle(float angle){
settings.setAngle(angle);
calculateLayout();
postInvalidate();
}

private void calculateLayout() {
if (settings == null) {
return;
Expand Down

0 comments on commit 7cdc6eb

Please sign in to comment.