Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/193.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_User Interface_View_Android Custom View - Fatal编程技术网

Android 如何制作滑动选通。。?

Android 如何制作滑动选通。。?,android,user-interface,view,android-custom-view,Android,User Interface,View,Android Custom View,我正在浏览应用程序,我刚刚下载了超亮LED手电筒,我对在我的应用程序中实现频闪感兴趣,就像在应用程序中一样,但不知道从哪里开始。请提供帮助。您可以按照github中的视图库进行操作: 像这样使用它: <it.sephiroth.android.wheel.view.Wheel android:id="@+id/wheel" xmlns:sephiroth="http://schemas.android.com/apk/res-auto"

我正在浏览应用程序,我刚刚下载了超亮LED手电筒,我对在我的应用程序中实现频闪感兴趣,就像在应用程序中一样,但不知道从哪里开始。请提供帮助。

您可以按照github中的视图库进行操作:

像这样使用它:

<it.sephiroth.android.wheel.view.Wheel
            android:id="@+id/wheel"
            xmlns:sephiroth="http://schemas.android.com/apk/res-auto"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            sephiroth:numRotations="6"
            sephiroth:ticks="28" />
看起来是这样的:

<it.sephiroth.android.wheel.view.Wheel
            android:id="@+id/wheel"
            xmlns:sephiroth="http://schemas.android.com/apk/res-auto"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            sephiroth:numRotations="6"
            sephiroth:ticks="28" />

这个应用中的选通是旋转的,不一定。可能只是在滑动。在给定的图像中有一种轻微的曲率错觉。但它似乎是一个平面,上面覆盖着一些巧妙的阴影。没问题!很高兴我能帮忙。请记住将我的答案标记为正确,以便每个人都可以在搜索中找到此库(如果需要)。