Все остальное, кроме вертикальной линии, видно. Вот код.Пользовательская вертикальная линия списка просмотров не отображается
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/verses_custom_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.ad.holyquran.extra.TextViewEx
android:id="@+id/textView_Verse"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_toRightOf="@+id/versesRelativeLayout"
android:gravity="right"
android:layout_marginTop="-10dp"
android:paddingBottom="5dp"
android:paddingLeft="5dp"
android:paddingRight="10dp"
android:text="Text"
android:textSize="30sp"
android:textColor="#ff000000" />
<TextView
android:id="@+id/textView_VerseTranslation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/textView_Verse"
android:paddingBottom="5dp"
android:paddingLeft="5dp"
android:layout_toRightOf="@+id/versesRelativeLayout"
android:paddingRight="10dp"
android:paddingTop="5dp"
android:text="Text"
android:textSize="20sp" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/versesRelativeLayout"
android:layout_alignParentLeft="true">
<ImageView
android:id="@+id/versesImageView"
android:layout_alignParentTop="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_verse" />
<TextView
android:id="@+id/textView_verseNumber"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/versesImageView"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="280"
android:paddingBottom="16dp"
android:textSize="14sp"
android:textColor="#ff000000" />
<View
android:id="@+id/view"
android:layout_width="2dp"
android:layout_height="match_parent"
android:background="#ff008328"
android:layout_alignRight="@+id/versesImageView"
android:layout_alignParentRight="false"
android:layout_alignWithParentIfMissing="false" />
</RelativeLayout>
Это, однако, показывает в дизайн зрения XML, проверьте ссылку ниже, но он не будет отображаться на моей фактической (GS3-I9300) устройства. http://i60.tinypic.com/jz9kpf.jpg
Не могли бы вы прислать нам снимки, которые вы получаете на своем реальном устройстве? – Hardy
Я получаю все, кроме вертикальной линии. – Aalem
Не знаю, какую проблему в вашей системе наклеил тот же код, и он показал мне, что Зеленая вертикальная линия отлично. – Hardy