上記のようにTextViewやPlainText、Button等の枠に 角丸や枠線を加える方法。 【構成】 角丸・枠線・角丸と枠線の3種類のファイルを用意する手順として まずは、PracticeHome > res へ新規で「drawable」というフォルダを作成する。 下記の3つのxmlファイルを作成し、「drawable」フォルダへ保存する。 【上】角丸 PracticeHome > res > drawable > corner_round.xml (←任意のファイル名) <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <!-- 背景色 --> <solid a
![android:TextView・Button等に角丸や枠をつける | UI |](https://cdn-ak-scissors.b.st-hatena.com/image/square/43e934e8319c3c16e7c196ca32789640c256043f/height=288;version=1;width=512/http%3A%2F%2Fasky.sakura.ne.jp%2Fwp%2Fwp-content%2Fuploads%2F2015%2F05%2F20150517145149.jpg)