i have imagebutton default invisible :
<imagebutton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/anchor" android:src="@drawable/anchor" android:elevation="6dp" android:layout_below="@+id/rl_row_progress_bar" android:layout_centerhorizontal="true" android:visibility="invisible"/> on activity change it's attribute code :
if(lastpotition == 1){ mimagebutton.setvisibility(view.gone); } else{ mimagebutton.setvisibility(view.visible); } the problem in pre lollipop image button works fine in apis 21 , 22 doesn't work
this declaration of imagebutton:
private imagebutton mimagebutton; mimagebutton =(imagebutton)v.findviewbyid(r.id.anchor); //anchor thank help.
i had issue later have discovered related settings in lollipop device.
here 3 options described here: lollipop notification setvisibility() not work?
show notification content makes notifications (regardless of visibility) public.
hide sensitive notification content respects new visibility types.
don't show notifications @ make notifications secret.
Comments
Post a Comment