Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/219.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何创建自定义文本输入布局,如附加设计。?_Android_Android Layout_Xml Drawable - Fatal编程技术网

Android 如何创建自定义文本输入布局,如附加设计。?

Android 如何创建自定义文本输入布局,如附加设计。?,android,android-layout,xml-drawable,Android,Android Layout,Xml Drawable,我试过很多定制图纸,但我不知道这个设计。有没有人能帮我在drawable或其他任何方式上做这个设计 <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" android:padding="10dp"> <stroke android:color="@color/black" android:width="2dp"/> <s

我试过很多定制图纸,但我不知道这个设计。有没有人能帮我在drawable或其他任何方式上做这个设计

<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异常的凭据时,您可以设置VisibilityView.VISIBLE,假设您是这样做的。如果不是错误,您只需将对象设置为View.GONE或View.INVISIBLE

共享您尝试过的代码片段。您是否有任何您想要实现的图像?@AnandPhadke而不是在注释中编写代码,请编辑您的问题!!!从这个答案中得到一个想法我需要一个帮助来设计这种类型的布局@joayou可以使用自定义错误img创建一个可绘制资源,然后通过编程将其设置为布局的背景@rajyou有没有想过要创建类似这种设计的可绘制资源