Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android中的滑块_Android - Fatal编程技术网

Android中的滑块

Android中的滑块,android,Android,我目前正在用Eclipse开发一个android应用程序。我希望能够滑入或滑出,以便进入下一个屏幕(活动)。是否有人知道如何创建此控件或任何第三方来创建此控件 谢谢 Charles是您需要使用的课程,是一个很好的教程,介绍了如何使用它。谷歌通常鼓励使用“后退”按钮进行导航,而不是使用其他屏幕控件。尽管如此,在某些情况下,这可能是合适的,因此如果您愿意,也不要阻止自己加入活动控件。out\u marginLeft=“50dp” out_marginLeft="50dp" a

我目前正在用Eclipse开发一个android应用程序。我希望能够滑入或滑出,以便进入下一个屏幕(活动)。是否有人知道如何创建此控件或任何第三方来创建此控件

谢谢


Charles是您需要使用的课程,是一个很好的教程,介绍了如何使用它。

谷歌通常鼓励使用“后退”按钮进行导航,而不是使用其他屏幕控件。尽管如此,在某些情况下,这可能是合适的,因此如果您愿意,也不要阻止自己加入活动控件。

out\u marginLeft=“50dp”
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
android:layout_marginTop=“50dp” android:layout_marginRight=“50dp” android:gravity=“center” android:orientation=“vertical”> JAVA
您必须使用活动的动画来滑动和移动到其他活动。检查以下链接: