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 {}
|
||||
|
||||
}
|
||||
|
||||
5
src/api-impl/android/widget/HeaderViewListAdapter.java
Normal file
5
src/api-impl/android/widget/HeaderViewListAdapter.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package android.widget;
|
||||
|
||||
public class HeaderViewListAdapter {
|
||||
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
public class ListView extends AbsListView {
|
||||
@@ -13,4 +14,8 @@ public class ListView extends AbsListView {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
public int getDividerHeight() {return 0;}
|
||||
|
||||
public Drawable getDivider() {return null;}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,9 +2,8 @@ package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
|
||||
public class RadioButton extends View {
|
||||
public class RadioButton extends CompoundButton {
|
||||
|
||||
public RadioButton(Context context) {
|
||||
super(context);
|
||||
|
||||
@@ -207,4 +207,6 @@ public class TextView extends View {
|
||||
public int getCompoundPaddingLeft() {return 0;}
|
||||
|
||||
public int getCompoundPaddingRight() {return 0;}
|
||||
|
||||
public void setHint(int resId) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user