Skip to content

Commit

Permalink
add demo image
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangdong.cheng committed Jul 13, 2018
1 parent e496e7e commit 8faa2d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/dx/dxloadingbutton/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ protected void onCreate(Bundle savedInstanceState) {
lb = findViewById(R.id.loading_btn);
lb.setTypeface(Typeface.SERIF);
lb.setOnClickListener(this);
lb.setCornerRadius(32f);
Shader shader = new LinearGradient(0f,0f,1000f,100f, Color.GREEN, Color.BLUE, Shader.TileMode.CLAMP);
lb.setCornerRadius(100f);
Shader shader = new LinearGradient(0f,0f,1000f,100f, 0xAAE53935, 0xAAFF5722, Shader.TileMode.CLAMP);
lb.setBackgroundShader(shader);

findViewById(R.id.btn_success).setOnClickListener(this);
Expand Down
Binary file added image/loadingButton_shader.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8faa2d7

Please sign in to comment.