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
api-impl: misc additions for Oeffi
This commit is contained in:
@@ -17,6 +17,11 @@ public abstract class AbsSpinner extends AdapterView {
|
||||
haveCustomMeasure = false;
|
||||
}
|
||||
|
||||
public AbsSpinner(Context context, AttributeSet attributeSet, int defStyle) {
|
||||
super(context, attributeSet, defStyle);
|
||||
haveCustomMeasure = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected native long native_constructor(Context context, AttributeSet attrs);
|
||||
protected native void native_setAdapter(long widget, SpinnerAdapter adapter);
|
||||
|
||||
21
src/api-impl/android/widget/Gallery.java
Normal file
21
src/api-impl/android/widget/Gallery.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
public class Gallery extends AbsSpinner {
|
||||
|
||||
public Gallery(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public Gallery(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
public Gallery(Context context, AttributeSet attributeSet, int defStyleAttr) {
|
||||
super(context, attributeSet, defStyleAttr);
|
||||
}
|
||||
|
||||
public void setHorizontalFadingEdgeEnabled(boolean enabled) {}
|
||||
}
|
||||
@@ -515,6 +515,30 @@ public class PopupMenu {
|
||||
|
||||
@Override
|
||||
public MenuItem setShortcut(char numeric, char alpha) { return this; }
|
||||
|
||||
@Override
|
||||
public int getOrder() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getOrder'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'isEnabled'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public CharSequence getTitleCondensed() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getTitleCondensed'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public CharSequence getTitle() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getTitle'");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -307,4 +307,12 @@ public class TextView extends View {
|
||||
public void setLines(int lines) {}
|
||||
|
||||
public void setMinLines(int lines) {}
|
||||
|
||||
public void setSelectAllOnFocus(boolean selectAllOnFocus) {}
|
||||
|
||||
public int getCompoundDrawablePadding() {return 0;}
|
||||
|
||||
public int getPaintFlags() {return 0;}
|
||||
|
||||
public void setPaintFlags(int flags) {}
|
||||
}
|
||||
|
||||
14
src/api-impl/android/widget/ViewAnimator.java
Normal file
14
src/api-impl/android/widget/ViewAnimator.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
public class ViewAnimator extends ViewGroup {
|
||||
|
||||
public ViewAnimator(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
public void setDisplayedChild(int index) {}
|
||||
}
|
||||
14
src/api-impl/android/widget/ZoomButton.java
Normal file
14
src/api-impl/android/widget/ZoomButton.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
|
||||
public class ZoomButton extends View {
|
||||
|
||||
public ZoomButton(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
public void setZoomSpeed(long speed) {}
|
||||
}
|
||||
6
src/api-impl/android/widget/ZoomButtonsController.java
Normal file
6
src/api-impl/android/widget/ZoomButtonsController.java
Normal file
@@ -0,0 +1,6 @@
|
||||
package android.widget;
|
||||
|
||||
public class ZoomButtonsController {
|
||||
|
||||
public interface OnZoomListener {}
|
||||
}
|
||||
Reference in New Issue
Block a user