Facebook的卧式风格silder [英] Horizontal facebook style silder

查看:217
本文介绍了Facebook的卧式风格silder的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近一直在与Facebook的Andr​​oid风格滑块和我在想,如果你能帮助我。我需要它,以便从所述相对侧滑块滑动。因此,而不是首先从左至右滑动,我需要它从右向左走。

I have recently been working with your facebook style android slider and I was wondering if you could help me. I need to make it so that the slider slides from the opposite side. So instead of sliding from left to right at first, i need it to go from right to left.

您能解释一下你究竟是怎么对我?

Could you explain how you did this for me?

感谢

问候,
菲利普

Regards, Philip

推荐答案

只要按照下面的步骤,

1)创建水平滚动型。

1)Create a Horizontal ScrollView.

2)动态地添加两种看法吧。

2)Add two views to it dynamically.

3)充气都使用吹气布局的意见。

3)Inflate both the views using Layout Inflater.

4)然后设置子1作为初始视图,而不是孩子0,所以它看起来像由右至左,而不是从左向右移动。

4)Then set the child 1 as the initial view instead of child 0 , So that it would look like moving from right to left instead of left to right.

下面是关于FB的布局一样交谈。

Here is a conversation about the Fb like layout.

布局动画的Andr​​oid [Facebook的]

和一个又一个,

如何使Facebook的应用程序的新菜单上的Andr​​oid?

这篇关于Facebook的卧式风格silder的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆