2017-05-06 195 views
1

我让我的应用程序存储报价,我需要使它能够排序报价(由作者,按主题)。实际上,我想在这些标签中展示这些方法。像谷歌播放选项

但我真的很喜欢标签像谷歌Play应用

enter image description here

而且我想也作出了同样在我的应用程序。

请告诉我,在我能做什么的帮助下?

谢谢。

+0

你搜索什么,到目前为止背景使用? –

+0

@Bogdan:您正在查看的小部件不是Tab,它们只是使用Horizo​​ntal Recycler View布置的视图。 TabLayout在上面,让我知道你到底在找什么,我可以解释更多。 –

+0

我查看了关于PagerTitleStrip的文档[link](https://developer.android.com/training/implementing-navigation/lateral.html#PagerTitleStrip)。 –

回答

0

创建文件夹绘制XML和尝试这种代码风格的按钮和按键的像R.drawable.buttonStyle

<selector xmlns:android="http://schemas.android.com/apk/res/android" > 
<item > 
     <shape android:shape="rectangle" > 
      <corners android:radius="5dip" /> 
      <stroke android:width="1dip" android:color="#1abc9c" /> 
      <gradient android:angle="-90" android:startColor="#1abc9c" android:endColor="#1abc9c" /> 
     </shape> 
    </item> 
</selector> 
+0

明智地说,这就是我一直在寻找的东西。谢谢。 –