Languages

Menu
Sites
Language
Template application UIBuilder problem changing orientation

Hi,

i created an application from the multi view template, that uses UIBuilder, but when testing on the device, if the screen orientation change from to portrait to landscape, the layout is compromised, and it lose some values, the results is a completely white background. Changing back to portrait, doesn't help, since the missing values are not restored. Below you can see the screenshots.

This is the normal screen:

Then, after screen orientation change:

I'm using Tizen 3.0 on samsung z4

Responses

3 Replies
K Johnson

Did you set orientation to anyone of portrait or landscape in the layout.xml file? Would you please share your layout.xml file here?

Ivan Gualandri

Hi, 

the orientation is full_sensor (that i think is the default orientation), as i mentioned above, this is the example project, and i didn't change anything in the layout. 

Here is the layout.xml:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document>
    <mscreen>
		<configuration device="HD" id="config1" name="common"
			orientation="portrait" type="common" />
	</mscreen>
	<views startup="view1">
		<view id="view1" indicator="true" screen_orientation="full_sensor"
			type="view">
			<grid align_h="fill" align_v="fill" id="grid1" visible="true"
				vsize_h="1000" vsize_w="1000" weight_h="1" weight_v="1">
				<button align_h="fill" align_v="fill" disable="false" id="button1"
					pack_h="80" pack_w="800" pack_x="100" pack_y="850" style="default"
					text="Next View" data_bind="" visible="true" weight_h="1" weight_v="1">
					<event connection_wrapper="connection_view1_button1_onclicked"
						event_name="clicked" function_name="view1_button1_onclicked"
						signal="clicked" target="view2" />
				</button>
				<label align_h="fill" align_v="fill" ellipsis="false" id="label1"
					line_wrap="none" pack_h="80" pack_w="700" pack_x="150" pack_y="50"
					text="First View" data_bind="" visible="true" weight_h="1"
					weight_v="1" />
			</grid>
		</view>
		<view id="view2" indicator="true" screen_orientation="full_sensor"
			type="view">
			<grid align_h="fill" align_v="fill" id="grid1" visible="true"
				vsize_h="1000" vsize_w="1000" weight_h="1" weight_v="1">
				<button align_h="fill" align_v="fill" disable="false" id="button1"
					pack_h="80" pack_w="800" pack_x="100" pack_y="350" style="default"
					text="Previous View" data_bind="" visible="true" weight_h="1"
					weight_v="1">
					<event connection_wrapper="connection_view2_button1_onclicked"
						event_name="clicked" function_name="view2_button1_onclicked"
						signal="clicked" target="view1" />
				</button>
				<button align_h="fill" align_v="fill" disable="false" id="button2"
					pack_h="80" pack_w="800" pack_x="100" pack_y="850" style="default"
					text="Next View" data_bind="" visible="true" weight_h="1" weight_v="1">
					<event connection_wrapper="connection_view2_button2_onclicked"
						event_name="clicked" function_name="view2_button2_onclicked"
						signal="clicked" target="view3" />
				</button>
				<label align_h="fill" align_v="fill" ellipsis="false" id="label1"
					line_wrap="none" pack_h="80" pack_w="700" pack_x="150" pack_y="50"
					text="Second View" data_bind="" visible="true" weight_h="1"
					weight_v="1" />
			</grid>
		</view>
		<view id="view3" indicator="true" screen_orientation="full_sensor"
			type="view">
			<grid align_h="fill" align_v="fill" id="grid1" visible="true"
				vsize_h="1000" vsize_w="1000" weight_h="1" weight_v="1">
				<button align_h="fill" align_v="fill" disable="false" id="button1"
					pack_h="80" pack_w="800" pack_x="100" pack_y="350" style="default"
					text="Previous View" data_bind="" visible="true" weight_h="1"
					weight_v="1">
					<event connection_wrapper="connection_view3_button1_onclicked"
						event_name="clicked" function_name="view3_button1_onclicked"
						signal="clicked" target="view2" />
				</button>
				<label align_h="fill" align_v="fill" ellipsis="false" id="label1"
					line_wrap="none" pack_h="80" pack_w="700" pack_x="150" pack_y="50"
					text="Third View" data_bind="" visible="true" weight_h="1"
					weight_v="1" />
				<button align_v="fill" visible="true" weight_v="1" pack_h="108"
					weight_h="1" colors="" align_h="fill" pack_w="718" disable="false"
					pack_x="149" pack_y="740" style="default" id="button4" text="Next"
					data_bind="">
					<event connection_wrapper="connection_view3_button4_onclicked"
						function_name="view3_button4_onclicked" signal="clicked" target="view4" />
				</button>
			</grid>
		</view>
		<view indicator="true" screen_orientation="full_sensor" id="view4"
			type="view">
			<grid align_h="fill" vsize_w="1000" align_v="fill" visible="true"
				weight_v="1" id="grid2" weight_h="1" vsize_h="1000">
				<button align_v="fill" visible="true" weight_v="1" pack_h="88"
					weight_h="1" colors="" align_h="fill" pack_w="530" disable="false"
					pack_x="307" pack_y="344" style="default" id="button3" text="Previous"
					data_bind="">
					<event connection_wrapper="connection_view4_button3_onclicked"
						function_name="view4_button3_onclicked" signal="clicked" target="view3" />
				</button>
				<button align_v="fill" visible="true" weight_v="1" pack_h="104"
					weight_h="1" colors="" align_h="fill" pack_w="397" disable="false"
					pack_x="217" pack_y="601" style="default" id="button5" text="Label"
					data_bind="">
					<event function_name="view4_button5_onclicked" signal="clicked" />
				</button>
				<label align_v="fill" visible="true" weight_v="1" line_wrap="none"
					pack_h="92" weight_h="1" ellipsis="true" align_h="fill" wrap_width="0"
					pack_w="411" pack_x="321" pack_y="89" id="label2" text="Label"
					data_bind=""></label>
				<entry context_menu="true" align_v="fill" visible="true" src=""
					weight_v="1" editable="true" pack_h="109" scroll="false" weight_h="1"
					single_line="false" align_h="fill" password="false"
					file_text_format="plain_utf8" pack_w="546" disable="false" pack_x="187"
					pack_y="735" id="entry1" text="Entry"></entry>
			</grid>
		</view>
	</views>
</document>

Thanks,

Ivan

K Johnson

I think this problem is platform based. I've tested same sample app both in Mobile 2.4 and 3.0 platform and got that, white screen problem doesn't occur in 2.4. So, according to my understanding, the sample app is not faulty. I would like to suggest you to use only_landscape or only_portrait as screen_orientation value in layout.xml file for now if you really don't need that particular feature.