Saturday, April 12, 2014

On the bottom of the menu "about" the realization of sliding


First on the map, right:



Brother wanted to be able to make a bottom 3 button can right slide (appear from the left) out of a new button, and type these three Button same.

You can use HorizontalScrollView brother found to achieve, but with a lower initial, seemingly written inside xml if the four, it will all show up, and there is no arrangement stays full screen, you can not do what I said above that effect.
Here you requested Android guru, can be achieved using HorizontalScrollView I say this practice? How 4 BUTTON to add in order to achieve "show three, another hidden, and must hide on the left" Such UI? Or three stays over the entire screen, you need to calculate the width of the device itself?

original 3 BUTTON own painted in full support xml:
android: id = "@ + id / bottom_button"
android: layout_gravity = "bottom"
android: orientation = "horizontal"
android: layout_width = "match_parent"
android: layout_height = "wrap_content">

No comments:

Post a Comment