Design Custom Edit text in android -
I have to edit text like the image below. Please suggest some information!
thanks
You can use the following XML
& lt; Remote layout xmlns: android = "http: // schema Android: Android: Android: Android: Android: Android:" @ drawable / bg_sm "Android: layout_height =" wrap_content ">
TextView Android: id =" @ Android: layout_hearg = "wrap_content" Android: layout_centerVertical = "true" Android: gravity = "center_vertical" Android: text = "reference (optional) ) "& Gt; & gt; / TextView & gt; EditText android: layout_width =" wrap_content "android: layout_h android: layout_toRightOf = "@ + id / text field" Android: layout_centerVertical = "true" Android: gravity = "center_vertical" android: signal = "12345" /> and the background is ready
& lt ;? xml version = "1.0" encoding = "UTF-8"? & Gt; Lt; size xmlns: android = "http://schemas.android.com/apk/res/android" & gt; & Lt; Solid Android: Color = "# 00000000" /> & Lt; Stroke Android: width = "3dp" Android: color = "# a1a1a1" /> & Lt; Corners Android: Talftaridius = "3 DP" Android: Below Writer: = "3 DP" Android: Top Leftradius = "3 DP" Android: ToprightRadios = "3 DP" /> & Lt; / Size & gt; this will look
Comments
Post a Comment