Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

witlp Rautela




Posted Questions



Wait...

Posted Answers



Answer


  • Tap or at the bottom.
  • Tap in the top right.
  • Select people you'd like to send a message to, then tap Next.
  • Type a message. You can also tap to select a photo or video from your library.
  • Tap Send.

Answer is posted for the following question.

How to do dm in instagram?

Answer


How do I forward calls ? · If you only want to forward the calls you don't answer on your mobile phone , call *71 + the 10-digit number · Prepaid accounts can only


Answer is posted for the following question.

How to roll phone calls verizon?

Answer


How can I get ANZ Visa payWave on my ANZ Business Visa


Answer is posted for the following question.

How to paywave with phone anz?

Answer


1
import android.content.Context
2
import android.graphics.Canvas
3
import android.util.AttributeSet
4
import android.view.MotionEvent
5
class VerticalSeekBar : androidx.appcompat.widget.AppCompatSeekBar {
6
    private var changeListener: OnSeekBarChangeListener? = null
7
    private var x = 0
8
    private var y = 0
9
    private var z = 0
10
    private var w = 0
11
    constructor(context: Context) : super(context) {}
12
    constructor(context: Context, attrs: AttributeSet, defStyle: Int) : super(
13
        context,
14
        attrs,
15
        defStyle
16
    ) {
17
    }
18
    constructor(context: Context, attrs: AttributeSet) : super(context, attrs) {}
19
    @Synchronized
20
    override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {
21
        super.onSizeChanged(h, w, oldh, oldw)
22
        x = w
23
        y = h
24
        z = oldw
25
        this.w = oldh
26
    }
27
    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
28
        super.onMeasure(heightMeasureSpec, widthMeasureSpec)
29
        setMeasuredDimension(measuredHeight, measuredWidth)
30
    }
31
    override fun onDraw(c: Canvas) {
32
        c.rotate(-90f)
33
        c.translate(-height.toFloat(), 0f)
34
        super.onDraw(c)
35
    }
36
    override fun onTouchEvent(event: MotionEvent): Boolean {
37
        if (!isEnabled) {
38
            return false
39
        }
40
        when (event.action) {
41
            MotionEvent.ACTION_DOWN -> {
42
                isSelected = true
43
                isPressed = true
44
                if (changeListener != null) changeListener!!.onStartTrackingTouch(this)
45
            }
46
            MotionEvent.ACTION_UP -> {
47
                isSelected = false
48
                isPressed = false
49
                if (changeListener != null) changeListener!!.onStopTrackingTouch(this)
50
            }
51
            MotionEvent.ACTION_MOVE -> {
52
                val progress = (max
53
                        - (max * event.y / height).toInt())
54
                setProgress(progress)
55
                onSizeChanged(width, height, 0, 0)
56
                if (changeListener != null) changeListener!!.onProgressChanged(this, progress, true)
57
            }
58
            MotionEvent.ACTION_CANCEL -> {
59
            }
60
        }
61
        return true
62
    }
63
    @Synchronized
64
    override fun setOnSeekBarChangeListener(
65
        listener: OnSeekBarChangeListener
66
    ) {
67
        changeListener = listener
68
    }
69
    @Synchronized
70
    override fun setProgress(progress: Int) {
71
        if (progress >= 0) super.setProgress(progress) else super.setProgress(0)
72
        onSizeChanged(x, y, z, w)
73
        if (changeListener != null) changeListener!!.onProgressChanged(this, progress, false)
74
    }
75
}

Answer is posted for the following question.

How to android vertical seekbar github (Java Programming Language)


Wait...