2016-09-25 66 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