Fix ActivityView layout bug.
Child TextureView should be positioned at origin of ActivityView, with matching width and height. Previously, a container's padding would be applied twice for example. Change-Id: Ie0be10614a45aede4207abf986721385d04d8c76
This commit is contained in:
@@ -77,7 +77,7 @@ public class ActivityView extends ViewGroup {
|
||||
|
||||
@Override
|
||||
protected void onLayout(boolean changed, int l, int t, int r, int b) {
|
||||
mTextureView.layout(l, t, r, b);
|
||||
mTextureView.layout(0, 0, r - l, b - t);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user