나는 다음 당김 모양이 있습니다안드로이드 : 모양 = "LINE"표시되지
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line" >
<stroke
android:width="1dp"
android:color="#e0e0e0" />
</shape>
을 그리고이 이미지에 이것을 사용 :
<ImageView
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="8dp"
android:src="@drawable/line" />
내가 1DP하는 android:layout_height
을 설정, 모양이 표시되지 않습니다. android:layout_height
이 2dp로 설정된 경우 모양이 표시됩니다.
왜 2dp 높이를 사용해야합니까? 이 모양을 바탕으로 간다 있도록
랄프
가능한 대답 http://stackoverflow.com/a/26296229/185022 내가 :-) 그것을 시도 –