【发布时间】:2013-12-10 13:06:03
【问题描述】:
我有一个带有自定义适配器的列表视图。我正在尝试在项目下显示潜台词。这是我正在使用的 xml。问题是两个 TextView 合并在一起。我能做什么?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/tijd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:paddingLeft="10dp" />
<TextView
android:id="@+id/sub"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_below="@id/tijd"/>
<ImageView
android:id="@+id/type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/tijd" />
</RelativeLayout>
【问题讨论】:
-
你想要什么? Apoorv 是对的......
-
我希望“tijd”在每一行居中,左边有一个图像。我想要“tijd”下的潜台词。我使用vogella.com/articles/AndroidListView/article.html 作为指导方针。第1.3章
-
@Nfear 通过图片或快照向我们展示您想要的效果
标签: android xml listview textview subtitle