Giter Site home page Giter Site logo

top.kagurayayoi.learn.android's Introduction

top.kagurayayoi.learn.Android

本人的Android开发学习记录
详见Project/Android_Learn

Develop Environment

IDE: Android Studio 4.1.3
Language: Java
Device: Huawei Mate7 CL00
Minimum SDK : API 16 : Android 4.1

top.kagurayayoi.learn.android's People

Contributors

fjaxzhy avatar

Stargazers

SakuraiCora avatar

Watchers

 avatar

top.kagurayayoi.learn.android's Issues

使用TextView

Book : 第三章 UI开发

3.2.1 TextView

main/useTextView

销毁一个活动

Book:第二章 第二节
2.2.7 销毁一个活动

main/FinishActivity

使用Button

Book : 第三章 UI开发

3.2.2 Button

main/useButton

活动的基本用法

Book:第二章 第二节 活动的基本用法
2.2.1 手动创建活动
2.2.2 创建和加载布局
2.2.3 在AndroidManifest文件中注册活动
2.2.4 隐藏标题栏(已不适应

main/CreateActivity

使用ImageView

Book : 第三章 UI开发

3.2.4 ImageView

main/useImageView

singleTop模式还是会创建新的活动实例

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.SingleTop"
        android:launchMode="singleTop" >
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.e("MainActivity",this.toString());
        // E/MainActivity: top.kagurayayoi.learn.android.singletop.MainActivity
        // singleTop模式时 当活动位于返回栈顶时 不会创建新的活动实例
        // !Bug
        setContentView(R.layout.activity_main);
        Button button = findViewById(R.id.button);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,MainActivity.class);
                startActivity(intent);
            }
        });
    }

main/singleTop

活动的启动模式

Book: 第二章 第五节 活动的启动模式
2.5.1 standard
2.5.2 singleTop
2.5.3 singleTask
2.5.4 singleInstance

main/StartupMode

显式/隐式Intent

Book: 第二章 第三节
2.3.1 使用显式Intent
2.3.2 使用隐式Intent

main/Intent

探究活动 Activity

Book : 第二章 探究活动

main/CreateActivity
main/useMenu
main/useToast
mian/Intent
main/transferIntent
mian/returnIntent
mian/LifeCycle

Menu的使用

Book:第二章 第二节 活动的基本用法
2.2.6 在活动中使用Menu

main/UseMenu

Intent的传参和返回

Book: 第二章 第三节 使用Intent
2.3.4 向下一个活动传递数据
2.3.5 返回数据给上一个活动

main/transferIntent
main/returnIntent

使用ListView

Book : 第三章 UI开发
3.5 ListView

main/useListView

UI开发 探究 控件&布局

Book : 第三章 UI开发

main/useTextView
main/useButton
main/useEditText
main/useImageView
main/useProgeessBar
main/useAlertDialog

mian/useLinearLayout
main/useRelativeLayout
main/useFrameLayout
main/useTableLayout

main/importLayout
main/CreateCustomControl

main/useListView

main/UnitandSize

Toast的使用

Book:第二章 第二节 活动的基本用法
2.2.5 在活动中使用Toast

main/UseToast

#Hello World!

First Android Application

main/HelloWorld
Book/1.3

活动的生命周期

Book: 第二章 第四节 活动的生命周期
2.4.1 返回栈
2.4.2 活动状态
2.4.3 生存期
2.4.4 体验(代码部分
2.4.5 活动被回收了怎么办

main/Lifecycle

使用EditText

Book : 第三章 UI开发

3.2.3 EditText

main/useEditText

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.