implement some APIs needed for OctoDroid

This commit is contained in:
Julian Winkler
2024-03-29 23:56:28 +01:00
parent 0352a307b9
commit 2f4cd3917f
36 changed files with 329 additions and 25 deletions

View File

@@ -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;
}
}