InfiniteLoop
InfiniteLoop

Reputation: 3

Make my own custom component in Android

I drew two images in Photoshop (the first is the base of my fader and the second one is the cursor itself). I would like to combine these two images and add an event gesture to this component in order to create my own fader.

I read the "Custom Components" section of the API Guides of Android Developers but since I'm a newbie on Android, I'm a little bit lost in all these methods and classes (onDraw(), onMeasure(), ImageView class, etc.)

How would you create this fader?

Here are the two images and the image that show the final result: https://drive.google.com/folderview?id=0B1Sk-uP_T-7KLXZtcUFhLVVrZVk&usp=sharing

Upvotes: 0

Views: 133

Answers (1)

jyoonPro
jyoonPro

Reputation: 1681

Based on your screenshots, it seems that you are trying to achieve a custom seekBar, not a completely new component. Based on the answer here, you can customize the seekBar with your own images instead of creating a new component.

Upvotes: 3

Related Questions