用Android studio 做出QQ登录界面
1.布局界面代码如下:
<?xml version="1.0" encoding="utf-8"?>
<ImageViewandroid:id="@+id/iv"android:layout_width="70dp"android:layout_height="70dp"android:layout_centerHorizontal="true"android:layout_marginTop="40dp"app:srcCompat="@drawable/qq" /><LinearLayoutandroid:id="@+id/ll_number"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_below="@+id/iv"android:layout_centerHorizontal="true"android:layout_marginTop="15dp"android:layout_marginRight="10dp"android:layout_marginLeft="10dp"android:layout_marginBottom="5dp"android:background="#FFFFFF"android:orientation="horizontal"><TextViewandroid:id="@+id/tv_number"android:layout_width="wrap_content"android:layout_height="wrap_content"android:textSize="20sp"android:textColor="#000000"android:padding="10dp"android:text="账号" /><EditTextandroid:id="@+id/ed_number"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_marginLeft="5dp"android:background="@null"android:padding="10dp"/>
</LinearLayout>
<LinearLayoutandroid:id="@+id/ll_password"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_below="@+id/ll_number"android:layout_centerHorizontal="true"android:layout_marginRight="10dp"android:layout_marginLeft="10dp"android:background="#FFFFFF"android:orientation="horizontal"><TextViewandroid:id="@+id/tv_password"android:layout_width="wrap_content"android:layout_height="wrap_content"android:textSize="20sp"android:textColor="#000000"android:padding="10dp"android:text="密码" /><EditTextandroid:id="@+id/ed_password"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_marginLeft="5dp"android:background="@null"android:padding="10dp"/>
</LinearLayout><Buttonandroid:id="@+id/btn_login"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_below="@+id/ll_password"android:layout_centerHorizontal="true"android:layout_marginTop="50dp"android:layout_marginLeft="10dp"android:layout_marginRight="10dp"android:background="#3C8DC4"android:textColor="#000000"android:textSize="20sp"android:text="登录" />
2.效果图
用Android studio 做出QQ登录界面相关推荐
- Android studio制作QQ登录界面
(1)需要一张图片作为QQ头像,因此先找一张图片(png格式)放到drawable文件夹中. (2)分析界面组成部分,整体来看界面分三个部分 第一部分:放置一个lmageView控件用于 显示头像: ...
- android studio 微信登录界面,如何使用Android Studio开发用户登录界面
满意答案 zhou9081 2016.05.21 采纳率:51% 等级:7 已帮助:411人 如何使用Android Studio开发用户登录界面,具体解决方案如下: 解决方案1: <:t ...
- Android studio设计app登录界面
Android studio设计app登录界面 UI界面设计 在设计登录界面时,可以使用不同布局方式来实现该功能,通常情况下使用的是LinearLayout(线性布局)和TableLayout(表格布 ...
- Android实现仿QQ登录界面背景动画效果
登录QQ的时候,我们会看到在登录界面的背景不是静态的,而是一段动画效果,刚开始觉得蛮好奇的,现在我们也来实现一下这种效果,实现起来还是挺简单的. 实现步骤: 1.自定义CustomVideoView类 ...
- Android UI布局—— 仿QQ登录界面
最近,有点空闲的时间就拿QQ登录界面来模仿练手,做了个简单的登录界面.界面一般般吧,不算很漂亮,现在拿出来分享,希望大家一起学习与进步.有什么不足之处,请各位大侠多多赐教,谢谢.这个界面涉及到Line ...
- 【Android笔记12】使用Android实现QQ登录界面功能
这篇文章,主要利用前面学习的Android相关开发知识,模拟实现QQ登录界面的功能. 目录 一.效果展示 (1)登录界面布局分析 (2)具体实现效果 二.
- Android 模仿QQ登录界面解决软键盘遮挡问题
Android 软件盘弹出可能会遮挡住界面上的某些控件.当 windowSoftInputMode 为 adjustPan 时,一般不会挡住 EditText,但是假如 EditText 下面是一个登 ...
- 用combobox扩展控件(dsCtrlComboBox)做出类似QQ登录界面的效果
原文地址:http://www.uieasy.cn/blog/?p=513 传统的combobox 在使用方面有很多限制,很难满足我们combobox类型控件的需求.主要表现中combobox内置的l ...
- android 实现仿QQ登录可编辑下拉菜单
今天,简单讲讲android里如何实现向QQ一样的登录后记住用户名的下拉框. 这个其实也很简单,网上搜索了一下,很多相关的资料,基本都是PopupWindow+ListView的方式,实现起来比较灵活 ...
- Android实现仿QQ登录可编辑下拉菜单
Android实现仿QQ登录可编辑下拉菜单 在Android里,直接提供的Spinner控件虽然可以实现下拉菜单的效果,但其效果并不理想,很多时候我们需要类似手机QQ那样既可以在文本框中直接输入编辑文 ...
最新文章
- Linux下使用mv重命名文件或者移动文件(增强版的工具为rename)
- navicat连接云数据库报错2003,2005
- 测试接口时使用PostMan怎么设置全局变量?
- dfs解决选或不选问题
- php echarts 两条曲线图,使用laravel和ECharts实现折线图效果的例子
- Java编码规范,在您进行编码之前应该阅读的规范
- linux关闭4750 端口,【ubuntu分享帖】acer 4750G ubuntu安装后的一些设置
- 从把事做对到做对的事
- 最全总结,GitHub Action自动化部署
- Oracle(二)单行函数
- stringstream 字符串的格式化数据提取
- Android BT种子文件解析
- python isupper_Python isupper()函数判断字符串字符是否都为大写形式
- 智齿科技携手无忧我房 VR+AI新品亮相GTC
- 开展软件测试的目标和目的究竟是什么?
- 通过 debug 检测屏幕颜色显示坏点、低格硬盘等等技巧
- Java设计模式入门
- 【02月25日】【精彩电影合集】【15部】【亲测】【Lsyq5647发布】
- 视频文件M3U8和TS格式切片,讨论一下?
- MATLAB航空发动机装配,航空发动机在MATLAB与C++接口支持下的建模方法