AIDE Tutorial 15.1 Old White Rectangular EditText
Create new drawable with following "edit_text_back.xml" name in drawable folder with following code for shape:<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid android:color="#ffffff" />
<stroke android:width="1dp"
android:color="#2033E3"/>
</shape> Add this in main.xml
<EditText
android:background="@drawable/edit_text_back"
android:hint="@string/hello_world"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
Watch the video to learn how to do it correctly
0 comments:
Post a Comment