You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
implement SeekBar using GtkScale
This commit is contained in:
@@ -13,7 +13,26 @@ public class SeekBar extends AbsSeekBar {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
public void setOnSeekBarChangeListener(OnSeekBarChangeListener l) {}
|
||||
@Override
|
||||
protected native long native_constructor(Context context, AttributeSet attrs);
|
||||
@Override
|
||||
protected native void native_setProgress(long widget, float fraction);
|
||||
protected native void native_setMax(long widget, int max);
|
||||
|
||||
@Override
|
||||
public void setMax(int max) {
|
||||
this.max = max;
|
||||
native_setMax(widget, max);
|
||||
}
|
||||
@Override
|
||||
public void setProgress(int progress) {
|
||||
this.progress = progress;
|
||||
native_setProgress(widget, progress);
|
||||
}
|
||||
@Override
|
||||
public void setIndeterminate(boolean indeterminate) {}
|
||||
|
||||
public native void setOnSeekBarChangeListener(final OnSeekBarChangeListener l);
|
||||
|
||||
public static interface OnSeekBarChangeListener {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user