我有一個自定義適配器的列表視圖。我試圖在一個項目下顯示潛臺詞。這是我使用的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是正確的...... – Triode
我想要「tijd」在每行中居中並且圖像位於左側。我想要一個「tijd」下的潛臺詞。我以http://www.vogella.com/articles/AndroidListView/article.html爲指導。第1.3章 – Nfear
@Nfear向我們展示如何使用圖片或快照 – Raghunandan