Android开发笔记百度云,安卓开发笔记 超详细 PDF 下载

andorid 开发第一大章节学习

控制 ui 界面

1. 使用 xml 控制

2. 在 Java 中控制

3. 使用 xml 和 Java

4. 开发自定义

锤子显示:android:orientation="vertical"

居中显示:

android:gravity="center"

只控制对应的组件:

android:gravity="center|button"

android:layout——weight 属性:

分配的是剩余空间:

案例:

android:orientation="horizontal"

app:layout_behavior="@string/appbar_scrolling_view_behavior">

android:layout_height="wrap_content"

android:text="按钮 11111"

android:layout_weight="2"

android:baselineAligned="false"/>

android:layout_height="wrap_content"

android:text="按钮 2"

android:layout_weight="1"

/>

微信登录示例:

EditText android:layout_width="match_parent"

android:layout_height="wrap_content"

android:paddingBottom="20dp"

android:hint="QQ 号/微信号/Email" 提示内容

android:drawableLeft="@mipmap/zhanghao" 左边的图片

/>

android:layout_height="wrap_content"

android:paddingBottom="20dp"

android:hint="密码"

android:drawableLeft="@mipmap/mima"

/>

android:layout_height="wrap_content"

android:text="登录"

android:textColor="#FFFFFF" 白色

android:background="#FF009688"

/>

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_gravity="center_horizontal"

android:paddingTop="20dp"

android:text="登录遇到问题?"

app:layout_constraintBottom_toBottomOf="parent"

app:layout_constraintLeft_toLeftOf="parent"

app:layout_constraintRight_toRightOf="parent"

app:layout_constraintTop_toTopOf="parent"/>

帧布局管理器:

Foreground:导入 图片

foregroundGravity:位置控制

-->

xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"

xmlns:app="http://schemas.android.com/apk/res-auto"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:foreground="@mipmap/mr"

android:foregroundGravity="right|bottom"

tools:context=".MainActivity">

android:background="#FF0000"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="Hello World!World"

/>

android:background="#FFFF00"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="Hello World!"

/>

网格布局:

拉长

android:stretchColumns="1"

xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"

xmlns:app="http://schemas.android.com/apk/res-auto"

android:layout_width="match_parent"

android:layout_height="match_parent"

tools:context=".MainActivity">

android:layout_height="wrap_content"

android:text="按钮 1">

android:layout_height="wrap_content"

android:text="按钮 2">

android:layout_height="wrap_content"

android:text="按钮 3">

android:layout_height="wrap_content"

android:text="按钮 4">

android:layout_height="wrap_content"

android:text="按钮 5">

android:layout_height="wrap_content"

android:text="按钮 6">

android:layout_height="wrap_content"

android:text="按钮 6">

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="Hello World!"

app:layout_constraintBottom_toBottomOf="parent"

app:layout_constraintLeft_toLeftOf="parent"

app:layout_constraintRight_toRightOf="parent"

app:layout_constraintTop_toTopOf="parent"/>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Android 是Google开发的基于Linux平台的开源手机操作系统。它包括操作系统、用户界面和应用程序—— 移动电话工作所需的全部软件,而且不存在任何以往阻碍移动产业创新的专有权障碍。 Android以Java为编程语言,使接口到功能,都有层出不穷的变化,其中Activity等同于J2ME的MIDlet,一个 Activity 类(class)负责创建视窗(window),一个活动中的Activity就是在 foreground(前景)模式,背景运行的程序叫做Service。两者之间通过由ServiceConnection和AIDL连结,达到复数程序同时运行的效果。 Android基础阶段:平台架构特性(JAVA/C) Market/应用程序组件 环境搭建与部署/打包与发布 AVD/DDMS/AAPT 调试与测试 相关资源访问/资源制作 Activity/Service/Broadcast Receiver/Content Provider/原理(生命周期)及深层实现. Android进阶初级:组件Widget/ 菜单Menu/ 布局Layout 详解 Xml解析(Pull/Dom/Sax)/JNI 解析SQL数据库原理, SQLit e /SharedPreferences/File详解 多媒体Audio/Video/Camera 详解 Android进阶高级:蓝牙/WIFI SMS/MMS 应用实现 深层次解析GPS原理,实现LocationManager/LocationProvider 进行定位/跟踪/查找/趋近警告以及Geocoder正逆向编解码等技术细节 2D图形库(Graphics/View)详解 SDCARD/传感器/手势 应用实现 《老罗Android视频教程(第一季)》的视频一共分为15个章节, 涵盖了Android入门、常用UI布局介绍、HTTP编程、 XML与Json数据解析、JDBC与Web编程、常用UI控件、 数据储存与文件操作、对话框、通知、菜单、 LoaderManager异步加载、多线程(AsyncTask与Handler)、 百度地图等十五个模块,一共102集。 本网盘分享章节编号是按照视频更新的先后顺序编号的,具体学习可参考如下章节顺序: 【第一版第一章】老罗Android开发视频--入门介绍(9集) 【第一版第二章】老罗Android开发视频--常用UI布局介绍(5集) 【第一版第三章】老罗Android开发视频--HTTP协议编程(4集) 【第一版第四章】老罗Android开发视频--解析XML数据(3集) 【第一版第五章】老罗Android开发视频--解析JSON数据(4集) 【第一版第六章】老罗Android开发视频--服务器端JDBC编程(2集) 【第一版第七章】老罗Android开发视频--服务器端Web编程(6集) 【第一版第八章】老罗Android开发视频-常用UI控件(33集) 【第一版第九章】老罗Android开发视频--存储数据和文件(7集) 【第一版第十章】老罗Android开发视频--对话框介绍(4集) 【第一版第十一章】老罗Android开发视频--通知的使用(2集) 【第一版第十二章】老罗Android开发视频--菜单的使用(4集) 【第一版第十三章】老罗Android开发视频--异步加载数据库(2集) 【第一版第十四章】老罗Android开发视频--多线程编程(7集) 【第一版第十五章】老罗Android开发视频--百度地图实战开发(10集)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值