Tag: android sliding

Android中的新活动“从侧面进入”

去一个新的活动的最好方法是什么,但看起来像活动滑到左侧,新的活动进入屏幕? 我正在使用意图来调用新的活动,是这样做,如果我想要的应用程序是轻量级的? 为了更好地解释一下:在我的Android手机上,我可以用家里的大拇指向右滑动视图,然后从左侧input朋友stream,并在屏幕上进行。 我想用buttonclicks在我的应用程序中执行它,这是我之后的“滑动”。 谢谢!

Android – 使滑动抽屉滑动从左到右

我在我的应用程序中使用下面的XML布局实现了“滑动抽屉”(我从androidpeople.com得到了这个例子) <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:background="@drawable/androidpeople"> <SlidingDrawer android:layout_width="wrap_content" android:id="@+id/SlidingDrawer" android:handle="@+id/slideHandleButton" android:content="@+id/contentLayout" android:layout_height="75dip" android:orientation="horizontal"> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/slideHandleButton" android:background="@drawable/closearrow"> </Button> <LinearLayout android:layout_width="wrap_content" android:id="@+id/contentLayout" android:orientation="horizontal" android:gravity="center|top" android:padding="10dip" android:background="#C0C0C0" android:layout_height="wrap_content"> <Button android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"></Button> <Button android:id="@+id/Button02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"></Button> <Button android:id="@+id/Button03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"></Button> </LinearLayout> </SlidingDrawer> </LinearLayout> 但我想要的是从左到右(水平)而不是从右到左滑动抽屉,我如何使幻灯片从左到右的方向滑动? 请与我分享你的想法/观点/意见/问题,并把我赶出这个问题。 感谢名单