Partially hide Layout programatically?
<p>What should I do to partially hide some layout from code? Should I play with <code>setMargins</code>?</p>

<p>Basically, I want to detect size of the screen and then I want that element X becomes visible only 10% of its width? I know how to do it all except <strong>how to make it partially hidden or offscreen</strong>?</p>

<p>Look at these images to see what I want to achieve. Image 1 - UI element is in the center. Image 2 - I set in code it's moved to top offscreen thus becoming only partially visible. </p>

<p><img src="http://i.stack.imgur.com/3aO6Y.png" alt=""></p>

<p><img src="http://i.stack.imgur.com/SkJjW.png" alt=""></p>
