Merge "Properly layout InlineContentView" into rvc-dev am: 7f70f707b5 am: cb5de77e05
Change-Id: Ia0425edea66b0a5343a649be849bbfa79bc564a3
This commit is contained in:
@@ -160,7 +160,7 @@ public class InlineContentView extends ViewGroup {
|
||||
|
||||
@Override
|
||||
public void onLayout(boolean changed, int l, int t, int r, int b) {
|
||||
mSurfaceView.layout(l, t, r, b);
|
||||
mSurfaceView.layout(0, 0, getMeasuredWidth(), getMeasuredHeight());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -45,6 +45,10 @@ import android.view.ViewGroup;
|
||||
* under the hosting window which could be useful in some cases, e.g. animating transitions.
|
||||
* At this point the inlined content will not be interactive and the touch events would
|
||||
* be delivered to your app.
|
||||
* <p>
|
||||
* Instances of this class are created by the platform and can be programmatically attached
|
||||
* to your UI. Once you attach and detach this view it can not longer be reused and you
|
||||
* should obtain a new view from the platform via the dedicated APIs.
|
||||
*/
|
||||
public class InlineContentView extends ViewGroup {
|
||||
|
||||
@@ -157,7 +161,7 @@ public class InlineContentView extends ViewGroup {
|
||||
|
||||
@Override
|
||||
public void onLayout(boolean changed, int l, int t, int r, int b) {
|
||||
mSurfaceView.layout(l, t, r, b);
|
||||
mSurfaceView.layout(0, 0, getMeasuredWidth(), getMeasuredHeight());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user