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:
@@ -1,6 +1,7 @@
|
||||
package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
public class AutoCompleteTextView extends EditText {
|
||||
@@ -16,4 +17,26 @@ public class AutoCompleteTextView extends EditText {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
public void setDropDownBackgroundDrawable(Drawable drawable) {}
|
||||
|
||||
public int getThreshold() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void setOnItemClickListener(AdapterView.OnItemClickListener listener) {}
|
||||
|
||||
public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener listener) {}
|
||||
|
||||
public int getDropDownAnchor() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void setAdapter(ListAdapter adapter) {}
|
||||
|
||||
public void setThreshold(int threshold) {}
|
||||
|
||||
public int getImeOptions() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
14
src/api-impl/android/widget/MultiAutoCompleteTextView.java
Normal file
14
src/api-impl/android/widget/MultiAutoCompleteTextView.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public class MultiAutoCompleteTextView extends AutoCompleteTextView {
|
||||
|
||||
public static interface Tokenizer {}
|
||||
|
||||
public MultiAutoCompleteTextView(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public void setTokenizer(Tokenizer tokenizer) {}
|
||||
}
|
||||
@@ -444,8 +444,7 @@ public class PopupMenu {
|
||||
|
||||
@Override
|
||||
public Drawable getIcon() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getIcon'");
|
||||
return new Drawable();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -476,6 +475,18 @@ public class PopupMenu {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'setOnActionExpandListener'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isChecked() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'isChecked'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public MenuItem setShowAsActionFlags(int action) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'setShowAsActionFlags'");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -19,6 +19,7 @@ import android.text.method.TransformationMethod;
|
||||
import android.text.style.URLSpan;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.TypedValue;
|
||||
import android.view.ActionMode;
|
||||
import android.view.Gravity;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
@@ -292,4 +293,8 @@ public class TextView extends View {
|
||||
public void nullLayouts() {}
|
||||
|
||||
public void setLinkTextColor(int color) {}
|
||||
|
||||
public void setCustomSelectionActionModeCallback(ActionMode.Callback actionModeCallback) {}
|
||||
|
||||
public int getExtendedPaddingTop() {return 0;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user