`
yezhiqiu-love
  • 浏览: 169833 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

androidUI 设计之三-----登陆页面

阅读更多

此范例用来实现用户登录等场景布局:


布局示意图:


实现代码:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:id="@+id/LinearLayout1" 
	android:layout_height="365px"
	android:layout_width="578px"
	android:orientation="vertical"
	android:background="@drawable/test_images22"
	>
	<LinearLayout 
		android:id="@+id/LinearLayout11"
		android:layout_width="578px"
		android:layout_height="65px"
		android:layout_marginTop="10px" >
		<TextView android:id="@+id/title"
			android:layout_width="246px"
			android:layout_height="58px"
			android:layout_marginLeft="165px"
			android:text="登陸頁面"
			android:textSize="25px"
			></TextView>
		<ImageButton 
			android:id="@+id/exit"
			android:layout_width="65px"
			android:layout_height="65px"
			android:background="@drawable/test_image666s"
			android:layout_marginLeft="100px"
			></ImageButton>
	</LinearLayout>
	<LinearLayout 
		android:id="@+id/LinearLayout12"
		android:layout_width="520px"
		android:layout_height="280px">
		<ScrollView 
			android:focusable="true"
			android:clickable="true"
			android:layout_width="510px"
			android:layout_height="280px"
			android:fadeScrollbars="false">
			<LinearLayout android:layout_width="510px"
				android:layout_height="280px">
				<RelativeLayout android:layout_width="wrap_content"
					android:id="@+id/relativeLayout1" android:layout_height="fill_parent">
					<TextView 
						android:id="@+id/textView0"
						android:layout_width="wrap_content" 
						android:layout_height="wrap_content"
						android:layout_marginLeft="60px"
						android:singleLine="true"
						android:textColor="@color/normwrite_Color"
						android:textSize="20px"
						android:text="請輸入用戶名" 
						></TextView>
					<EditText 
						android:id="@+id/editText0"
						android:layout_width="fill_parent" 
						android:layout_height="wrap_content"
						android:layout_below="@id/textView0"
						android:layout_marginLeft="60px"
						android:layout_marginRight="60px"
						android:singleLine="true"
						></EditText>
					<TextView 
						android:id="@+id/textView1"
						android:layout_width="wrap_content" 
						android:layout_height="wrap_content"
						android:layout_marginLeft="60px"
						android:layout_marginRight="20px"
						android:layout_below="@id/editText0"
						android:textSize="20px"
						android:textColor="@color/normwrite_Color"
						android:text="請輸入密碼" 
						></TextView>
					<EditText 
						android:id="@+id/editText1"
						android:layout_width="fill_parent" 
						android:layout_height="wrap_content"
						android:layout_below="@id/textView1"
						android:layout_marginLeft="60px"
						android:layout_marginRight="60px"
						android:singleLine="true"
						android:scrollHorizontally="true"
						android:inputType="textPassword"
						></EditText>
					<ImageButton android:id="@+id/sure"
						android:layout_height="65px"
						android:layout_width="65px"
						android:layout_below="@id/editText1"
						android:background="@drawable/test_image666s"
						android:layout_marginLeft="200px"
						></ImageButton>
				</RelativeLayout>
			</LinearLayout>
		</ScrollView>
	</LinearLayout>
</LinearLayout>

 

难点说明:

1.

android:layout_marginLeft="165px" 

     用来确定视图位置
  • 大小: 144.1 KB
  • 大小: 7.3 KB
分享到:
评论

相关推荐

    android 开发---QQ登陆页面的源码

    通过实践这个项目,开发者可以提升Android UI设计能力,学会如何与第三方服务集成,并且熟悉网络请求及数据处理的流程。对于初学者来说,这是一个很好的动手实践项目,能加深对Android开发的理解。

    Android 仿QQ微信登录页面-IT计算机-毕业设计.zip

    在Android中,UI设计通常使用XML布局文件来完成。这个项目可能包含了`activity_login.xml`这样的文件,用于定义登录界面的各个组件,如EditText(输入框)用于用户名和密码的输入,Button(按钮)用于提交登录请求,...

    安卓登陆界面ui源码 android studio

    通过学习和分析这个登录界面源码,开发者不仅可以了解到如何创建美观的登录界面,还能深入理解Android UI设计和交互逻辑,提升自己的开发技能。同时,这也是一个很好的实践项目,可以帮助初学者更好地理解和运用...

    Android手机通用登陆界面代码设计

    标题和描述所指的知识点为“Android手机通用登陆界面代码设计”,其中涉及到Android应用开发中的登录界面实现、SQLite数据库的应用以及Activity的使用。以下知识点详细说明: 1. Android登录界面设计: - 登录界面...

    android高仿QQ登陆界面Demo

    这个项目对于那些对Android UI设计和QQ应用交互感兴趣的开发者来说,是一个很好的实践案例。 在Android平台上,UI设计是用户体验的关键组成部分,而QQ作为一款广受欢迎的社交应用,其界面设计往往被视为业界的典范...

    xamarin Android 仿QQ登陆界面

    总结,"Xamarin.Android 仿QQ登陆界面"项目涵盖了Android UI设计、数据持久化、图片处理、事件处理、权限管理、安全性等多个方面,对于学习和提升Xamarin开发技能非常有帮助。在实际开发中,还需要考虑性能优化、...

    Android-app.rar

    Android例子源码计步器圆形UI设计 Android例子源码适合新手学习的listview使用源码 android及时通讯源码 android可伸缩日历效果源码 Android应用源码CreativeCommons新闻客户端半成品 Android应用源码使用Vitamio...

    实现注册登陆的简单页面设计以及页面跳转

    总结来说,这个项目展示了Android开发的基础元素,包括布局设计、UI组件使用、用户交互及页面导航。对于初学者来说,这是一个很好的实践项目,可以帮助理解Android应用的基本结构和工作原理。随着技能的提升,可以...

    android 登陆及list等UI界面

    本篇将详细讲解如何构建"android 登陆及list等UI界面",以及如何实现美观的界面设计。 首先,我们从登录界面开始。登录界面通常包括用户名或邮箱输入框、密码输入框、登录按钮、注册按钮,有时还会有忘记密码链接。...

    Android简单的注册登录页面ecplise开发

    在Android应用开发中,创建一个简单的注册登录页面是基础且重要...总的来说,这个教程涵盖了Android UI设计、网络请求、数据解析和基本的安全实践。通过这个项目,初学者能更好地理解Android应用的基本架构和工作原理。

    基于Android,简易QQ登陆注册页面.zip

    本教程将通过“基于Android,简易QQ登陆注册页面.zip”这个压缩包,向Android UI开发的初学者介绍如何构建一个基本的QQ登录页面。这个例子中,我们将使用Android Studio,它是Google官方推荐的Android应用程序开发...

    Android仿QQ微信开场导航以及登陆界面

    在Android开发领域中,创建仿QQ和微信的开场导航以及登录界面是一个常见的UI设计挑战。这个过程不仅涉及到对Android UI组件的深入了解,还需要掌握一定的动画效果实现方法。从给出的文件内容中,我们可以提炼出以下...

    Android代码-Android的待办事项APP

    这个待办事项应用的源代码提供了丰富的学习材料,涵盖了Android开发中的许多核心概念和技术,包括UI设计、数据持久化、网络通信、依赖注入以及测试策略。通过深入研究,开发者可以进一步提升自己的Android开发技能。

    个人资料页面设置

    综上所述,Android个人资料页面设置涉及到UI设计、数据存储、网络通信、图片处理、权限管理和兼容性等多个方面。开发者需要熟练掌握Android的相关技术,并根据具体需求进行灵活应用,才能打造出用户友好的个人资料...

    android 登陆、提交数据或加载数据时提示页面

    在Android应用开发中,用户界面(UI)的交互体验至关重要,尤其是涉及到登录、提交数据以及加载数据等操作。这些操作通常涉及到网络通信、数据持久化、异步处理等多个技术领域。下面将根据提供的标题和描述,详细...

    Android非常漂亮好看的登陆,注册界面!

    总的来说,创建一个"Android非常漂亮好看的登陆,注册界面"需要综合运用Android UI设计、布局管理、事件处理、网络编程、数据存储等多个方面的知识,同时注重用户体验和视觉美感。通过不断学习和实践,我们可以打造...

    Android漂亮好看的登陆,注册界面!程序源码

    程序源码"提供了一个实现精美登录和注册界面的实例,涵盖了Android UI设计、布局管理、动画应用、数据处理和网络通信等多个方面的知识点。通过学习和分析这个项目,开发者可以提升自己在Android应用开发中的界面设计...

    仿微信登陆(UI)

    通过以上步骤,开发者可以构建一个与微信登录界面相似的UI,同时学习到Android UI设计的基本原则和技巧。这个过程不仅有助于提高开发者的设计能力,还能为其他项目提供借鉴,实现更加美观且用户友好的界面。

    android-xperia:登陆页面

    在Android开发中,创建一个登陆页面是至关重要的,因为它为用户提供了一个安全的...通过深入研究和分析项目中的各个文件,开发者可以学习到Android UI设计、JavaScript与原生代码的交互以及设备适配等多个方面的知识。

    Android-大致实现了一个之前在Dribbble上看到的一个登陆注册的设计

    标题 "Android-大致实现了一个之前在Dribbble上看到的一个登陆...总之,这个项目是一个综合性的Android开发实践,涵盖了UI设计、用户交互、数据处理、网络通信等多个方面,对于提升Android开发者的综合技能非常有帮助。

Global site tag (gtag.js) - Google Analytics