第一章 Android初体验【Android基础学习】

第一章 Android初体验【Android基础学习】

  • 前言
  • 版权
  • 推荐
  • 开源
  • Android基础学习
  • [第一章 Android初体验](#第一章 Android初体验)
    • [1-1 Android开发概述](#1-1 Android开发概述)
    • [1-2 Android开发工具](#1-2 Android开发工具)
    • [1-3 第一个Android应用](#1-3 第一个Android应用)
  • 最后

前言

2024-5-29 21:41:04

以下内容源自《【Android】》
仅供学习交流使用

版权

禁止其他平台发布时删除以下此话
本文首次发布于CSDN平台
作者是CSDN@日星月云
博客主页是https://jsss-1.blog.csdn.net
禁止其他平台发布时删除以上此话

推荐

【天哥】Android开发视频教程最新版 Android Studio开发

图片资源来自:

https://github.com/jinjungle/skypan-yes-code

开源

日星月云 / 安卓基础学习https://gitee.com/jsss-1/android-basic-learning
jsss-1 / android-basic-learninghttps://github.com/jsss-1/android-basic-learning

Android基础学习

第一章 Android初体验

1-1 Android开发概述

  • Android是Google开发的操作系统
  • Android开发是移动应用开发的表现形式之一
    Android、iOs、H5 App、Native+H5、RN、ionic、MUI...

1-2 Android开发工具

Eclipse Android Studio

  • 下载安装JDK
  • 为什么使用Android Studio ?
    Android Studio是Google自己推出的Android集成开发工具
    且Google已经停止对Eclipse的支持。

1-3 第一个Android应用

运行第一个程序

java 复制代码
package com.example.helloworld;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}
xml 复制代码
<?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">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</LinearLayout>

最后

迎着日光月光星光,直面风霜雨霜雪霜。

相关推荐
sealaugh322 小时前
aws(学习笔记第四十八课) appsync-graphql-dynamodb
笔记·学习·aws
水木兰亭2 小时前
数据结构之——树及树的存储
数据结构·c++·学习·算法
鱼摆摆拜拜3 小时前
第 3 章:神经网络如何学习
人工智能·神经网络·学习
aha-凯心3 小时前
vben 之 axios 封装
前端·javascript·学习
恋猫de小郭4 小时前
Meta 宣布加入 Kotlin 基金会,将为 Kotlin 和 Android 生态提供全新支持
android·开发语言·ios·kotlin
aqi004 小时前
FFmpeg开发笔记(七十七)Android的开源音视频剪辑框架RxFFmpeg
android·ffmpeg·音视频·流媒体
androidwork6 小时前
深入解析内存抖动:定位与修复实战(Kotlin版)
android·kotlin
ytttr8736 小时前
matlab通过Q学习算法解决房间路径规划问题
学习·算法·matlab
梦天20156 小时前
android核心技术摘要
android
szhangbiao8 小时前
“开发板”类APP如果做屏幕适配
android