@Override
protected void onFinishInflate() {
super.onFinishInflate();
contentContainer = view.findViewById(R.id.relativeLayout_swipeBtn_contentContainer);
arrowHintContainer = view.findViewById(R.id.linearLayout_swipeBtn_hintContainer);
contentTv = view.findViewById(R.id.tv_btnText);
arrow1 = view.findViewById(R.id.iv_arrow1);
arrow2 = view.findViewById(R.id.iv_arrow2);
tintArrowHint();
contentTv.setText(btnText);
contentTv.setTextColor(textColorInt);
contentTv.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
gradientDrawable = new GradientDrawable();
gradientDrawable.setShape(GradientDrawable.RECTANGLE);
gradientDrawable.setCornerRadius(btnRadius);
setBackgroundColor(bgColorInt);
updateBackground();
setupTouchListener();
}
ProSwipeButton.java 文件源码
java
阅读 45
收藏 0
点赞 0
评论 0
项目:proSwipeButton
作者:
评论列表
文章目录