Hi,
after 3 years and (about 50 apps) i will ask this silly question .
i am making a new app and i would like to be able to use it in portrait and landscape.
i want to put the views a little bit different when i use it in landscape mode not like it is in portrait since i have more place in the x axis.
so i created 2 different variants 1920*1080 & 1080*1920
this is the phone i am using (galaxy s5)
the question is do i need to set all available variants or it is enough to set 2 variants 1 for portrait and 1 for landscape?
i define the views position and size in script variant and not in general variant.
is this correct?
another question if i add new views programmatically can i say if landscape then do this else do this...?
if yes how?
thanx, ilan
after 3 years and (about 50 apps) i will ask this silly question .
i am making a new app and i would like to be able to use it in portrait and landscape.
i want to put the views a little bit different when i use it in landscape mode not like it is in portrait since i have more place in the x axis.
so i created 2 different variants 1920*1080 & 1080*1920
this is the phone i am using (galaxy s5)
the question is do i need to set all available variants or it is enough to set 2 variants 1 for portrait and 1 for landscape?
i define the views position and size in script variant and not in general variant.
is this correct?
another question if i add new views programmatically can i say if landscape then do this else do this...?
if yes how?
thanx, ilan