Android: Strike out line color -
i've done strike out text using below code.
tvingredient.setpaintflags(tvingredient.getpaintflags() | paint.strike_thru_text_flag); and cancel strike out i've used below code
tvingredient.setpaintflags(tvingredient.getpaintflags() & (~ paint.strike_thru_text_flag)); my question , how change color of strike out line.?
this create strike out line on view
<view android:id="@+id/view_strike" android:layout_width="match_parent" android:layout_below="@id/layout_myrow" android:layout_height="1dp" android:background="@android:color/white" /> now designing row layout listview. place above view in such way overlaps text view @ desired position in row layout
and set visibility gone
now depending on situation when have strike thru item make visibility visible
surely solution !! have used in 1 of app
just remember parent layout have **relativelayout** use layout_below on child**
Comments
Post a Comment