简体   繁体   English

如何在滑动一个布局一半而另一个布局一半时应可见的布局?

[英]how to view the layouts while swiping one layout half and another layout half should be visible?

如何在滑动一个布局一半的同时查看布局,应该看到另一半布局。如何完成此任务?我使用了View Flipper,可以在滑动时查看下一个布局。但是我需要查看第一个布局的后半部分和第一个第二个layout.pls的一半给出了一些想法。如链接中图像的第一个屏幕所示,我需要查看布局。

You use the ViewPager for this. 为此使用ViewPager。 It can be used by include the android compatibility library which can be found in your sdk folder as a jar file. 可以通过包含android兼容性库来使用它,该库可以在您的sdk文件夹中找到为jar文件。 It allows to include honeycomb api's to older phones. 它允许将蜂巢式api包含到较旧的手机中。

The actionbar sherlock project demonstrates the capability of this library. actionbar sherlock项目演示了此库的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM