Solving the problem 1.): I personally checked this, so I can assure that it works, and you WILL get visual feedback.
1.) Create a folder named "xml" in your project, and then add an XML file called thumb_drawable.xml to it. In this file, define the following:
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:state_pressed="true" android:drawable="@drawable/seek_thumb_pressed"> </item> <item android:drawable="@drawable/seek_thumb_normal"> </item> </selector>
'seek_thumb_normal' is the default mouse pointer for Android, and the download link for this image is: http://www.tutomobile.fr/wp-content/uploads/2011/02/seek_thumb_normal.png . And "seek_thumb_pressed" is a modified version of the default thumb for scrolling for Android, which has only a different color. Now you can easily replace this with another desired image by placing this image in your folder with a selection, and then referring to this name.
2.) Here is the code I used to define the SeekBar in my layout file:
<SeekBar android:id="@+id/seekbar" android:max="100" android:layout_width="fill_parent" android:layout_height="30dp" android:minWidth="30dp" android:minHeight="30dp" android:thumb="@xml/thumb_drawable"/>
Problem 2: Now I'm a little confused because you said: "The animation I'm trying to achieve is a rotation, so the image will always be" vertical ", Android, by default, handles the rotation of the image when you change the orientation of the phone from portrait to the landscape, and thus the image is still vertical. I just checked it on an ice cream sandwich, and the turn indicator turned on its own when I changed orientation. if I didn’t understand or didn’t understand something else, you don't need to revive anything when the speech It is a question of orientation transformation. Let me know if you have something else, and I will help you solve it.
source share