Monday, 10 April 2017

set border around an Android textview?


set drawable file as a backgroud.

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


craeate back.xml and put at res/drawable folder

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

</shape>



No comments:

Post a Comment

Run/install/debug Android applications over Wi-Fi ?

Open Teminal/cmd --------------- Below steps is for Android 10 or lower Step 1 - Connect the device via USB and make sure debugging is work...