Androidを担当しています、森脇です。 今回は画像を使わずに、xmlだけで角丸ボタンを作ってみようと思います。 ShapeDrawableを使ってボタン用のxmlファイルを作成 ShapeDrawableを利用してボタンのパーツを定義していきます。 http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <!-- ボタンが押されてない時 --> <item android:state_pressed="false"> <!-- ボタンの形状 --> <shape an
![[Android]xmlで角丸ボタンを作る](https://cdn-ak-scissors.b.st-hatena.com/image/square/e84a5cbd19ba5eddb0a883552a43abff0c6b70a8/height=288;version=1;width=512/https%3A%2F%2Fseesaakyoto.up.seesaa.net%2Fimage%2Fbutton_default.png)