Skip to content

Commit

Permalink
added colour brown
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmiAde committed Mar 18, 2020
1 parent a362ba1 commit 27a9e16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public void setFixedColumnCount(int columnCount) {
private String convertHexCodeTOString(int hexCode){

String colour = "";
Log.d("TEST","#"+Integer.toHexString(hexCode).toUpperCase());

switch ("#" + Integer.toHexString(hexCode).toUpperCase()){

case "#FF0000AE":
Expand Down Expand Up @@ -418,6 +418,10 @@ private String convertHexCodeTOString(int hexCode){
colour = "Purple";
break;

case "#9B5D00":
colour = "Brown";
break;

default:
colour = "Unknown";
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void draw(final Canvas canvas) {
@Override
protected void onBoundsChange(final Rect bounds) {
super.onBoundsChange(bounds);
mRadius = Math.min(bounds.width(), bounds.height()) / 2;
mRadius = Math.min(bounds.width(), bounds.height()) / 4;
}

@Override
Expand Down

0 comments on commit 27a9e16

Please sign in to comment.