1. 设置粗体

textView设置粗体以及textView文字中划线_textView设置粗体以及textVi

2. 设置划线经过文字


private void initHeaderView2(LayoutInflater inflater) {

headerView2 = inflater.inflate(R.layout.main_header_qianggou, null);

final TextView tv_time = (TextView) headerView2

.findViewById(R.id.textView2);

TextView tv_oldPrice = (TextView) headerView2

.findViewById(R.id.qianggou_tv_010);

tv_oldPrice.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);

TextView tv_oldPrice2 = (TextView) headerView2

.findViewById(R.id.qianggou_tv_020);

tv_oldPrice2.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);

TextView tv_oldPrice3 = (TextView) headerView2

.findViewById(R.id.qianggou_tv_020);

tv_oldPrice3.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);

daojishi(tv_time);


}


划线效果

textView设置粗体以及textView文字中划线_textView设置粗体以及textVi_02