JAVA日报

从零开始的体温app开发(初识布局)

LinearLayout 线性布局
ScrollView 滑动布局
此两种布局比较常用
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
</LinearLayout>
<ScrollView 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"
android:orientation="vertical"
tools:context=".MainActivity">
</ScrollView>
原文地址:https://www.cnblogs.com/mumulailai/p/14906132.html