java - How to resize background of imagebutton clickable space -


enter image description herei 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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -