Android平板电脑中注册表的UI布局
我正在为android 3.0平板电脑开发一个应用程序。此应用程序的一个活动包含用户注册表 这是我的初步xml布局,只有几个字段Android平板电脑中注册表的UI布局,android,forms,user-interface,tablet,Android,Forms,User Interface,Tablet,我正在为android 3.0平板电脑开发一个应用程序。此应用程序的一个活动包含用户注册表 这是我的初步xml布局,只有几个字段 <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="15dp" >
<TextView
style="@style/lable"
android:text="Name" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<EditText
android:id="@+id/firstName"
style="@style/editText"
android:hint="First Name"
android:inputType="textPersonName" >
<requestFocus />
</EditText>
<EditText
android:id="@+id/lastName"
style="@style/editText"
android:hint="Last Name"
android:inputType="textPersonName" >
</EditText>
</LinearLayout>
<!-- USER NAME -->
<TextView
style="@style/lable"
android:text="Choose your username" />
<EditText
android:id="@+id/userName"
style="@style/editText"
android:ems="10"
android:hint="Username"
android:inputType="textEmailAddress" />
</LinearLayout>
</ScrollView>
下面是对应的style.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="lable">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
<item name="android:paddingTop">10dp</item>
<item name="android:textStyle">bold</item>
</style>
<style name="editText">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
<item name="android:layout_weight">1</item>
</style>
</resources>
添加几个字段后,我注意到屏幕上有很多空白。有谁能告诉我,在平板电脑用户界面中,创建注册表的正确安排是什么?您可以尝试将“名字”和“姓氏”字段并排放置,以在水平方向上占据更多空间,因为平板电脑的宽度大于其高度 姓名:姓 或许 姓名:姓,名
如果可能,您还可以尝试在注册表活动之前或之后使用片段显示活动 我想这不是你会问的问题。因为这是一个设计或用户体验问题,而不是编程问题。也许试一下不,这不是一个ux.stackexchange问题,因为它需要技术建议。已经有人在那里问过了,然后就关闭了。问题应该只发布在一个网站上,如果它属于其他地方,版主将迁移它,这样就不会在SE网络中重复。我想我误解了这个问题,谢谢