Android Studio学习笔记
2023-09-11 14:16:58 时间
布局
- 线性布局
- 相对布局
线性布局
- id
- Layout_width
- Layout_height
- background
- Layout_margin:外部边
- Layout_padding:内部边距
- Orientation:方向-横着还是数着
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<!--自动生成的是:androidx.constraintlayout.widget.ConstraintLayout约束性布局:不是很利于团队开发-->
<!--LinearLayout:线性布局 现在先用这个-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<!-- 里面有一个文本控件TextView-->
<TextView
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" />
<!--里面的内容是Hello World!-->
</LinearLayout>
相关文章
- [Android Studio] Android studio 多渠道打包(超简洁版)
- Android应用签名
- Android开发之旅:应用程序基础及组件
- android studio 学习进阶
- Android studio 提示“android qemu-system-i386.exe停止工作”
- Android开发学习---使用Intelij idea 13.1 进行android 开发
- 1、Android Studio集成极光推送(Jpush) 报错 java.lang.UnsatisfiedLinkError: cn.jpush.android.service.PushProtoco
- Android中由Handler和内部类引起的内存泄漏
- 【VLC-Android】vlc-android简例
- macos安装android studio(Android Studio 2021.1.1)
- Android studio中 android-support-v4报错问题
- Android Studio / IDEA 中.android 文件夹移动出默认位置
- Android Studio -导入项目 gradle处理
- Android问题笔记 - 实战解决Studio出现Direct local .aar file dependencies are not supported when building an AAR
- Android问题笔记 - 打开Android Studio先弹出项目选择框
- 《Android高级进阶》— Android 书籍
- Android源码中com.android.support依赖迁移到AndroidX库
- Android Studio的Project Structure的左侧选中“app”时,不小心删除红色的减号,怎么办
- android 10 launcher3 workspace 第一页去掉长按事件
- Android Studio couldn‘t generate bytecode view, no .class file found
- 【错误记录】Android Studio 编译时 lint 检查报错 ( WARNING: DSL element ‘android.dataBinding.enabled‘ is obsolet )
- 【Android 安全】DEX 加密 ( Application 替换 | Android 应用启动原理 )
- 【Android 应用开发】Android 开发环境下载地址 -- 百度网盘 adt-bundle android-studio sdk adt 下载
- Android相关属性的介绍:android:exported = true
- android怎样写一个循环文字滚动的TextView
- Android Studio添加文件注释头模板?
- Android Studio自动生成UML关系类图
- 导入eclipse工程到Android Studio中
- 解决Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse问题
- Android studio 自定义打包apk名
- 如何将Eclipse中的项目迁移到Android Studio 中
- 超全Android零基础学习笔记(Android Studio安装教程+全套视频资料)
- (Mac Android Studio)Unable to connect to ADB.Check the Event Log for possible issues.Verify that you
- android studio ndk笔记