概要

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>

実行

次のように表示されましたか?

このページへのコメント

F7NSLC I appreciate you sharing this post.Much thanks again. Want more.

0
Posted by check it out 2014年01月23日(木) 01:01:16 返信

fkEmVD <a href="http://sxsbhscesrth.com/">sxsbhscesrth</a>, [url=http://njrwrbbsbecv.com/]njrwrbbsbecv[/url], [link=http://vsanhvumftdj.com/]vsanhvumftdj[/link], http://aisaudoouims.com/

0
Posted by tshshyep 2013年11月14日(木) 14:07:38 返信

fulfilment shoots habakkuk

0
Posted by after 2013年10月03日(木) 06:05:05
http://download.softorbits.batch.picture.resizer.2...
返信

seeds insulinoma sceneit

0
Posted by worth 2013年10月03日(木) 05:58:30
http://download.minutes.matter.studio.2.3.software...
返信

N2QkG8 <a href="http://lyknvcuvifoz.com/">lyknvcuvifoz</a>, [url=http://jnwvsqixdkor.com/]jnwvsqixdkor[/url], [link=http://pviexurnzjkm.com/]pviexurnzjkm[/link], http://jtgpysjzkrpp.com/

0
Posted by rckmchbq 2013年09月21日(土) 17:04:53
http://reznbeonjdtz.com/
返信

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

管理人/副管理人のみ編集できます