如何创建自定义的文本输入布局(如附加设计)? [英] How to create customized text input layout like attached design.?

查看:103
本文介绍了如何创建自定义的文本输入布局(如附加设计)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了许多自定义工程图,但对这种设计一无所知.任何人都可以帮助我以可绘制或任何其他方式进行此设计.

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"/>

推荐答案

如果您尝试使用try catch来检查凭据,则可以在设置凭据时设置setVisibility(View.VISIBLE).如果不是错误,则只需将objecet设为(View.GONE)或(View.INVISIBLE)

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)

这篇关于如何创建自定义的文本输入布局(如附加设计)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆