0
私が行ったのはthis & thisですが、なぜ私のリストビューの最初の項目が見えないのかわかりません。私はarraylistのサイズをチェックして、それは正しいです。Androidリストは最初のアイテムを表示していません
- 2つのアイテムがある場合、それは1つのアイテムが存在する場合、それは0
リストビューファイル示すのみ1.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@+id/videoListView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:divider="@null"
android:dividerHeight="0dp" />
</RelativeLayout>
ListView項目XMLファイルを:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dp">
<ImageView
android:layout_width="150dp"
android:layout_height="90dp"
android:id="@+id/videoImageView"
android:layout_marginLeft="10dp"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="35dp"
android:id="@+id/titleTextView"
android:layout_marginRight="10dp"
android:layout_toRightOf="@+id/videoImageView"
android:layout_marginLeft="10dp"
android:textSize="12sp"
android:textColor="#000000"
android:ellipsize="end"
android:maxLines="2"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="20dp"
android:id="@+id/timeTextView"
android:layout_alignStart="@+id/titleTextView"
android:layout_alignLeft="@+id/titleTextView"
android:layout_below="@+id/titleTextView"/>
<ImageView
android:layout_width="25dp"
android:layout_height="25dp"
android:id="@+id/downloadImageView"
android:layout_alignStart="@+id/timeTextView"
android:layout_alignLeft="@+id/timeTextView"
android:layout_below="@+id/timeTextView"
android:layout_alignBottom="@+id/videoImageView"
android:src="@drawable/ic_vector_download"
android:layout_marginTop="5dp"/>
<ProgressBar
android:layout_width="25dp"
android:layout_height="25dp"
android:id="@+id/downloadProgressBarView"
android:layout_alignStart="@+id/timeTextView"
android:layout_alignLeft="@+id/timeTextView"
android:layout_below="@+id/timeTextView"
android:layout_alignBottom="@+id/videoImageView"
android:layout_marginTop="5dp"
android:visibility="gone"/>
<ImageView
android:layout_width="25dp"
android:layout_height="25dp"
android:id="@+id/shareImageView"
android:layout_below="@+id/timeTextView"
android:layout_alignBottom="@+id/videoImageView"
android:layout_toRightOf="@+id/downloadImageView"
android:layout_marginTop="5dp"
android:layout_marginLeft="7dp"
android:src="@drawable/ic_vector_share"/>
</RelativeLayout>
アダプターcla SS:ツールバーは
は、リストビューhiegthと幅「match_parent」ツールバーがリストビューの最初の項目 – Kintanpatel
チェックを変更しようとリストビューの最初の項目にオーバーラップを得るいけないチェックするかどうか私絶頂を変更
– siddhesh@Kintanpatelにオーバーラップを得るいけないかどうかを –