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:
Griff Hazen
2014-02-10 08:58:32 -08:00
parent 6366dcbd49
commit af745f6df7

View File

@@ -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