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: misc stubs/additions
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
package android.widget;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
|
||||
public class GridView extends AbsListView {
|
||||
public GridView(Context context) {
|
||||
@@ -11,4 +14,19 @@ public class GridView extends AbsListView {
|
||||
public GridView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
public GridView(Context context, AttributeSet attributeSet, int defStyleAttr) {
|
||||
super(context, attributeSet, defStyleAttr);
|
||||
}
|
||||
|
||||
@Override
|
||||
public View getSelectedView() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getSelectedView'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSelection(int position) {
|
||||
setSelection(position, false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ public class TextView extends View {
|
||||
public void setAllCaps(boolean allCaps) {
|
||||
String[] classesToRemove = {"ATL-text-uppercase"};
|
||||
native_removeClasses(widget, classesToRemove);
|
||||
|
||||
|
||||
if(allCaps){
|
||||
native_addClass(widget, "ATL-text-uppercase");
|
||||
}
|
||||
@@ -351,4 +351,8 @@ public class TextView extends View {
|
||||
public int getPaintFlags() {return 0;}
|
||||
|
||||
public void setPaintFlags(int flags) {}
|
||||
|
||||
public int getLineHeight() {
|
||||
return 10; // FIXME
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user