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 stubs and fixes for composeUI
This commit is contained in:
@@ -4,6 +4,7 @@ import android.R;
|
||||
import android.animation.LayoutTransition;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Canvas;
|
||||
import android.util.AttributeSet;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
@@ -84,6 +85,11 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected boolean addViewInLayout(View child, int index, LayoutParams params, boolean preventRequestLayout) {
|
||||
addViewInternal(child, index, params);
|
||||
return true;
|
||||
}
|
||||
|
||||
// This internal method is used to share code between removeView and removeViewInLayout.
|
||||
// Reusing removeView in removeViewInLayout is not possible, because e.g.
|
||||
// ViewPager overrides removeView to call removeViewInLayout
|
||||
@@ -385,6 +391,14 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
this.transition = transition;
|
||||
}
|
||||
|
||||
public boolean drawChild(Canvas canvas, View child, long drawingTime) {
|
||||
return false;
|
||||
}
|
||||
|
||||
protected void cleanupLayoutState(View child) {}
|
||||
|
||||
public boolean shouldDelayChildPressedState() { return false; }
|
||||
|
||||
public static class LayoutParams {
|
||||
public static final int FILL_PARENT = -1;
|
||||
public static final int MATCH_PARENT = -1;
|
||||
|
||||
Reference in New Issue
Block a user