以下の内容はhttps://anton0825.hatenablog.com/entry/2015/05/26/000000より取得しました。


Viewに枠線をつける

border.xmlのような名前で以下をXMLに定義する。

<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
   <solid android:color="#ffffff" />
   <stroke android:width="1dip" android:color="#4fa5d5"/>
</shape>

あとはこれをbackgroundに設定すればよい。

<TextView android:text="Some text" android:background="@drawable/border"/>

参考:




以上の内容はhttps://anton0825.hatenablog.com/entry/2015/05/26/000000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14