Android開発でデザインを整えているときに枠線を付けたいけど、それらしいプロパティがないのでどうやって実現するか調査したメモ。 ここのメーリングリストを参考にした。 次のようなxmlファイルを/res/drawableに作成(今回はborder.xmlとした) <shape xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android:width="3px" android:color="#CCCCCC" /> <padding android:left="2px" android:top="2px" android:right="2px" android:bottom="2px" /> <corners android:radius="2px" /> </shape>