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

最后

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

相关推荐
旺仔学长 哈哈1 小时前
55384 消防安全教育与逃生演练小程序:知识学习、案例浏览和在线演练一站式实现
学习·小程序·消防教育·逃生演练
今夜有雨.1 小时前
C++JSON 解析器
c++·笔记·后端·学习·json
我命由我123451 小时前
Android 在构建过程中,发现有两个依赖库都包含了相同路径的资源文件
android·java·开发语言·java-ee·kotlin·android-studio·android runtime
Mr+范1 小时前
电源诱骗芯片CH224K
单片机·学习
Coffeeee2 小时前
谷歌的一个优化建议,让我重新学了一遍Android里面如何正确处理位图
android·google·kotlin
幸福在路上wellbeing2 小时前
AI 智能体开发 · Day 1 详细学习手册
人工智能·学习
xian_wwq2 小时前
【学习笔记】框架层坍缩——LangChain 们正在被重新定义-14/15
笔记·学习·langchain
冰暮流星2 小时前
mysql之新建表及对表的查询
android·数据库·mysql
用户2018792831672 小时前
彻底搞懂LayoutInflater、ViewInflater与textViewStyle优先级:XML属性为何能覆盖全局样式?
android
吃好睡好便好2 小时前
Creo中工作目录的设置
学习·creo·工作目录