mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-29 04:37:58 +03: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:
parent
a8e39cd613
commit
82744e9e5e
87 changed files with 2746 additions and 46 deletions
|
@ -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 {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue