2015-09-15 19 views
-6

enter image description here如何製作刷卡頻閃..?

我所經歷的應用我剛剛下載(超亮LED手電筒)(https://play.google.com/store/apps/details?id=com.surpax.ledflashlight.panel&hl=en),我很感興趣,在我的應用程序中實現頻閃以同樣的方式也存在於應用程序,但對從那裏不知道開始。請幫忙。

+1

的https:// WWW。 google.com/design/spec/components/sliders.html#和http://developer.android.com/reference/android/widget/SeekBar.html – DigitalNinja

+0

頻閃在此應用程序是一種旋轉。 –

+0

不一定。可能,它只是滑動。在給定的圖像中有一個輕微的曲率幻覺。但它似乎是平坦的,一些巧妙的陰影覆蓋。 –

回答

2

您可以遵循Wheel查看庫,在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" /> 

,它看起來像這樣:

enter image description here

+0

謝謝,它真的很有用... –

+0

沒問題!很高興我幫忙。請記住將我的答案標記爲正確,以便每個人都可以根據需要在搜索中找到此庫。 –