第一章 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>

最后

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

相关推荐
折翅鵬8 小时前
Android史诗级网络优化实践总结
android·网络
马***4118 小时前
适配成人英语学习痛点,打造落地性强的学习辅助方式
人工智能·学习
赏金术士9 小时前
Android 项目模块化与 Feature 组件实践
android·kotlin·模块化
小拉达不是臭老鼠10 小时前
Unity学习_ScriptableObject
学习·unity
MartinYeung511 小时前
[论文学习]LLM 与其他 AI 模型的隐私考量:输入与输出隐私框架方法
人工智能·学习
(●—●)橘子……12 小时前
力扣第503场周赛练习理解
python·学习·算法·leetcode·职场和发展·周赛
AOwhisky13 小时前
MySQL 学习笔记(第一期):数据库基础与 MySQL 初探
运维·数据库·笔记·学习·mysql·云计算
summerkissyou198713 小时前
Android-UI-获取屏幕尺寸的方法
android·ui
用户860225046747214 小时前
Kotlin 函数式编程入门与实践指南
android
try2find14 小时前
Agent学习之补充my_plan_solve_agent
学习