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
add more Java APIs needed for OctoDroid
This commit is contained in:
@@ -83,7 +83,11 @@ public class LayoutInflater {
|
||||
try { // FIXME ugly
|
||||
return createView(name, "android.view.", attrs);
|
||||
} catch (java.lang.ClassNotFoundException e) {
|
||||
return createView(name, "android.widget.", attrs);
|
||||
try {
|
||||
return createView(name, "android.widget.", attrs);
|
||||
} catch (java.lang.ClassNotFoundException e1) {
|
||||
return createView(name, "android.webkit.", attrs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,4 +52,8 @@ public interface MenuItem {
|
||||
|
||||
public MenuItem setIcon(Drawable icon);
|
||||
|
||||
public boolean isChecked();
|
||||
|
||||
public MenuItem setShowAsActionFlags(int action);
|
||||
|
||||
}
|
||||
9
src/api-impl/android/view/TouchDelegate.java
Normal file
9
src/api-impl/android/view/TouchDelegate.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package android.view;
|
||||
|
||||
import android.graphics.Rect;
|
||||
|
||||
public class TouchDelegate {
|
||||
|
||||
public TouchDelegate(Rect bounds, View delegate) {
|
||||
}
|
||||
}
|
||||
@@ -1821,4 +1821,6 @@ public class View implements Drawable.Callback {
|
||||
public void setVerticalScrollbarPosition(int position) {}
|
||||
|
||||
public void setNestedScrollingEnabled(boolean enabled) {}
|
||||
|
||||
public void setTouchDelegate(TouchDelegate touchDelegate) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user