【发布时间】:2019-04-16 00:04:11
【问题描述】:
我需要放置the date as the title of a Listview 但inside a bubble,有人可以告诉我该怎么做。
这是放置date as a title:的代码
readFechaActual();
TextView textView = new TextView(context);
textView.setText(stringDate);
listView.addHeaderView(textView);
通过这段代码我得到了这个:
但我需要这样的标题:
这是创建气泡的文件:drawable/time_message.xml:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/SALMON" />
<corners android:radius="20dp" />
【问题讨论】:
标签: android android-listview android-xml