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 some more methods needed by NewPipe. Mostly stubs
This commit is contained in:
@@ -5,6 +5,8 @@ import android.util.AttributeSet;
|
||||
|
||||
public abstract class AbsListView extends AdapterView {
|
||||
|
||||
public boolean mIsChildViewEnabled = false; // this field gets directly accessed by androidx DropDownListView
|
||||
|
||||
public AbsListView(Context context) {
|
||||
super(context);
|
||||
}
|
||||
@@ -24,14 +26,23 @@ public abstract class AbsListView extends AdapterView {
|
||||
|
||||
public native void setItemChecked(int position, boolean value);
|
||||
|
||||
@Override
|
||||
public native void setOnItemSelectedListener(OnItemSelectedListener listener);
|
||||
|
||||
@Override
|
||||
public native void setOnItemClickListener(OnItemClickListener listener);
|
||||
|
||||
public native int getCheckedItemPosition();
|
||||
|
||||
public void setCacheColorHint(int color) {}
|
||||
|
||||
public int getListPaddingTop() {return 0;}
|
||||
|
||||
public int getListPaddingBottom() {return 0;}
|
||||
|
||||
public int pointToPosition(int x, int y) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
public interface OnScrollListener {}
|
||||
|
||||
public interface SelectionBoundsAdjuster {}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user