Android Question Applying border to EditText with XML

incendio

Well-Known Member
Licensed User
Longtime User
Hi guys,

I want to place border around EditText with XML.

I got these xml codes from the net to add border on EditText
B4X:
<?xml version="1.0" encoding="utf-8" ?>

<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:thickness="0dp"
       android:shape="rectangle">
  <stroke android:width="3dp"
         android:color="#4799E8"/>
  <corners android:radius="5dp" />
  <gradient
   android:startColor="#C8C8C8"
   android:endColor="#FFFFFF"
   android:type="linear"
   android:angle="270"/>
</shape>

I have save those code on d:\mysample\Objects\res\drawable\etstyle.xml and make folder res readonly.

How to set so edittext read this xml file in B4A?
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top