国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Android記事本

這篇具有很好參考價(jià)值的文章主要介紹了Android記事本。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

1、項(xiàng)目需求分析

1.1、記事功能需求分析:

1.1.1、顯示記事

用戶打開記事本可以看到之前所寫的所有記事內(nèi)容,進(jìn)入主頁后,軟件應(yīng)該從數(shù)據(jù)庫中搜索出該用戶所寫的全部記事,并將所有的數(shù)據(jù)進(jìn)行顯示。

1.1.2、添加記事

設(shè)置添加按鈕,點(diǎn)擊添加按鈕之后可以編輯記事的標(biāo)題和內(nèi)容。

1.1.3、編輯記事

在主界面的記事列表中,點(diǎn)擊一條記事,能夠進(jìn)行編輯,包括更改記事和刪除記事。

1.1.4、查詢記事

在主界面中設(shè)置查詢功能,使用戶可以通過對(duì)標(biāo)題進(jìn)行模糊查詢。

1.2、賬戶管理

為了保護(hù)用戶的隱私,在使用記事本時(shí)首先需要進(jìn)行用戶的登錄,在登錄賬號(hào)之后才可以使用記事本的功能。

1.2.1、注冊賬號(hào)

使用記事本功能首先需要進(jìn)行用戶的注冊,在注冊過程中應(yīng)注意用戶名以及密碼的正確輸入才可注冊成功。

1.2.2、登錄

登錄時(shí)需要對(duì)賬號(hào)以及密碼進(jìn)行檢測,如果賬號(hào)密碼正確即可進(jìn)入記事本頁面,使用記事本功能。

1.3、數(shù)據(jù)庫需求分析

在該項(xiàng)目中使用了兩個(gè)數(shù)據(jù)庫表,分別為存儲(chǔ)用戶信息的users表以及存儲(chǔ)記事本內(nèi)容的note表。

1.4、界面需求分析

在該項(xiàng)目中,一個(gè)有六個(gè)頁面,分別是用戶界面activity_user、注冊頁面activity_register、記事本主頁面activity_main、添加頁面activity_add、編輯頁面activity_edit、刪除頁面List_item_dialog。

總體布局以及背景色調(diào)使用簡約風(fēng)格。

2項(xiàng)目的設(shè)計(jì)

2.1、注冊功能

android實(shí)現(xiàn)記事本功能,android

圖 1 注冊功能

2.2、登錄功能

?

android實(shí)現(xiàn)記事本功能,android

圖 2 登錄功能

2.3、記事功能

android實(shí)現(xiàn)記事本功能,android

圖 3 記事功能

3關(guān)鍵的代碼

3.1、頁面代碼(部分)

3.1.1、用戶界面activity_user.xml

<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"

????android:orientation="vertical">

????<androidx.appcompat.widget.Toolbar

????????android:id="@+id/toolbar"

????????android:layout_width="match_parent"

????????android:layout_height="?attr/actionBarSize"

????????android:background="?attr/colorPrimary"

????????android:elevation="4dp"

????????app:popupTheme="@style/ThemeOverlay.AppCompat.Light"

????????app:title="@string/app_name">

????</androidx.appcompat.widget.Toolbar>

????<LinearLayout

????????android:layout_width="match_parent"

????????android:layout_height="wrap_content"

????????android:orientation="horizontal"

????????android:layout_marginLeft="20dp"

????????android:layout_marginRight="20dp"

????????android:layout_marginTop="40dp"

????????android:gravity="center_vertical"

????????>

????????<TextView

????????????android:layout_width="wrap_content"

????????????android:layout_height="wrap_content"

????????????android:text="賬號(hào):"

????????????android:textSize="25sp"

????????????/>

????????<EditText

????????????android:id="@+id/et_account"

????????????android:layout_width="match_parent"

????????????android:hint="請(qǐng)輸入用戶名或手機(jī)號(hào)"

????????????android:layout_marginLeft="10dp"

????????????style="@style/MyEditStyle"

????????????android:inputType="text"

????????????/>

????</LinearLayout>

????<LinearLayout

????????android:layout_width="match_parent"

????????android:layout_height="wrap_content"

????????android:orientation="horizontal"

????????android:layout_marginLeft="20dp"

????????android:layout_marginRight="20dp"

????????android:layout_marginTop="20dp"

????????android:gravity="center_vertical"

????????>

????????<TextView

????????????android:layout_width="wrap_content"

????????????android:layout_height="wrap_content"

????????????android:text="密碼:"

????????????android:textSize="25sp"

????????????/>

????????<EditText

????????????android:id="@+id/et_password"

????????????android:layout_width="match_parent"

????????????android:layout_height="50dp"

????????????android:hint="請(qǐng)輸入密碼"

????????????android:textSize="18sp"

????????????android:layout_marginLeft="10dp"

????????????android:paddingLeft="5dp"

????????????android:inputType="numberPassword"

????????????android:background="@drawable/edit_text_bg"

????????????/>

????</LinearLayout>

????<LinearLayout

????????android:layout_width="match_parent"

????????android:layout_height="wrap_content"

????????android:orientation="horizontal"

????????android:gravity="center"

????????android:layout_marginTop="20dp"

????????android:layout_marginLeft="20dp"

????????android:layout_marginRight="20dp"

????????>

????????<CheckBox

????????????android:layout_width="wrap_content"

????????????android:layout_height="wrap_content"

????????????android:text="記住密碼"

????????????/>

????????<CheckBox

????????????android:layout_width="wrap_content"

????????????android:layout_height="wrap_content"

????????????android:text="自動(dòng)登錄"

????????????android:layout_marginLeft="40dp"

????????????/>

????</LinearLayout>

????<Button

????????style="@style/MyBtnStyle"

????????android:id="@+id/btn_login"

????????android:layout_width="match_parent"

????????android:layout_height="wrap_content"

????????android:text="登錄"

????????/>

????<Button

????????style="@style/MyBtnStyle"

????????android:id="@+id/btn_register"

????????android:layout_width="match_parent"

????????android:layout_height="wrap_content"

????????android:text="注冊"

????????/>

????<TextView

????????android:layout_width="wrap_content"

????????android:layout_height="wrap_content"

????????android:textColor="@color/colorPrimary"

????????android:text="還沒有賬號(hào)?"

????????android:layout_gravity="right"

????????android:layout_marginRight="20dp"

????????android:layout_marginTop="10dp"

????????/>

</LinearLayout>

3.1.2、記事本頁面activity.main.xml

<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"

????android:orientation="vertical">

????<androidx.appcompat.widget.Toolbar

????????android:id="@+id/toolbar"

????????android:layout_width="match_parent"

????????android:layout_height="?attr/actionBarSize"

????????android:background="?attr/colorPrimary"

????????android:elevation="4dp"

????????app:popupTheme="@style/ThemeOverlay.AppCompat.Light"

????????app:title="@string/app_name">

????</androidx.appcompat.widget.Toolbar>

????<FrameLayout

????????android:layout_width="match_parent"

????????android:layout_height="match_parent">

????????<androidx.recyclerview.widget.RecyclerView

????????????android:layout_width="match_parent"

????????????android:layout_height="match_parent"

????????????android:id="@+id/rlv"/>

???<com.google.android.material.floatingactionbutton.FloatingActionButton

????????????android:layout_width="wrap_content"

????????????android:layout_height="wrap_content"

????????????android:src="@android:drawable/ic_input_add"

????????????android:layout_gravity="right|bottom"

????????????android:layout_margin="20dp"

????????????android:onClick="add"

????????????/>

????</FrameLayout>

</LinearLayout>

3.1.3、注冊頁面activity_register.xml

<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=".RegisterActivity"

????android:orientation="vertical">

????<androidx.appcompat.widget.Toolbar

????????android:id="@+id/toolbar"

????????android:layout_width="match_parent"

????????android:layout_height="?attr/actionBarSize"

????????android:background="?attr/colorPrimary"

????????android:elevation="4dp"

????????app:popupTheme="@style/ThemeOverlay.AppCompat.Light"

????????app:title="@string/app_name">

????</androidx.appcompat.widget.Toolbar>

????<LinearLayout

????????android:layout_width="match_parent"

????????android:layout_height="wrap_content"

????????android:layout_marginLeft="20dp"

????????android:layout_marginTop="40dp"

????????android:layout_marginRight="20dp"

????????android:gravity="center_vertical"

????????android:orientation="horizontal">

????????<TextView

????????????android:layout_width="wrap_content"

????????????android:layout_height="wrap_content"

????????????android:text="賬 號(hào):"

????????????android:textSize="25sp" />

????????<EditText

????????????android:id="@+id/et_account1"

????????????style="@style/MyEditStyle"

????????????android:layout_width="match_parent"

????????????android:layout_marginLeft="10dp"

????????????android:hint="請(qǐng)輸入用戶名"

????????????android:inputType="text" />

????</LinearLayout>

????<LinearLayout

????????android:layout_width="match_parent"

????????android:layout_height="wrap_content"

????????android:layout_marginLeft="20dp"

????????android:layout_marginTop="20dp"

????????android:layout_marginRight="20dp"

????????android:gravity="center_vertical"

????????android:orientation="horizontal">

????????<TextView

????????????android:layout_width="wrap_content"

????????????android:layout_height="wrap_content"

????????????android:text="密 碼:"

????????????android:textSize="25sp"

????????????/>

????????<EditText

????????????android:id="@+id/et_password1"

????????????style="@style/MyEditStyle"

????????????android:layout_width="match_parent"

????????????android:layout_marginLeft="10dp"

????????????android:hint="請(qǐng)輸入密碼"

????????????android:inputType="numberPassword" />

????</LinearLayout>

????<LinearLayout

????????android:layout_width="match_parent"

????????android:layout_height="wrap_content"

????????android:layout_marginLeft="20dp"

????????android:layout_marginTop="20dp"

????????android:layout_marginRight="20dp"

????????android:gravity="center_vertical"

????????android:orientation="horizontal">

????</LinearLayout>

????<Button

????????android:id="@+id/btn_register1"

????????style="@style/MyBtnStyle"

????????android:layout_width="match_parent"

????????android:layout_height="wrap_content"

????????android:text="注冊"

????????android:onClick="register"

????????/>

????<CheckBox

????????android:id="@+id/cb_agree"

????????android:layout_width="wrap_content"

????????android:layout_height="wrap_content"

????????android:layout_gravity="left"

????????android:layout_marginLeft="20dp"

????????android:layout_marginTop="10dp"

????????android:text="還沒有賬號(hào)?"

????????android:textColor="@color/colorPrimary" />

</LinearLayout>

3.2、實(shí)現(xiàn)類代碼(部分)

3.2.1、用戶登錄類UserActivity.java

package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.annotation.SuppressLint;

import android.content.Intent;

import android.os.Bundle;

import android.util.Log;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.Toast;

public class UserActivity extends AppCompatActivity implements View.OnClickListener {

????private Button login,register;

????private EditText name,password;

????private UserDbHelper userDbHelper;

????@Override

????protected void onCreate(Bundle savedInstanceState) {

????????super.onCreate(savedInstanceState);

????????setContentView(R.layout.activity_user);

????????userDbHelper = new UserDbHelper(this);

????????find();

????}

????private void find(){

????????login = findViewById(R.id.btn_login);

????????register = findViewById(R.id.btn_register);

????????name = findViewById(R.id.et_account);

????????password = findViewById(R.id.et_password);

????????login.setOnClickListener(this);

????????register.setOnClickListener(this);

????}

????@Override

????public void onClick(View view) {

????????int id = view.getId();

????????if (id == R.id.btn_login){

????????????String s = name.getText().toString();

????????????String s1 = password.getText().toString();

????????????????boolean login = userDbHelper.login(s,s1);

????????????????if (login) {

????????????????????Toast.makeText(this, "登陸成功!", Toast.LENGTH_SHORT).show();

????????????????????Intent i = new Intent(this, MainActivity.class);

????????????????????startActivity(i);

????????????????}else {

????????????????????Toast.makeText(this, "登陸失??!", Toast.LENGTH_SHORT).show();

????????????????}

????????}else if (id == R.id.btn_register){

????????????Intent i1 = new Intent(this,RegisterActivity.class);

????????????????startActivity(i1);

????????}

????}

}

3.2.2、記事本主頁面MainActivity.java,在activity首先創(chuàng)建出來的時(shí)候,先進(jìn)行onCreate方法,調(diào)用initData方法,調(diào)用之后會(huì)在數(shù)據(jù)庫中查詢數(shù)據(jù);查詢完數(shù)據(jù)之后,在調(diào)用initEvent方法,將數(shù)據(jù)存放渲染列表;接下來調(diào)用onResume方法,在refreshDataFromDb刷新數(shù)據(jù)庫之后進(jìn)行數(shù)據(jù)庫查詢;最后調(diào)用initEvent方法,渲染一個(gè)空的列表,重新進(jìn)行上述過程。

package com.example.myapplication;

import androidx.annotation.NonNull;

import androidx.appcompat.app.AppCompatActivity;

import androidx.appcompat.widget.SearchView;

import androidx.appcompat.widget.Toolbar;

import androidx.recyclerview.widget.LinearLayoutManager;

import androidx.recyclerview.widget.RecyclerView;

import android.content.Intent;

import android.os.Bundle;

import android.view.Menu;

import android.view.MenuItem;

import android.view.View;

import android.widget.LinearLayout;

import com.example.myapplication.adaper.MyAdapter;

import com.example.myapplication.bean.Note;

import com.google.android.material.floatingactionbutton.FloatingActionButton;

import java.text.SimpleDateFormat;

import java.util.ArrayList;

import java.util.Date;

import java.util.List;

public class MainActivity extends AppCompatActivity {

????private RecyclerView mRecyclerView;

????private FloatingActionButton mBtnAdd;

????private List<Note> mNotes;

????private MyAdapter mMyAdapter;

????private NoteDbOpenHelper mNoteDbOpenHelper;

????@Override

????protected void onCreate(Bundle savedInstanceState) {

????????super.onCreate(savedInstanceState);

????????setContentView(R.layout.activity_main);

????????Toolbar toolbar = findViewById(R.id.toolbar);

????????// 設(shè)置Toolbar為ActionBar

????????setSupportActionBar(toolbar);

????????initView();

????????initData();

????????initEvent();

????}

????protected void onResume(){

????????super.onResume();

????????refreshDataFromDb();

????}

????//重新拿到數(shù)據(jù)庫中的信息

????private void refreshDataFromDb() {

????????mNotes = getDataFromDB();

????????mMyAdapter.refreshData(mNotes);

????}

????private void initEvent() {

????????mMyAdapter = new MyAdapter(this,mNotes);

????????mRecyclerView.setAdapter(mMyAdapter);

????????LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);

????????mRecyclerView.setLayoutManager(linearLayoutManager);

????}

????private void initData() {

????????mNotes = new ArrayList<>();

????????mNoteDbOpenHelper = new NoteDbOpenHelper(this);

????}

????private List<Note> getDataFromDB() ?{

????????return mNoteDbOpenHelper.queryAllFromDb();

????}

????private String getCurrentTimeFormat(){

????????SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy年MM月dd HH:mm:ss");

????????Date date = new Date();

????????return simpleDateFormat.format(date);

????}

????private void initView(){

????????mRecyclerView = findViewById(R.id.rlv);

????}

????public void add(View view) {

????????Intent intent =new ?Intent(this,AddActivity.class);

????????startActivity(intent);

????}

????@Override

????public boolean onCreateOptionsMenu(Menu menu){

????????getMenuInflater().inflate(R.menu.menu_main,menu);

????????SearchView searchView = (SearchView) menu.findItem(R.id.menu_serch).getActionView();

????????//監(jiān)聽器

????????searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {

????????????@Override

????????????public boolean onQueryTextSubmit(String query){

????????????????return false;

????????????}

????????????@Override

????????????public boolean onQueryTextChange(String newText){

????????????????mNotes = mNoteDbOpenHelper.queryFromDbByTitle(newText);

????????????????mMyAdapter.refreshData(mNotes);

????????????????return true;

????????????}

????????});

????????return super.onCreateOptionsMenu(menu);

????}

????@Override

????public boolean onOptionsItemSelected(@NonNull MenuItem item){

????????return super.onOptionsItemSelected(item);

????}

}

3.2.3、用戶數(shù)據(jù)庫類UserDbHelper.java

package com.example.myapplication;

import android.content.ContentValues;

import android.content.Context;

import android.database.Cursor;

import android.database.sqlite.SQLiteDatabase;

import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

import com.example.myapplication.bean.User;

public class UserDbHelper extends SQLiteOpenHelper {

????private static final String DB_NAME = "users.db";

????private static final String create_users = "create table users(name varchar(32),password varchar(32))";

????public UserDbHelper(@Nullable Context context) {

????????super(context, DB_NAME, null, 1);

????}

????@Override

????public void onCreate(SQLiteDatabase sqLiteDatabase) {

????????sqLiteDatabase.execSQL(create_users);

????}

????@Override

????public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

????}

????public long register(User u){

????????SQLiteDatabase db = getWritableDatabase();

????????ContentValues cv = new ContentValues();

????????cv.put("name",u.getName());

????????cv.put("password",u.getPassword());

????????long users = db.insert("users",null,cv);

????????return users;

????}

????public boolean login(String name,String password){

????????SQLiteDatabase db1 = getWritableDatabase();

????????boolean result = false;

????????Cursor users = db1.query("users",null," name like ?",new String[]{name},null,null,null);

????????if (users != null){

????????????while(users.moveToNext()){

????????????????String password1 = users.getString(1);

????????????????result = password1.equals(password);

????????????????return result;

????????????}

????????}

????????return false;

????}

}

4、頁面展示以及測試用例

4.1、頁面展示

4.1.1、用戶登錄界面

android實(shí)現(xiàn)記事本功能,android

圖 4 登錄頁面

4.1.2、用戶注冊頁面

android實(shí)現(xiàn)記事本功能,android????????

?

圖 5 注冊頁面

4.1.3、記事本主頁面

?

android實(shí)現(xiàn)記事本功能,android

?

圖 6 記事本主頁面

4.1.4、添加頁面

?android實(shí)現(xiàn)記事本功能,android??????

?

?????圖 7 添加頁面

4.1.5、編輯頁面

android實(shí)現(xiàn)記事本功能,android

?

圖 8 編輯頁面

4.1.6、刪除頁面

?????android實(shí)現(xiàn)記事本功能,android

?

圖 9 刪除頁面

4.2、測試用例

4.2.1、登錄注冊用例

android實(shí)現(xiàn)記事本功能,android

?

圖 10 登錄用例

4.2.2、注冊用例

android實(shí)現(xiàn)記事本功能,android

?

圖 11 注冊用例

android實(shí)現(xiàn)記事本功能,android

?

圖 12 注冊后數(shù)據(jù)庫中的變化

4.2.3、添加記事測試用例

android實(shí)現(xiàn)記事本功能,androidandroid實(shí)現(xiàn)記事本功能,androidandroid實(shí)現(xiàn)記事本功能,android

圖 13 添加記事測試用例

4.2.4、刪除記事測試用例

android實(shí)現(xiàn)記事本功能,androidandroid實(shí)現(xiàn)記事本功能,androidandroid實(shí)現(xiàn)記事本功能,android

?

?

?

圖 14 刪除記事測試用例

5、項(xiàng)目及課程總結(jié)

通過本次項(xiàng)目實(shí)踐,將Android課程中的重點(diǎn)進(jìn)行了運(yùn)用,對(duì)Activity之間的通信、SQLite數(shù)據(jù)庫操作、Service、和ListView等知識(shí)點(diǎn)有了更深入的了解,也讓自己對(duì)這些要點(diǎn)的實(shí)踐運(yùn)用更加得心應(yīng)手。

在本次項(xiàng)目中也出現(xiàn)了一些問題。再實(shí)現(xiàn)點(diǎn)擊按鈕進(jìn)行登錄注冊操作中,R.id.XXX出現(xiàn)報(bào)錯(cuò),無法進(jìn)行頁面的跳轉(zhuǎn)。查找資料后發(fā)現(xiàn),在ADT14之后,無法使用switch的case進(jìn)行頁面跳轉(zhuǎn)。最后我使用了if-else語句將該問題解決。

通過本次項(xiàng)目,簡單實(shí)現(xiàn)了一個(gè)記事本的功能,但是該項(xiàng)目還是較為簡單,希望在日后對(duì)Android的不斷學(xué)習(xí)中可以對(duì)該項(xiàng)目進(jìn)行完善,增加一些額外的功能。文章來源地址http://www.zghlxwxcb.cn/news/detail-774462.html

到了這里,關(guān)于Android記事本的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Android開發(fā)_記事本(1)

    Android開發(fā)_記事本(1)

    TextView中有下述幾個(gè)屬性: id: 為TextView設(shè)置一個(gè)組件id,根據(jù)id,我們可以在Java代碼中通過findViewById()的方法獲取到該對(duì)象,然后進(jìn)行相關(guān)屬性的設(shè)置,又或者使用RelativeLayout時(shí),參考組件用的也是id! layout_width: 組件的寬度,一般寫: wrap_content 或者 match_parent(fill_parent) ,前

    2023年04月10日
    瀏覽(33)
  • Android Studio——記事本案例

    Android Studio——記事本案例

    一、布局界面 ? ? ? ? 1、記事本界面布局 main_notepad.xml ? ? ? ? 2、記事本Item布局界面 activity_item.xml ? ? ? ? 3、添加、修改界面布局 activity_record.xml 二、封裝記錄信息實(shí)體類 ? ? ? ? 記事本的每個(gè)記錄都會(huì)有記錄內(nèi)容和記錄時(shí)間這兩個(gè)屬性,因此需要建立一個(gè)實(shí)體類用于存

    2024年02月05日
    瀏覽(29)
  • 基于Android Studio 開發(fā)的簡易記事本

    基于Android Studio 開發(fā)的簡易記事本

    ?? 文章末尾有獲取完整項(xiàng)目源碼方式 ?? 目錄 一、引言 視頻效果展示: 圖片效果展示: 二、詳細(xì)設(shè)計(jì) 1.首頁 2.添加和修改頁面 3.登錄頁 4.注冊頁 三、獲取源碼 ? ? ? ? ?Android初學(xué)者開發(fā)第一個(gè)完整的基礎(chǔ)實(shí)例項(xiàng)目應(yīng)該就屬《記事本》了,該項(xiàng)目基于Android Studio開發(fā)使用

    2024年02月05日
    瀏覽(29)
  • 基于Android的記事本設(shè)計(jì)和模塊開發(fā)

    基于Android的記事本設(shè)計(jì)和模塊開發(fā)

    有一萬五千字論文,完美運(yùn)行。 由于編程技術(shù)的迅速發(fā)展,各種記事本APP隨處可見,在人們的日常生活中經(jīng)常使用的到。于是各種記事本APP也跟著發(fā)展起來。本文在通過在Android Studio開發(fā)平臺(tái)上開發(fā)一個(gè)簡單的多功能語音輸入記事本APP的過程,同時(shí)了解記事本APP的功能實(shí)現(xiàn),

    2024年02月03日
    瀏覽(33)
  • Android 備忘錄,記事本程序設(shè)計(jì)

    Android 備忘錄,記事本程序設(shè)計(jì)

    android備忘錄實(shí)現(xiàn),使用ObjectBox數(shù)據(jù)庫框架進(jìn)行數(shù)據(jù)存儲(chǔ),增刪改查等操作。代碼使用kotlin編寫。 1、下面看看ObjectBox數(shù)據(jù)庫封裝 需要注意的是: ? ?/** ? ? ?* 你只有配置好之后, 點(diǎn)擊 Make Model \\\'你的model名字\\\', 才會(huì)創(chuàng)建 MyObjectBox對(duì)象 ? ? ?* 對(duì)于MyObjectBox的包名, 目前我發(fā)現(xiàn)的

    2024年01月23日
    瀏覽(27)
  • Android:實(shí)現(xiàn)安卓小程序-記事本(備忘錄)的開發(fā),教你如何增加拿到BAT大廠offer幾率

    Android:實(shí)現(xiàn)安卓小程序-記事本(備忘錄)的開發(fā),教你如何增加拿到BAT大廠offer幾率

    public MyBaseAdapter(Context context, List data) { this.context = context; this.data = data; } @Override public Object getItem(int i) { return null; } @Override public long getItemId(int i) { return 0; } @Override public int getCount() { if(data==null) return 0; return data.size(); } } 接著在編寫NoteAdapter類繼承上類,初始化view, 將Note條目的

    2024年04月25日
    瀏覽(91)
  • 基于Android平臺(tái)的記事本軟件(Android Studio項(xiàng)目+報(bào)告+app文件)

    基于Android平臺(tái)的記事本軟件(Android Studio項(xiàng)目+報(bào)告+app文件)

    移動(dòng)應(yīng)用開發(fā)技術(shù) 期末考核報(bào)告 題 ?? 目: ??????? 基于 Android 平臺(tái)的記事本軟件 ???????????? 學(xué)生姓名 ? ???????????????????????? ?? 學(xué)生學(xué)號(hào) ? ???????????????????????? ?? 專 ? ?? 業(yè) ? ???????????????????????? 班 ??? 級(jí)

    2024年02月08日
    瀏覽(32)
  • 【Android 記事本,筆記本,可注冊登錄,增刪改查(附源碼)】

    【Android 記事本,筆記本,可注冊登錄,增刪改查(附源碼)】

    簡介 用Sqlite做數(shù)據(jù)庫,用來存儲(chǔ)賬號(hào)以及筆記信息,實(shí)現(xiàn)了賬號(hào)的注冊以及登錄功能,筆記方面實(shí)現(xiàn)了新增、刪除、修改、搜索功能,列表展示筆記使用的是listView(懶得弄分割線,就使用listView的默認(rèn)分割線了); 運(yùn)行效果 代碼講解 我代碼里使用了兩個(gè)依賴,一個(gè)是工具

    2024年02月04日
    瀏覽(20)
  • 【Java】實(shí)現(xiàn)記事本(完整版)

    【Java】實(shí)現(xiàn)記事本(完整版)

    ??????大家好,這是作業(yè)俠系列之Java實(shí)現(xiàn)記事本,還是那句話,我的粉絲們需要源碼直接qq郵箱+你需要的源碼私發(fā)我即可哦,大家覺得還行的話,期待你們的三連,這也是我創(chuàng)作的最大動(dòng)力?????? 往期源碼回顧: 【Java】實(shí)現(xiàn)繪圖板(完整版) 【C++】圖書管理系統(tǒng)(完整板

    2024年02月08日
    瀏覽(26)
  • 實(shí)現(xiàn)一個(gè)簡單的記事本APP

    實(shí)現(xiàn)一個(gè)簡單的記事本APP

    主要涉及的相關(guān)知識(shí): 1、控件RecyclerView的使用 2、輕量級(jí)數(shù)據(jù)庫SQLite的使用 3、activity之間的跳轉(zhuǎn)以及參數(shù)傳遞 首先創(chuàng)建MainActivity 為方便這里使用的是幀布局FrameLayout,主要包含兩個(gè)控件,一個(gè)是用于顯示記事本相關(guān)信息的RecyclerView,另一個(gè)是用于進(jìn)行添加記事信息FloatingAct

    2024年02月12日
    瀏覽(27)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包