2013-02-13 3 views
0

수직의 ListView (안드로이드)에서 분할, 어떻게 든 내 문제가 해결되지는 :점선 내가 alrady 점선 분할의 모든 주제를 통해 갔다

나는 수직의 LinearLayout을하고있는 LinearLayout의 각 항목 사이에 점선 구분선을 표시합니다. 나는 다음과 같은 모양을 사용하지만 여전히 직선을 얻는다.

<?xml version="1.0" encoding="utf-8"?> 
    <shape xmlns:android="http://schemas.android.com/apk/res/android" 
     android:shape="line"> 

    <stroke 
     android:color="#7b7b75" 
     android:dashGap="2dp" 
     android:dashWidth="1dp" 
    /> 

    <size android:height="1dp"/> 



</shape> 

답변

0

시도해보십시오.

drawable/dotted.xml: 

<shape xmlns:android="http://schemas.android.com/apk/res/android" 
android:shape="line"> 

    <stroke 
     android:color="#C7B299" 
     android:dashWidth="10px" 
     android:dashGap="10px" /> 
</shape> 

view.xml :

<ImageView 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:src="@drawable/dotted" /> 
+0

라인 단지 두꺼운 가지고 ... – Johannes

+0

다음 1 DP에 높이를 변경합니다. –

+0

보다 아무것도 표시되지 않습니다. 심지어 직선도 – Johannes