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 stubs
This commit is contained in:
@@ -13,4 +13,6 @@ public class CheckBox extends CompoundButton {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
public void setLines(int lines) {}
|
||||
|
||||
}
|
||||
|
||||
4
src/api-impl/android/widget/CursorAdapter.java
Normal file
4
src/api-impl/android/widget/CursorAdapter.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package android.widget;
|
||||
|
||||
public abstract class CursorAdapter extends BaseAdapter {
|
||||
}
|
||||
4
src/api-impl/android/widget/ListAdapter.java
Normal file
4
src/api-impl/android/widget/ListAdapter.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package android.widget;
|
||||
|
||||
public interface ListAdapter extends Adapter {
|
||||
}
|
||||
@@ -186,6 +186,12 @@ public class TextView extends View {
|
||||
|
||||
public CharSequence getHint() {return "HINT";}
|
||||
|
||||
public int getMinHeight() {return 0;}
|
||||
public int getMinWidth() {return 0;}
|
||||
public void setMinHeight(int minHeight) {}
|
||||
|
||||
public void setHorizontallyScrolling(boolean whether) {}
|
||||
|
||||
public static interface OnEditorActionListener {
|
||||
public abstract boolean onEditorAction(TextView v, int actionId, KeyEvent event);
|
||||
}
|
||||
|
||||
22
src/api-impl/android/widget/Toast.java
Normal file
22
src/api-impl/android/widget/Toast.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public class Toast {
|
||||
|
||||
private String text;
|
||||
|
||||
public static Toast makeText(Context context, int resId, int duration) {
|
||||
return makeText(context, context.getString(resId), duration);
|
||||
}
|
||||
|
||||
public static Toast makeText(Context context, CharSequence text, int duration) {
|
||||
Toast toast = new Toast();
|
||||
toast.text = String.valueOf(text);
|
||||
return toast;
|
||||
}
|
||||
|
||||
public void show() {
|
||||
System.out.println("showing toast: " + text);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user