2023-09-12 23:18:47 +02:00
|
|
|
package android.widget;
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
import android.util.AttributeSet;
|
|
|
|
|
|
2024-02-04 08:08:49 +01:00
|
|
|
public abstract class AbsListView extends AdapterView {
|
2023-09-12 23:18:47 +02:00
|
|
|
|
2024-02-17 15:15:05 +01:00
|
|
|
public boolean mIsChildViewEnabled = false; // this field gets directly accessed by androidx DropDownListView
|
|
|
|
|
|
2023-09-12 23:18:47 +02:00
|
|
|
public AbsListView(Context context) {
|
|
|
|
|
super(context);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public AbsListView(Context context, AttributeSet attributeSet) {
|
|
|
|
|
super(context, attributeSet);
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-15 17:56:56 +01:00
|
|
|
@Override
|
|
|
|
|
protected native long native_constructor(Context context, AttributeSet attrs);
|
|
|
|
|
|
2024-02-04 08:08:49 +01:00
|
|
|
public void setChoiceMode(int choiceMode) {}
|
|
|
|
|
|
2024-02-09 16:41:37 +01:00
|
|
|
public void setOnScrollListener(OnScrollListener onScrollListener) {}
|
|
|
|
|
|
2024-02-15 17:56:56 +01:00
|
|
|
public native void setAdapter(ListAdapter adapter);
|
|
|
|
|
|
|
|
|
|
public native void setItemChecked(int position, boolean value);
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public native void setOnItemClickListener(OnItemClickListener listener);
|
2024-02-09 16:41:37 +01:00
|
|
|
|
2024-02-15 17:56:56 +01:00
|
|
|
public native int getCheckedItemPosition();
|
2024-02-09 16:41:37 +01:00
|
|
|
|
2024-02-17 15:15:05 +01:00
|
|
|
public void setCacheColorHint(int color) {}
|
|
|
|
|
|
|
|
|
|
public int getListPaddingTop() {return 0;}
|
|
|
|
|
|
|
|
|
|
public int getListPaddingBottom() {return 0;}
|
|
|
|
|
|
|
|
|
|
public int pointToPosition(int x, int y) {
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-09 16:41:37 +01:00
|
|
|
public interface OnScrollListener {}
|
|
|
|
|
|
2024-02-17 15:15:05 +01:00
|
|
|
public interface SelectionBoundsAdjuster {}
|
|
|
|
|
|
2023-09-12 23:18:47 +02:00
|
|
|
}
|