前回の続き。今回は、一覧表示する文字色とサイズを変更してみます。 サンプルコード: https://github.com/stack3/AndroidListViewSamples サンプルコードを起動して、CustomTextを選択してください。以下の画面が表示されます。 文字色が青、サイズが小さく、パディングも狭くなって表示されています。 custom_text_list_item.xml 今回は、テキストの表示をカスタマイズするので、行のレイアウトのXMLを自分で作っています。 <?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/text1" android:layout_w
![ListViewチュートリアル その3 文字色・サイズ – Cyber Passion for Android](https://cdn-ak-scissors.b.st-hatena.com/image/square/522c7d915e44deb27b6c5544daf9f01a1cb9b189/height=288;version=1;width=512/http%3A%2F%2Fblogand.stack3.net%2Fwp-content%2Fuploads%2F2013%2F06%2F012-212x300.png)