Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I achieve this layout in android?
    primarykey
    data
    text
    <p>I'm in the process of building an interactive presentation on an android tablet. I've going through the basic tutorials to try and get an understanding of the tools available. I'm now at the stage where I'd like to create a dummy application but I'm unsure about the best approach for this. I've attached the image below to give you an idea of what I'm looking to do:</p> <p><img src="https://i.stack.imgur.com/KwHqw.png" alt="enter image description here"></p> <p>What I'm looking to do is have a static navigation on the right. When you select the options on there, they'll switch out the content on the left, by rotating the panel and having the new content on the flip side. The middle pane will be a collection of images that can be swiped through.</p> <p>So far I've been playing around with the ViewPager class and this seems to be ideal for allowing me to quickly swipe between images. The only enhancement I'd like to make is to allow the user the ability to pinch zoom on these images, but <em>only</em> the images get zoomed and not the entire screen. Is this possible?</p> <p>Secondly, coming from a web background, I'm trying to figure out what the equivalent of a div is for android? Ideally I'd like a panel on the left with multiple textviews/imageviews depending on the content but I'm not sure how to achieve this with the android API. Is it a case of creating one big fragment and having multiple nested views within this?</p> <p>I also wonder how I can achieve the rotating effect on this panel. I've managed to achieve the effect in a dummy app using:</p> <pre><code>tv.animate().rotationYBy(180).setDuration(2000); </code></pre> <p>But what I don't know how to do is to get the content changed when a new item is selected. I'm thinking that maybe I'll dynamically remove the current fragment, add the new fragment and quickly rotate it on menu item select. Is this a sensible approach?</p> <p>I apologise if these are daft questions, I'm just having a hard time understanding how I can achieve these things within android. Any suggestions?</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload