java - How to resize background of imagebutton clickable space -
i have custom imagebutton , want custom imagebutton clickable. of surrounding area of button "clickable" , initiates new activity. want minimize "clickable background" space. how can it?
<imagebutton android:id="@+id/start_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:background="@null" android:src="@drawable/flashcardbutton" />
well giving shot api found imagebutton
has method signature
public void oninitializeaccessibilitynodeinfo(accessibilitynodeinfo info)
and accessibilitynodeinfo class has method
public void setboundsinscreen (rect bounds)
so said think should achieve trying do, in adition @sushil answer should make work.
Comments
Post a Comment