1 답변
-
drawable에 rectangle같은 모양을 배경으로 지정해서 할수 있어요.
<TextView android:text="Some text" android:background="@drawable/back"/>
밑에는 drawable에 back.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>
solid color에 #00000000이런식으로 8자리로 하면 투명하게도 가능해요.
댓글 입력