Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/198.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_User Interface - Fatal编程技术网

Android登录表单用户界面

Android登录表单用户界面,android,user-interface,Android,User Interface,有人知道如何在Android上创建带有曲线编辑文本的登录表单吗 例如,像IOS: 有什么好的UI教程吗?创建一个9-patch可绘制图形,并将其定义为每个textview的背景 但请记住,从不同平台复制UI元素不仅在任何平台上都是一种普遍的不良做法,而且也不推荐使用,而是官方的Android设计指南 创建一个9-patch可绘制图形,并将其定义为每个textview的背景 但请记住,从不同平台复制UI元素不仅在任何平台上都是一种普遍的不良做法,而且也不推荐使用,而是官方的Android设计指南

有人知道如何在Android上创建带有曲线编辑文本的登录表单吗

例如,像IOS:


有什么好的UI教程吗?

创建一个9-patch可绘制图形,并将其定义为每个textview的背景

但请记住,从不同平台复制UI元素不仅在任何平台上都是一种普遍的不良做法,而且也不推荐使用,而是官方的Android设计指南


创建一个9-patch可绘制图形,并将其定义为每个textview的背景

但请记住,从不同平台复制UI元素不仅在任何平台上都是一种普遍的不良做法,而且也不推荐使用,而是官方的Android设计指南


我不属于他们,但这是一个非常棒的UI框架:

它与Android[1](以及其他许多)一起工作,并且是开源的(您可以在Github上找到它)


[1]

我不属于他们,但这是一个非常棒的UI框架:

它与Android[1](以及其他许多)一起工作,并且是开源的(您可以在Github上找到它)


[1]

只需创建一个可绘制资源,指定EditText的绘制方式:

<?xml version="1.0" encoding="utf-8"?>
<!--  res/drawable/rounded_edittext.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
<solid android:color="#FFFFFF"/>
<corners
 android:bottomRightRadius="15dp"
 android:bottomLeftRadius="15dp"
 android:topLeftRadius="15dp"
 android:topRightRadius="15dp"/>
</shape>

然后,只需在布局中引用此可绘制图形:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<EditText  
android:layout_width="fill_parent" 
android:layout_height="wrap_content" 
android:padding="5dip"
android:background="@drawable/rounded_edittext" />
</LinearLayout>

只需创建一个可绘制资源,指定EditText的绘制方式:

<?xml version="1.0" encoding="utf-8"?>
<!--  res/drawable/rounded_edittext.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
<solid android:color="#FFFFFF"/>
<corners
 android:bottomRightRadius="15dp"
 android:bottomLeftRadius="15dp"
 android:topLeftRadius="15dp"
 android:topRightRadius="15dp"/>
</shape>

然后,只需在布局中引用此可绘制图形:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<EditText  
android:layout_width="fill_parent" 
android:layout_height="wrap_content" 
android:padding="5dip"
android:background="@drawable/rounded_edittext" />
</LinearLayout>