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 Java APIs needed for WhatsApp settings
This commit is contained in:
@@ -73,7 +73,10 @@ public abstract class AbsListView extends AdapterView {
|
||||
|
||||
public void smoothScrollBy(int position, int duration) {}
|
||||
|
||||
public void smoothScrollToPositionFromTop(int position, int offset) {}
|
||||
@Override
|
||||
public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) {
|
||||
return new LayoutParams(getContext(), attrs);
|
||||
}
|
||||
|
||||
public interface OnScrollListener {}
|
||||
|
||||
@@ -93,5 +96,8 @@ public abstract class AbsListView extends AdapterView {
|
||||
|
||||
public class LayoutParams extends ViewGroup.LayoutParams {
|
||||
|
||||
public LayoutParams(Context c, AttributeSet attrs) {
|
||||
super(c, attrs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
public class CheckedTextView extends TextView {
|
||||
@@ -15,4 +16,6 @@ public class CheckedTextView extends TextView {
|
||||
|
||||
public void setChecked(boolean checked) {}
|
||||
|
||||
public void setCheckMarkDrawable(Drawable d) {}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ public abstract class CursorAdapter extends BaseAdapter {
|
||||
|
||||
public void changeCursor(Cursor cursor) {
|
||||
this.cursor = cursor;
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public Cursor getCursor() {
|
||||
|
||||
@@ -305,4 +305,6 @@ public class TextView extends View {
|
||||
public TextUtils.TruncateAt getEllipsize() {return null;}
|
||||
|
||||
public void setLines(int lines) {}
|
||||
|
||||
public void setMinLines(int lines) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user