Note that there are some explanatory texts on larger screens.

plurals
  1. POImageButton Action don't work
    primarykey
    data
    text
    <p>I have made some Imagebuttons in Absolute layout and then rotate the whole layout with all it's buttons and now I have a problem that the action of the imagebuttons not work probably as the action is not rotated with the imagebutton</p> <p>please if anyone knows what's going on let me know</p> <p>the main.xml</p> <p> </p> <pre><code>&lt;AbsoluteLayout android:id="@+id/wheelLayout" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:layout_x="-250px" android:clickable="true"&gt; &lt;ImageView android:id="@+id/wheelBG" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/wheel"/&gt; &lt;ImageButton android:id="@+id/accounts" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_x="258dp" android:layout_y="222dp" android:background="@null" android:onClick="accountsOnClick" android:src="@drawable/accounts"/&gt; &lt;ImageButton android:id="@+id/cards" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_x="228dp" android:layout_y="291dp" android:background="@null" android:onClick="cardsOnClick" android:src="@drawable/cards"/&gt; &lt;/AbsoluteLayout&gt; </code></pre> <p></p> <p>Then I have made a function to rotate the whole absolute layout using RotateAnimation and to angle in a specific duration </p> <p>and I have defined the action of the buttons </p> <p>public void accountsOnClick(View view) { System.out.println("imageButton1OnClick"); }</p> <p>Before rotation the action is working well but after rotation the action is not working</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload