Add some more methods needed by NewPipe. Mostly stubs

This commit is contained in:
Julian Winkler
2024-02-17 15:15:05 +01:00
parent 72d6ad9914
commit 5dfadc9c59
17 changed files with 91 additions and 13 deletions

View File

@@ -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 {}
}