What exactly are you doing in the layout parameters to get the
ImageView to reposition?  Setting the margins?

Doug

On Jan 24, 2:25 pm, Gabriel Simões <[email protected]> wrote:
> Hello,
>
> I´ve deleted the last post and I´m rewriting this one trying to make
> things a little bit more clear and comprehensive.
>
> What I´m trying to archive is to be able to draw an ImageView
> partially off-screen, outside it´s parent relativelayout, without
> android resizing it automatically.
> The cenario:
>
> I have a layout composed of:
> - RelativeLayout
>      - RelativeLayout
>           - ImageView in quiestion
>      - A lot of other widgets
>
> Since the widget´s parent is a relativelayout I´m using a
> RelativeLayout.LayoutParams to be able to reposition it on screen
> using absolute coodinates (in pixels). This will be combined with a
> TouchListener to track drag&drop from the users.
>
> When I use LayoutParams to draw the ImageView off-screen on the left
> (it´s X position < 0) the app reacts just the way I want and part of
> the image is drawn on the screen while the rest of it get hidden on
> the left.
> My problem starts when I try to do the same move but to the other
> side, where the image should get hidden off-screen on the right:
> android doesn´t allow it to cross the bondaries of the RelativeLayout
> and starts resizing the image to still fit on the screen. If I
> understood it right, the imageview is getting positioned on the
> outside but android resizes the image drawn to fit on the portion of
> the imageview that is still inside the screen area.
>
> What I need here is to make the system react the same way on both
> sides, allowing the image to be drawn off-screen, without any resizing
> or other transformation.
>
> I still think this is probably just a parameter but I´ve spent the
> whole afternoon reading android docs and posts on the web and could
> not make it.
>
> I hope you guys can help me.
>
> Thank you very much for your time,
> Gabriel Simões

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to