How to create customized text input layout like attached design.?

徘徊边缘 提交于 2019-12-04 14:55:56

问题


I tried many custom drawing and I don't have idea about this design.Anyone help me out to do this design on drawable or any other way.

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
<stroke
    android:color="@color/black"
    android:width="2dp"/>
<solid android:color="#FFFFFF"/>
<corners
    android:bottomRightRadius="5dp"
    android:bottomLeftRadius="5dp"
    android:topLeftRadius="0dp"
    android:topRightRadius="0dp"/>


回答1:


You can setVisibility(View.VISIBLE) when you checks the credentials on the exception of your try catch, assuming that you're doing the check that way. And if isn't an error you just let the objecet as (View.GONE) or (View.INVISIBLE)



来源:https://stackoverflow.com/questions/51190630/how-to-create-customized-text-input-layout-like-attached-design

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!