Skip to content

Commit 8faa2d7

Browse files
author
xiangdong.cheng
committed
add demo image
1 parent e496e7e commit 8faa2d7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/dx/dxloadingbutton/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ protected void onCreate(Bundle savedInstanceState) {
5858
lb = findViewById(R.id.loading_btn);
5959
lb.setTypeface(Typeface.SERIF);
6060
lb.setOnClickListener(this);
61-
lb.setCornerRadius(32f);
62-
Shader shader = new LinearGradient(0f,0f,1000f,100f, Color.GREEN, Color.BLUE, Shader.TileMode.CLAMP);
61+
lb.setCornerRadius(100f);
62+
Shader shader = new LinearGradient(0f,0f,1000f,100f, 0xAAE53935, 0xAAFF5722, Shader.TileMode.CLAMP);
6363
lb.setBackgroundShader(shader);
6464

6565
findViewById(R.id.btn_success).setOnClickListener(this);

image/loadingButton_shader.jpg

16.4 KB
Loading

0 commit comments

Comments
 (0)