Android - TextView 刪除線

摘要:Android - TextView 刪除線

TextView price = (TextView) findViewById(R.id.price);
Paint paint = holder.price.getPaint();
paint.setFlags(Paint.STRIKE_THRU_TEXT_FLAG);
paint.setAntiAlias(true);