Loading tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -335,7 +335,7 @@ public class RenderSessionImpl extends RenderAction<SessionParams> { backgroundView = backgroundLayout; backgroundView = backgroundLayout; backgroundLayout.setOrientation(LinearLayout.VERTICAL); backgroundLayout.setOrientation(LinearLayout.VERTICAL); LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); LayoutParams.MATCH_PARENT, 0); layoutParams.weight = 1; layoutParams.weight = 1; backgroundLayout.setLayoutParams(layoutParams); backgroundLayout.setLayoutParams(layoutParams); topLayout.addView(backgroundLayout); topLayout.addView(backgroundLayout); Loading Loading @@ -370,7 +370,7 @@ public class RenderSessionImpl extends RenderAction<SessionParams> { // content frame // content frame mContentRoot = new FrameLayout(context); mContentRoot = new FrameLayout(context); layoutParams = new LinearLayout.LayoutParams( layoutParams = new LinearLayout.LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); LayoutParams.MATCH_PARENT, 0); layoutParams.weight = 1; layoutParams.weight = 1; mContentRoot.setLayoutParams(layoutParams); mContentRoot.setLayoutParams(layoutParams); backgroundLayout.addView(mContentRoot); backgroundLayout.addView(mContentRoot); Loading Loading
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -335,7 +335,7 @@ public class RenderSessionImpl extends RenderAction<SessionParams> { backgroundView = backgroundLayout; backgroundView = backgroundLayout; backgroundLayout.setOrientation(LinearLayout.VERTICAL); backgroundLayout.setOrientation(LinearLayout.VERTICAL); LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); LayoutParams.MATCH_PARENT, 0); layoutParams.weight = 1; layoutParams.weight = 1; backgroundLayout.setLayoutParams(layoutParams); backgroundLayout.setLayoutParams(layoutParams); topLayout.addView(backgroundLayout); topLayout.addView(backgroundLayout); Loading Loading @@ -370,7 +370,7 @@ public class RenderSessionImpl extends RenderAction<SessionParams> { // content frame // content frame mContentRoot = new FrameLayout(context); mContentRoot = new FrameLayout(context); layoutParams = new LinearLayout.LayoutParams( layoutParams = new LinearLayout.LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); LayoutParams.MATCH_PARENT, 0); layoutParams.weight = 1; layoutParams.weight = 1; mContentRoot.setLayoutParams(layoutParams); mContentRoot.setLayoutParams(layoutParams); backgroundLayout.addView(mContentRoot); backgroundLayout.addView(mContentRoot); Loading