Android の textview や button に枠線をつけたいのです。
drawableにて
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"></shape><solid android:color="#9af7fc" /> <stroke android:width="1px" android:color="#000000" /> <corners android:radius="1px" />
というxmlを作成し、これをtextview や button のbackgroundに指定してやれば出来るのですが、javaで作成する方法はありませんか?
setBackgroundColorでは色のみの指定で、枠線などは描けないので困っております。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/06/02 10:03