Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohaibin authored Apr 28, 2018
1 parent 96ebbbf commit 4caa202
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ dependencies {
}
});
mTopBar.setTitle("测试");
//代码中设置样式
titleBar2.addRightTextButton("完成",R.id.topbar_right_about_button,ContextCompat.getColorStateList(this,R.color.color_black),16).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(MainActivity.this, "完成", Toast.LENGTH_SHORT).show();
}
});
```

Expand Down

0 comments on commit 4caa202

Please sign in to comment.