我目前正在使用 Eclipse 开发一个 android 应用程序。我希望能够滑入或滑出以进入下一个屏幕(活动)。有没有人知道如何创建此控件或任何第 3 方来执行此操作?
谢谢,
查尔斯
我目前正在使用 Eclipse 开发一个 android 应用程序。我希望能够滑入或滑出以进入下一个屏幕(活动)。有没有人知道如何创建此控件或任何第 3 方来执行此操作?
谢谢,
查尔斯
Google 通常鼓励使用“后退”按钮进行导航,而不是其他屏幕控件。尽管如此,在某些情况下它可能是合适的,所以如果你愿意,不要气馁不要放入你自己的活动控件。
out_marginLeft="50dp"
android:layout_marginTop="50dp"
android:layout_marginRight="50dp"
android:gravity="center"
android:orientation="vertical">
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/txtProgress"
android:layout_centerHorizontal="true"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:progress="50"
android:progressTint="@android:color/black" />
<TextView
android:id="@+id/txtProgress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="Progress"
android:textColor="@android:color/black" />
</LinearLayout>
Java