2016-09-25 26 views
-3

Playstore like shapes如何創建Play商店中一樣的形狀

如何創造這些下載,評級,媒體&視頻及類似實物機器人的形狀?有沒有任何圖書館可以做到這一點?

在此先感謝。

+3

我知道的一個是:[android-shape-imageview](https://github.com/siyamed/android-shape-imageview),當然[CircleImageView](https://github.com)/hdodenhof/CircleImageView)你也可以使用[floating-action-buttons](https://guides.codepath.com/android/floating-action-buttons) –

+0

對於媒體和視頻,你可以使用支持庫提供的floatingactionbutton 。 https://developer.android.com/reference/android/support/design/widget/FloatingActionButton.html – USKMobility

+0

你想要這種設計或圖標的形狀? –

回答

0

檢查這個環節,它是谷歌的Android材料設計: https://design.google.com/icons/index.html

+0

什麼是材料設計?他想知道這個:**我該如何創建一個這樣的佈局,尤其是評分部分** –

1

已經看清楚this庫。它非常易於使用。

<com.github.siyamed.shapeimageview.{ClassName} 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_margin="8dp" 
    android:src="@drawable/neo" 
    app:siBorderWidth="8dp" 
    app:siBorderColor="@color/darkgray"/> 

你可以把下列代替{的ClassName}
1. BubbleImageView
2. CircularImageView
3. DiamondImageView
4. HeartImageView
5. HexagonImageView
6. OctogonImageView
的類7. PentagonImageView
8. RoundedImageView
9. StarImageView