¡@

Home 

2014/10/16 ¤W¤È 08:24:20

android Programming Glossary: slidebar

ACTION_CANCEL while touching

http://stackoverflow.com/questions/6018309/action-cancel-while-touching

while touching I has the following class that represents a View that is touchable and draw a Slide Bar. public class SlideBar extends View private int progress private int max private Paint background private Paint upground private RectF bar private.. private int max private Paint background private Paint upground private RectF bar private boolean firstDraw public SlideBar Context context AttributeSet attrs super context attrs progress 0 upground new Paint upground.setColor Color.parseColor..

Modifying the Android seekbar widget to operate vertically

http://stackoverflow.com/questions/631238/modifying-the-android-seekbar-widget-to-operate-vertically

orientation vertical android layout_width fill_parent android layout_height fill_parent com.mobilsemantic.mobipoll.SlideBar android id @ id slide android layout_width wrap_content android layout_height fill_parent android max 100 android progress.. android.util.Log import android.view.MotionEvent import android.view.View import android.widget.SeekBar public class SlideBar extends SeekBar private int oHeight 320 oWidth 29 private int oProgress 1 oOffset 1 private float xPos 1 yPos 1 private.. 29 private int oProgress 1 oOffset 1 private float xPos 1 yPos 1 private int top 1 bottom 1 left 1 right 1 public SlideBar Context context super context public SlideBar Context context AttributeSet attrs super context attrs oOffset this.getThumbOffset..