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 some APIs needed for OctoDroid
This commit is contained in:
@@ -11,6 +11,7 @@ public class ProgressBar extends View {
|
||||
|
||||
protected int max = 100;
|
||||
protected int progress = 0;
|
||||
private Drawable indeterminateDrawable;
|
||||
|
||||
public ProgressBar(Context context, AttributeSet attrs, int defStyle) {
|
||||
super(context, attrs, defStyle);
|
||||
@@ -45,13 +46,7 @@ public class ProgressBar extends View {
|
||||
}
|
||||
|
||||
public Drawable getIndeterminateDrawable() {
|
||||
return new Drawable() {
|
||||
@Override
|
||||
public void draw(Canvas canvas) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'draw'");
|
||||
}
|
||||
};
|
||||
return indeterminateDrawable;
|
||||
}
|
||||
|
||||
public void setMax(int max) {
|
||||
@@ -73,4 +68,8 @@ public class ProgressBar extends View {
|
||||
public int getProgress() {
|
||||
return progress;
|
||||
}
|
||||
|
||||
public void setIndeterminateDrawable(Drawable indeterminateDrawable) {
|
||||
this.indeterminateDrawable = indeterminateDrawable;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user