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 bunch of new java APIs: mostly stubs or copied from AOSP
Many of these classes are only needed to be subclassed by androidx support library, which is used in many android apps
This commit is contained in:
@@ -6,7 +6,9 @@ import android.content.res.TypedArray;
|
||||
import android.graphics.Typeface;
|
||||
import android.text.InputFilter;
|
||||
import android.text.TextPaint;
|
||||
import android.text.TextUtils;
|
||||
import android.text.TextWatcher;
|
||||
import android.text.method.TransformationMethod;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
|
||||
@@ -29,6 +31,10 @@ public class TextView extends View {
|
||||
native_constructor(context);
|
||||
}
|
||||
|
||||
public TextView(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
this(context, attrs);
|
||||
}
|
||||
|
||||
native void native_constructor(AttributeSet attrs);
|
||||
native void native_constructor(Context context);
|
||||
|
||||
@@ -76,6 +82,24 @@ public class TextView extends View {
|
||||
public void addTextChangedListener(TextWatcher watcher) {}
|
||||
public void setOnEditorActionListener(TextView.OnEditorActionListener l) {}
|
||||
|
||||
public TransformationMethod getTransformationMethod() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setHintTextColor(ColorStateList colorStateList) {}
|
||||
public void setLinkTextColor(ColorStateList colorStateList) {}
|
||||
|
||||
public void setSingleLine() {}
|
||||
|
||||
public void setEllipsize(TextUtils.TruncateAt truncateAt) {}
|
||||
|
||||
public void setTextAppearance(Context context, int appearance) {}
|
||||
|
||||
public void setMaxLines(int maxLines) {}
|
||||
|
||||
public void setMinWidth(int minWidth) {}
|
||||
public void setMaxWidth(int maxWidth) {}
|
||||
|
||||
public static interface OnEditorActionListener {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user