A View
has a getLeft()
method, but how do I setLeft
?
I want to do this so that I can move a RelativeLayout
as the user drags their finger sideways across the screen. It is the same size and width as the screen, so as it moves it will need to move off the edge of the screen.
I have experimented with the various animation classes, but I don't think this is what I want in this scenario.
I'm targeting phones rather than tablets, so this needs to work for API level 7.