Is there a way to programmatically set src image for ToggleButton?
问题 I am using a ToggleButton with an image. The image is 16x16, however, I want the button to be 50x50 so that when users click around the image even then the action is taken. This is how I'm avoiding the fat finger problem. This is how my ToggleButton is in the XML <ToggleButton android:id="@+id/fav" android:layout_width="50dp" android:layout_height="50dp" android:background="#FFFFFF" android:gravity="center" android:focusable="false" android:layout_marginRight="10dp" android:padding="15dp" />