Loading

今日报告-03-外加今日学习总结

所花时间(包括上课):4h      

代码量(行):70

发表博客:3篇(包括本篇,2.21有一条超过十点的博客我也算进来了) 

了解到的知识点:Android Studio的安装使用,Genymotion虚拟机的安装使用,github 和git

今天的时间除了看教程,主要的时间花在了Android Studio Genymotion git 这些东西的安装配置了(感觉时间有点浪费?这些东西其实早就应该弄好的)

 

2.23日的补充:补充说明一下,开始的软件工程日报我以为是要和具体的知识写在一篇博客里,后来意识到并不是,

之后会改,这几篇就没办法了,此外,除去前三篇,我每日打卡的博客数量统计就不包括打卡的那篇博客了。

 

今天晚上这几个小时我一直在看安卓入门的教程。现在才开始学习安卓,今天知识点太多难以一下吸收,还是要慢慢来。

首先我决定这两个星期完成一个简单的实现连接数据库并能够添加数据的安卓程序。

出于时间和效率等因素的考量,界面设计知识点多但杂,但是却实际上比较简单易学,我决定先把与连接数据库核心搞明白,这些知识点先浏览一下,到时候用到在查。

我先熟悉了安卓一般XML的写法,下面是来自教程的一段代码,很简单

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="fill_parent" 
              android:layout_height="fill_parent"
              android:orientation="vertical" >
    <TextView android:id="@+id/text"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="I am a TextView" />
    <Button android:id="@+id/button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="I am a Button" />
</LinearLayout>

熟悉下文本框的写法,这段代码也来自教程

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity"
    android:gravity="center"
    android:background="#8fffad">

    <TextView
        android:id="@+id/txtOne"
        android:layout_width="200dp"
        android:layout_height="200dp"
        android:gravity="center"
        android:text="TextView(显示框)"
        android:textColor="#EA5246"
        android:textStyle="bold|italic"
        android:background="#000000"
        android:textSize="18sp" />

</RelativeLayout>

android studio还需要安装一些插件等问题,我就不把东西全写在一篇博客里了。。。

今天先安装一个Genymotion虚拟机,日后用起来更加方便

首先去官网下载:点第二个有vbox的版本

然后是简单的安装步骤

 

注册并登录进入主页面

 

 

新建一个虚拟设备

 

 

 等待安装完毕

 

 

 

 

 如果出现报错打不开的问题参见这篇文章:https://blog.csdn.net/qq_43967413/article/details/122353644

 

 我最终成功打开了

posted @ 2023-02-22 20:30  冰稀饭Aurora  阅读(13)  评论(0编辑  收藏  举报