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:
3
src/api-impl/android/widget/FilterQueryProvider.java
Normal file
3
src/api-impl/android/widget/FilterQueryProvider.java
Normal file
@@ -0,0 +1,3 @@
|
||||
package android.widget;
|
||||
|
||||
public interface FilterQueryProvider {}
|
||||
3
src/api-impl/android/widget/Filterable.java
Normal file
3
src/api-impl/android/widget/Filterable.java
Normal file
@@ -0,0 +1,3 @@
|
||||
package android.widget;
|
||||
|
||||
public interface Filterable {}
|
||||
@@ -15,4 +15,6 @@ public class HorizontalScrollView extends FrameLayout {
|
||||
|
||||
public void setHorizontalScrollBarEnabled(boolean enabled) {}
|
||||
|
||||
public void smoothScrollTo(int x, int y) {}
|
||||
|
||||
}
|
||||
|
||||
@@ -153,4 +153,6 @@ public class ImageView extends View {
|
||||
public void setMaxWidth(int width) {}
|
||||
|
||||
public void setMaxHeight(int height) {}
|
||||
|
||||
public void setImageState(int[] state, boolean merge) {}
|
||||
}
|
||||
|
||||
@@ -280,6 +280,30 @@ public class PopupMenu {
|
||||
submenu.item.setVisible(true);
|
||||
return submenu;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setGroupVisible(int group, boolean visible) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'setGroupVisible'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeItem(int id) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'removeItem'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int size() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'size'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasVisibleItems() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'hasVisibleItems'");
|
||||
}
|
||||
}
|
||||
|
||||
private class SubMenuImpl extends MenuImpl implements SubMenu {
|
||||
@@ -423,6 +447,30 @@ public class PopupMenu {
|
||||
public SubMenu getSubMenu() {
|
||||
return subMenu;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MenuItem setActionView(int resId) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'setActionView'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public View getActionView() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getActionView'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasSubMenu() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'hasSubMenu'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public MenuItem setOnActionExpandListener(OnActionExpandListener listener) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'setOnActionExpandListener'");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -233,4 +233,10 @@ public class TextView extends View {
|
||||
public void setCompoundDrawablesRelativeWithIntrinsicBounds(int start, int top, int end, int bottom) {}
|
||||
|
||||
public boolean getLinksClickable() {return true;}
|
||||
|
||||
public boolean isTextSelectable() {return true;}
|
||||
|
||||
public void setCompoundDrawablesWithIntrinsicBounds(int left, int top, int right, int bottom) {}
|
||||
|
||||
public void setCompoundDrawablesWithIntrinsicBounds(Drawable left, Drawable top, Drawable right, Drawable bottom) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user