ºÇ½ª¹¹¿·¡§
t_yokky2002 2011ǯ10·î17Æü(·î) 14:44:36ÍúÎò
ListView¤Î¹Ô´Ö¤Î¶èÀÚ¤êÀþ¤òÊѹ¹¤¹¤ë¤Ë¤Ï¡¢android:divider°À¤ò»ØÄꤷ¤Þ¤¹¡£ ¹Ô¤ÎÉý¡¢¹â¤µ¤Ë¤è¤Ã¤Æ³ÈÂ硦½Ì¾®¤µ¤ì¤ë¤¿¤á¡¢ÀßÄꤹ¤ë²èÁü¤Ï¡¢9-patch PNG·Á¼°¤¬¹¥¤Þ¤·¤¤¤Ç¤¹¡£ Ä̾ï¤Î²èÁü¤Ç¤âÌäÂꤢ¤ê¤Þ¤»¤ó¤¬¡¢°ú¤¿¤Ð¤µ¤ì¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
PhotoViewerPart2¥×¥í¥¸¥§¥¯¥È¤Î¡¢res/layout/custom_list.xml¤ò¡¢¼¡¤Î¤è¤¦¤Ë½ñ¤´¹¤¨¤Æ¤¯¤À¤µ¤¤¡£
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="30dip" android:background="@drawable/tile_bg" > <ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:cacheColorHint="#00000000" <!-- ¤³¤³¤«¤é --> android:divider="@drawable/custom_divider" <!-- ¤³¤³¤Þ¤Ç --> /> </FrameLayout>
¥³¥á¥ó¥È¤ò¤«¤¯