Merge "Set the linear layout direction based on initial config" into tm-qpr-dev
This commit is contained in:
@@ -105,6 +105,10 @@ public class DragLayout extends LinearLayout {
|
|||||||
MATCH_PARENT));
|
MATCH_PARENT));
|
||||||
((LayoutParams) mDropZoneView1.getLayoutParams()).weight = 1;
|
((LayoutParams) mDropZoneView1.getLayoutParams()).weight = 1;
|
||||||
((LayoutParams) mDropZoneView2.getLayoutParams()).weight = 1;
|
((LayoutParams) mDropZoneView2.getLayoutParams()).weight = 1;
|
||||||
|
int orientation = getResources().getConfiguration().orientation;
|
||||||
|
setOrientation(orientation == Configuration.ORIENTATION_LANDSCAPE
|
||||||
|
? LinearLayout.HORIZONTAL
|
||||||
|
: LinearLayout.VERTICAL);
|
||||||
updateContainerMargins(getResources().getConfiguration().orientation);
|
updateContainerMargins(getResources().getConfiguration().orientation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user