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
android_layout_measure(): refactor to respect LayoutParams
This is needed when a Java widget gets measured from GTK
This commit is contained in:
committed by
Julian Winkler
parent
8b6de0e83a
commit
3c03223085
@@ -26,6 +26,11 @@ public class FrameLayout extends ViewGroup {
|
||||
return new LayoutParams(getContext(), attrs);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LayoutParams generateDefaultLayoutParams() {
|
||||
return new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
|
||||
}
|
||||
|
||||
public static class LayoutParams extends ViewGroup.MarginLayoutParams {
|
||||
public LayoutParams (Context c, AttributeSet attrs) {
|
||||
super(c, attrs);
|
||||
|
||||
Reference in New Issue
Block a user