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
api-impl: add misc stubs/impls
This commit is contained in:
@@ -2,6 +2,7 @@ package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
|
||||
public class ExpandableListView extends ListView {
|
||||
|
||||
@@ -16,4 +17,10 @@ public class ExpandableListView extends ListView {
|
||||
public static int getPackedPositionGroup(long packedPosition) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void setHeaderDividersEnabled(boolean enabled) {}
|
||||
|
||||
public static interface OnChildClickListener {
|
||||
abstract boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +17,5 @@ public class HorizontalScrollView extends FrameLayout {
|
||||
|
||||
public void smoothScrollTo(int x, int y) {}
|
||||
|
||||
public void setFillViewport(boolean fillViewport) {}
|
||||
}
|
||||
|
||||
@@ -262,4 +262,10 @@ public class TextView extends View {
|
||||
public Drawable[] getCompoundDrawablesRelative() {return new Drawable[4];}
|
||||
|
||||
public Drawable[] getCompoundDrawables() {return new Drawable[4];}
|
||||
|
||||
public void setTextAppearance(int dummy) {}
|
||||
|
||||
public int length() {
|
||||
return getText().length();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user