如何使圆形ImageView周围的文本圆形TextView?

时间:2015-06-05 09:08:00

标签: android

我检查过的所有结果都与:

有关
  1. 使用<shape><stroke>,以便最终结果会有某种边框。 This不是我想要的。
  2. 使用透明圆形图像作为TextView
  3. 的背景
  4. 像这样使用<layer-list>

    <item android:drawable="@drawable/android_launcher"/> <item android:drawable="@drawable/imgview_round"/>

  5. 其中 android_launcher .png图片,而 imgview_round xml文件,其中环定义为<shape> 形状和<stroke> 宽度为8dp。

    我期望的结果是: enter image description here

    TextView不是必需品,它可以是任何可以包含文字并具有某种背景的东西。

    我发现了类似的question,但 iPhone ,我正在寻找Android解决方案。

0 个答案:

没有答案
相关问题