1 답변
-
xml파일에서 android:divider에 원하는 색의 값을 주시면 구분선의 색을 바꿀 수 있습니다. android:divider="#FF0000"이런식으로 쓰는데요. 구분선의 색도 바꿀 수 있고 android:dividerHeight로 구분선의 두께도 줄수 있습니다.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ListView android:id="@+id/android:list" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="#FFCC00" android:dividerHeight="4px"/> </LinearLayout>
댓글 입력