Android studio 001 LinerLayout
程序员文章站
2022-05-31 11:50:25
...
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 13 12:52:17 2019
QQ群:476842922(欢迎加群讨论学习)
@author: Administrator
"""
<?xml version="1.0" encoding="utf-8"?>
<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">
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
tools:layout_editor_absoluteX="65dp"
tools:layout_editor_absoluteY="320dp" />
</LinearLayout>
android:id 标识符
layout 布局
margin 外边距
padding 设置所有内边距属性
orientation 方向
上一篇: 小白的网页设计学习之路-001
推荐阅读
-
Android Studio 基础之获取Wifi 的状态,设置 Wifi 的开关状态,并监听 Wifi 的状态变化方法整理
-
Android Studio 断网异常
-
解决Android Studio4.1没有Gsonfomat插件,Plugin “GsonFormat” is incompatible的问题
-
解决Android Studio4.0:Could not find com.android.tools.build:gradle:5.1.1. Searched in the following
-
【Android开发】Android Studio 打开AVD遇到的问题
-
Android学习笔记(Android Studio) 4-2-1~2 Fragment详解(一、二)(不可不会的Activity和Fragment)
-
Android Studio adb无法正常启动和真机调试遇见得问题
-
Android学习笔记(Android Studio) 4-1-2 Activity的生命周期(不可不会的Activity和Fragment)
-
Android学习笔记(Android Studio) 7-1 SharedPreferences 轻量数据存储(数据存储)
-
android studio 3.0.1依赖butterknife报错问题解决办法以及androidstudio2.0和3.0以上butterknife的配置大全