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 and fixes
This commit is contained in:
@@ -6,7 +6,9 @@ import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.GskCanvas;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Slog;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.Objects;
|
||||
@@ -357,8 +359,11 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
public void setClipToPadding(boolean clipToPadding) {}
|
||||
|
||||
public View findViewById(int id) {
|
||||
if (this.id == id)
|
||||
Slog.v(TAG, "findViewById: looking for id: " + String.format("%x", id) + "(" + getResources().getResourceName(id) + ")" + " | checking: " + this + ",id: " + String.format("%x", this.getId()) + ", id_str: " + this.getIdName());
|
||||
if (this.id == id) {
|
||||
Slog.v(TAG, "findViewById: found: "+this+" | id: " + String.format("%x", this.getId()) + ", id_str: " + this.getIdName());
|
||||
return this;
|
||||
}
|
||||
for (View child: children) {
|
||||
View result = child.findViewById(id);
|
||||
if (result != null)
|
||||
@@ -409,6 +414,14 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
}
|
||||
}
|
||||
|
||||
public void offsetChildrenTopAndBottom(int offset) {
|
||||
// FIXME
|
||||
}
|
||||
|
||||
public final void offsetDescendantRectToMyCoords(View descendant, Rect rect) {
|
||||
// FIXME
|
||||
}
|
||||
|
||||
public static class LayoutParams {
|
||||
public static final int FILL_PARENT = -1;
|
||||
public static final int MATCH_PARENT = -1;
|
||||
@@ -525,7 +538,7 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
a.recycle();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user