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

Android Studio App開發(fā)之通知渠道NotificationChannel及給華為、小米手機桌面應用添加消息數(shù)量角標實戰(zhàn)(包括消息重要級別的設置 附源碼)

這篇具有很好參考價值的文章主要介紹了Android Studio App開發(fā)之通知渠道NotificationChannel及給華為、小米手機桌面應用添加消息數(shù)量角標實戰(zhàn)(包括消息重要級別的設置 附源碼)。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

需要全部源碼或運行有問題請點贊關注收藏后評論區(qū)留言~~~

一、通知渠道NtoificationChannel

為了分清消息通知的輕重緩急,Android8.0新增了通知渠道,并且必須指定通知渠道才能正常推送消息,一個應用允許擁有多個通知渠道,每個渠道的重要性各不相同,有的渠道消息在通知欄被折疊成小行,有的渠道消息在通知欄展示完整的大行,有的會發(fā)出鈴聲甚至震動等等

效果如下 可以輸入標題和內(nèi)容,然后下拉框里面選擇消息的重要級別,根據(jù)重要級別的不同消息會有不同的通知方式(這里要連接真機才能具體展示 讀者可自行連接 或者參考我之前的博客連接步驟)

android開發(fā)小米手機設置角標,Android App,android studio,android,ide,java,華為

?android開發(fā)小米手機設置角標,Android App,android studio,android,ide,java,華為

?android開發(fā)小米手機設置角標,Android App,android studio,android,ide,java,華為

?代碼如下

Java類

package com.example.chapter11;

import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.example.chapter11.util.NotifyUtil;
import com.example.chapter11.util.ViewUtil;

public class NotifyChannelActivity extends AppCompatActivity implements View.OnClickListener {
    private EditText et_title;
    private EditText et_message;
    private String mChannelId = "0"; // 通知渠道的編號
    private String mChannelName; // 通知渠道的名稱
    private int mImportance; // 通知渠道的級別

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_notify_channel);
        et_title = findViewById(R.id.et_title);
        et_message = findViewById(R.id.et_message);
        findViewById(R.id.btn_send_channel).setOnClickListener(this);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            initImportanceSpinner(); // 初始化渠道級別的下拉框
        }
    }

    // 初始化渠道級別的下拉框
    private void initImportanceSpinner() {
        findViewById(R.id.ll_channel).setVisibility(View.VISIBLE);
        ArrayAdapter<String> importanceAdapter = new ArrayAdapter<String>(this,
                R.layout.item_select, importanceDescArray);
        Spinner sp_importance = findViewById(R.id.sp_importance);
        sp_importance.setPrompt("請選擇渠道級別");
        sp_importance.setAdapter(importanceAdapter);
        sp_importance.setSelection(3);
        sp_importance.setOnItemSelectedListener(new TypeSelectedListener());
    }

    private int[] importanceTypeArray = {NotificationManager.IMPORTANCE_NONE,
            NotificationManager.IMPORTANCE_MIN,
            NotificationManager.IMPORTANCE_LOW,
            NotificationManager.IMPORTANCE_DEFAULT,
            NotificationManager.IMPORTANCE_HIGH,
            NotificationManager.IMPORTANCE_MAX};
    private String[] importanceDescArray = {"不重要", // 無通知
            "最小級別", // 通知欄折疊,無提示聲音,無鎖屏通知
            "有點重要", // 通知欄展開,無提示聲音,有鎖屏通知
            "一般重要", // 通知欄展開,有提示聲音,有鎖屏通知
            "非常重要", // 通知欄展開,有提示聲音,有鎖屏通知,在屏幕頂部短暫懸?。ㄓ械氖謾C需要在設置頁面開啟橫幅)
            "最高級別" // 通知欄展開,有提示聲音,有鎖屏通知,在屏幕頂部短暫懸?。ㄓ械氖謾C需要在設置頁面開啟橫幅)
    };
    class TypeSelectedListener implements AdapterView.OnItemSelectedListener {
        public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
            mImportance = importanceTypeArray[arg2];
            mChannelId = "" + arg2;
            mChannelName = importanceDescArray[arg2];
        }

        public void onNothingSelected(AdapterView<?> arg0) {
        }
    }

    // 發(fā)送指定渠道的通知消息(包括消息標題和消息內(nèi)容)
    private void sendChannelNotify(String title, String message) {
        // 創(chuàng)建一個跳轉(zhuǎn)到活動頁面的意圖
        Intent clickIntent = new Intent(this, MainActivity.class);
        // 創(chuàng)建一個用于頁面跳轉(zhuǎn)的延遲意圖
        PendingIntent contentIntent = PendingIntent.getActivity(this,
                R.string.app_name, clickIntent, PendingIntent.FLAG_UPDATE_CURRENT);
        // 創(chuàng)建一個通知消息的建造器
        Notification.Builder builder = new Notification.Builder(this);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            // Android 8.0開始必須給每個通知分配對應的渠道
            builder = new Notification.Builder(this, mChannelId);
        }
        builder.setContentIntent(contentIntent) // 設置內(nèi)容的點擊意圖
                .setAutoCancel(true) // 點擊通知欄后是否自動清除該通知
                .setSmallIcon(R.mipmap.ic_launcher) // 設置應用名稱左邊的小圖標
                .setContentTitle(title) // 設置通知欄里面的標題文本
                .setContentText(message); // 設置通知欄里面的內(nèi)容文本
        Notification notify = builder.build(); // 根據(jù)通知建造器構(gòu)建一個通知對象
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            NotifyUtil.createNotifyChannel(this, mChannelId, mChannelName, mImportance);
        }
        // 從系統(tǒng)服務中獲取通知管理器
        NotificationManager notifyMgr = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
        // 使用通知管理器推送通知,然后在手機的通知欄就會看到該消息,多條通知需要指定不同的通知編號
        notifyMgr.notify(Integer.parseInt(mChannelId), notify);
        if (mImportance != NotificationManager.IMPORTANCE_NONE) {
            Toast.makeText(this, "已發(fā)送渠道消息", Toast.LENGTH_SHORT).show();
        }
    }

    @Override
    public void onClick(View v) {
        if (v.getId() == R.id.btn_send_channel) {
            ViewUtil.hideOneInputMethod(this, et_message); // 隱藏輸入法軟鍵盤
            if (TextUtils.isEmpty(et_title.getText())) {
                Toast.makeText(this, "請?zhí)顚懴祟}", Toast.LENGTH_SHORT).show();
                return;
            }
            if (TextUtils.isEmpty(et_message.getText())) {
                Toast.makeText(this, "請?zhí)顚懴?nèi)容", Toast.LENGTH_SHORT).show();
                return;
            }
            // 發(fā)送指定渠道的通知消息(包括消息標題和消息內(nèi)容)
            sendChannelNotify(et_title.getText().toString(), et_message.getText().toString());
        }
    }
}

XML文件

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="5dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:orientation="horizontal">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:gravity="center"
            android:text="消息標題:"
            android:textColor="@color/black"
            android:textSize="17sp" />

        <EditText
            android:id="@+id/et_title"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:layout_margin="5dp"
            android:background="@drawable/editext_selector"
            android:hint="請?zhí)顚懴祟}"
            android:textColor="@color/black"
            android:textSize="17sp" />

    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="70dp"
        android:orientation="horizontal">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:gravity="center"
            android:text="消息內(nèi)容:"
            android:textColor="@color/black"
            android:textSize="17sp" />

        <EditText
            android:id="@+id/et_message"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:gravity="top"
            android:layout_margin="5dp"
            android:background="@drawable/editext_selector"
            android:hint="請?zhí)顚懴?nèi)容"
            android:textColor="@color/black"
            android:textSize="17sp" />

    </LinearLayout>

    <LinearLayout
        android:id="@+id/ll_channel"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:orientation="horizontal"
        android:visibility="gone">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:gravity="center"
            android:text="渠道級別:"
            android:textColor="@color/black"
            android:textSize="17sp" />

        <Spinner
            android:id="@+id/sp_importance"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:layout_margin="5dp"
            android:gravity="center"
            android:spinnerMode="dialog" />
    </LinearLayout>

    <Button
        android:id="@+id/btn_send_channel"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:text="發(fā)送渠道消息"
        android:textColor="@color/black"
        android:textSize="17sp" />

</LinearLayout>

二、給桌面應用添加信息角標(以華為和小米為例)

每個應用都可以給用戶發(fā)送很多消息,通知欄顯然有時候不夠容納如此之多的消息,于是各應用希望向用戶展現(xiàn)未讀消息的數(shù)量,好讓用戶知曉有沒有未讀消息或者是有幾條未讀消息。例如微信的99+,幾個小紅點好有申請之類。

因為各手機廠商對消息角標的實現(xiàn)方案各不相同,因此只能給它們的手機分別適配處理,

下面依次介紹華為和小米系手機的適配編碼

華為的消息角標不依賴通知推送,允許單獨設置紅點的展示情況

小米的消息角標方案則依賴于通知推送,必須在發(fā)送通知之時一起傳送消息數(shù)量參數(shù)

效果如下 可自行設置

android開發(fā)小米手機設置角標,Android App,android studio,android,ide,java,華為android開發(fā)小米手機設置角標,Android App,android studio,android,ide,java,華為

代碼如下

Java類

package com.example.chapter11;

import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.example.chapter11.util.NotifyUtil;
import com.example.chapter11.util.ViewUtil;

public class NotifyMarkerActivity extends AppCompatActivity implements View.OnClickListener {
    private EditText et_title;
    private EditText et_message;
    private EditText et_count;
    private static String mChannelId = "3"; // 通知渠道的編號
    private static String mChannelName = "一般重要"; // 通知渠道的名稱
    private static int mImportance = NotificationManager.IMPORTANCE_DEFAULT; // 通知渠道的級別

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_notify_marker);
        et_title = findViewById(R.id.et_title);
        et_message = findViewById(R.id.et_message);
        et_count = findViewById(R.id.et_count);
        findViewById(R.id.btn_show_marker).setOnClickListener(this);
        findViewById(R.id.btn_clear_marker).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        ViewUtil.hideOneInputMethod(this, et_message); // 隱藏輸入法軟鍵盤
        if (TextUtils.isEmpty(et_title.getText())) {
            Toast.makeText(this, "請?zhí)顚懴祟}", Toast.LENGTH_SHORT).show();
            return;
        }
        if (TextUtils.isEmpty(et_message.getText())) {
            Toast.makeText(this, "請?zhí)顚懴?nèi)容", Toast.LENGTH_SHORT).show();
            return;
        }
        if (TextUtils.isEmpty(et_count.getText())) {
            Toast.makeText(this, "請?zhí)顚懴?shù)量", Toast.LENGTH_SHORT).show();
            return;
        }
        String title = et_title.getText().toString();
        String message = et_message.getText().toString();
        int count = Integer.parseInt(et_count.getText().toString());
        if (v.getId() == R.id.btn_show_marker) {
            sendChannelNotify(title, message, count); // 發(fā)送指定渠道的通知消息
            Toast.makeText(this, "已顯示消息角標,請回到桌面查看", Toast.LENGTH_SHORT).show();
        } else if (v.getId() == R.id.btn_clear_marker) {
            sendChannelNotify(title, message, 0); // 發(fā)送指定渠道的通知消息
            Toast.makeText(this, "已清除消息角標,請回到桌面查看", Toast.LENGTH_SHORT).show();
        }
    }

    // 發(fā)送指定渠道的通知消息(包括消息標題和消息內(nèi)容)
    private void sendChannelNotify(String title, String message, int count) {
        // 創(chuàng)建一個跳轉(zhuǎn)到活動頁面的意圖
        Intent clickIntent = new Intent(this, MainActivity.class);
        // 創(chuàng)建一個用于頁面跳轉(zhuǎn)的延遲意圖
        PendingIntent contentIntent = PendingIntent.getActivity(this,
                R.string.app_name, clickIntent, PendingIntent.FLAG_UPDATE_CURRENT);
        // 創(chuàng)建一個通知消息的建造器
        Notification.Builder builder = new Notification.Builder(this);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            // Android 8.0開始必須給每個通知分配對應的渠道
            builder = new Notification.Builder(this, mChannelId);
        }
        builder.setContentIntent(contentIntent) // 設置內(nèi)容的點擊意圖
                .setAutoCancel(true) // 點擊通知欄后是否自動清除該通知
                .setSmallIcon(R.mipmap.ic_launcher) // 設置應用名稱左邊的小圖標
                .setContentTitle(title) // 設置通知欄里面的標題文本
                .setContentText(message); // 設置通知欄里面的內(nèi)容文本
        Notification notify = builder.build(); // 根據(jù)通知建造器構(gòu)建一個通知對象
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            NotifyUtil.createNotifyChannel(this, mChannelId, mChannelName, mImportance);
        }
        NotifyUtil.showMarkerCount(this, count, notify); // 在桌面的應用圖標右上方顯示指定數(shù)字的消息角標
        // 從系統(tǒng)服務中獲取通知管理器
        NotificationManager notifyMgr = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
        // 使用通知管理器推送通知,然后在手機的通知欄就會看到該消息,多條通知需要指定不同的通知編號
        notifyMgr.notify(Integer.parseInt(mChannelId), notify);
    }

}

?XML文件

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="5dp">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="本頁面的消息角標僅支持華為與小米手機"
        android:textColor="@color/black"
        android:textSize="17sp" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:orientation="horizontal">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:gravity="center"
            android:text="消息標題:"
            android:textColor="@color/black"
            android:textSize="17sp" />

        <EditText
            android:id="@+id/et_title"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:layout_margin="5dp"
            android:background="@drawable/editext_selector"
            android:hint="請?zhí)顚懴祟}"
            android:textColor="@color/black"
            android:textSize="17sp" />

    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="70dp"
        android:orientation="horizontal">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:gravity="center"
            android:text="消息內(nèi)容:"
            android:textColor="@color/black"
            android:textSize="17sp" />

        <EditText
            android:id="@+id/et_message"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:gravity="top"
            android:layout_margin="5dp"
            android:background="@drawable/editext_selector"
            android:hint="請?zhí)顚懴?nèi)容"
            android:textColor="@color/black"
            android:textSize="17sp" />

    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:orientation="horizontal">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:gravity="center"
            android:text="消息數(shù)量:"
            android:textColor="@color/black"
            android:textSize="17sp" />

        <EditText
            android:id="@+id/et_count"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_margin="5dp"
            android:layout_weight="1"
            android:background="@drawable/editext_selector"
            android:gravity="left|center"
            android:inputType="number"
            android:textColor="@color/black"
            android:textSize="17sp" />

    </LinearLayout>

    <Button
        android:id="@+id/btn_show_marker"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:text="發(fā)送消息同時顯示桌面角標"
        android:textColor="@color/black"
        android:textSize="17sp" />

    <Button
        android:id="@+id/btn_clear_marker"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:text="清除應用的消息角標"
        android:textColor="@color/black"
        android:textSize="17sp" />

</LinearLayout>

創(chuàng)作不易 覺得有幫助請點贊關注收藏文章來源地址http://www.zghlxwxcb.cn/news/detail-600752.html

到了這里,關于Android Studio App開發(fā)之通知渠道NotificationChannel及給華為、小米手機桌面應用添加消息數(shù)量角標實戰(zhàn)(包括消息重要級別的設置 附源碼)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!

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

領支付寶紅包贊助服務器費用

相關文章

  • Android Studio開發(fā)簡易APP添加代辦事項

    創(chuàng)建xml布局頁

    2024年02月15日
    瀏覽(25)
  • 基于Android Studio的記賬類app開發(fā)

    基于Android Studio的記賬類app開發(fā)

    記賬 APP 需要有如下三個系統(tǒng): 統(tǒng)計系統(tǒng)、記賬系統(tǒng)、用戶系統(tǒng) 。 統(tǒng)計系統(tǒng)需要實現(xiàn)當月消費統(tǒng)計,包括收入、支出、結(jié)余等內(nèi)容, 并可以讓用戶通過可視化圖的方式清晰了解使用情況。 記賬系統(tǒng)需要實現(xiàn)記賬的操作,包括選擇賬 目類別、消費類型、金額、具體內(nèi)容等,

    2023年04月08日
    瀏覽(16)
  • 移動開發(fā)項目 Android Studio 健康助手APP

    移動開發(fā)項目 Android Studio 健康助手APP

    健康助手系統(tǒng)是一款便捷軟件,旨在通過提供多方面的的健康便捷的管理服務,讓用戶的生活更健康,更便捷。用戶可以在健康助手APP上購買不同的體檢套餐,預約醫(yī)生,使用地圖查找藥房等的位置,瀏覽網(wǎng)頁了解健康知識,傳播健康文化。 (1)為了更好地了解自己的身體

    2024年02月03日
    瀏覽(32)
  • Android Studio開發(fā)圖書管理系統(tǒng)APP

    Android Studio開發(fā)圖書管理系統(tǒng)APP

    Android Studio開發(fā)項目圖書管理系統(tǒng)項目視頻展示: 點擊進入圖書管理系統(tǒng)項目視頻 現(xiàn)在是一個信息高度發(fā)達的時代,伴隨著科技的進步,文化的汲取,人們對于圖書信息的了解與掌握也達到了一定的高度。尤其是學生對于知識的渴求更是與日俱增。圖書館作為學生學習知識的

    2024年02月03日
    瀏覽(25)
  • 基于Android的學生信息管理App設計(Android studio開發(fā))

    基于Android的學生信息管理App設計(Android studio開發(fā))

    目 錄 一、 題目選擇(題目、選題意義) 3 二、 設計目的 3 1、 初衷 3 2、 結(jié)合實際 3 3、 使用工具 3 三、 最終頁面效果展示 4 1、 登陸界面 4 2、 主界面 5 3、 各個功能模塊 6 四、 各部分設計 11 1、活動頁面Activity布局文件 11 2、Activity的編程 13 五、 總結(jié) 17 題目:基于Android的

    2024年02月08日
    瀏覽(24)
  • Android studio 使用C/C++開發(fā)app

    Android studio 使用C/C++開發(fā)app

    一、在新建項目中選擇Native C++,然后下一步 二、名字跟保存位置自定義,語言選擇Java,SDK根據(jù)app安裝的平臺選擇對應的版本,選好后下一步 ?三、C++ Standard默認選擇就可以,點擊完成 ?四、加載完成后,把項目標題Android換成項目 ?換完后的列表 ? ?C/C++的代碼在cpp文件夾中

    2024年02月12日
    瀏覽(25)
  • Android studio課程設計開發(fā)實現(xiàn)---日記APP

    Android studio課程設計開發(fā)實現(xiàn)---日記APP

    你們好,我是oy,介紹一個簡易日記APP。 1.啟動頁、引導頁及登陸注冊 2.日記相關功能 3.個人中心界面 實現(xiàn)應用啟動頁及引導頁 實現(xiàn)設置密碼進入APP,對密碼進行加密處理 實現(xiàn)底部導航欄,分為日記列表,新建日記,個人中心模塊 實現(xiàn)對日記刪除、修改、新增的基礎功能

    2024年02月03日
    瀏覽(29)
  • Android Studio開發(fā)實戰(zhàn):從零基礎到App上線

    第1章??Android開發(fā)環(huán)境搭建 1 ?? ?1.1??Android開發(fā)簡介 1 ?? ??? ?1.1.1??Android的發(fā)展歷程 1 ?? ??? ?1.1.2??Android Studio的發(fā)展歷程 2 ?? ?1.2??搭建Android Studio開發(fā)環(huán)境 2 ?? ??? ?1.2.1??計算機配置要求 2 ?? ??? ?1.2.2??安裝Android Studio 3 ?? ??? ?1.2.3??下載Android的S

    2024年02月20日
    瀏覽(23)
  • 基于Android Studio開發(fā)的人員管理系統(tǒng)APP

    基于Android Studio開發(fā)的人員管理系統(tǒng)APP

    目錄 人員管理系統(tǒng) 前言 一、系統(tǒng)的大概流程 二、詳細開發(fā)步驟 1.登陸界面 2.中間跳轉(zhuǎn)界面 3.添加用戶 4.全部用戶界面 ?5.項目下載 總結(jié) 這是一個具有登錄功能和人員信息增刪改查功能的人員管理系統(tǒng),在之前也有做過一個通過http協(xié)議與云平臺對接的app,正好需要完成一個

    2024年02月07日
    瀏覽(31)
  • Android Studio開發(fā)入門教程:如何更改APP的圖標?

    Android Studio開發(fā)入門教程:如何更改APP的圖標?

    環(huán)境:Windows10、Android Studio版本如下圖、雷電模擬器。 推薦圖標庫 默認APP圖標 將新圖標拉進src/main/res/mipmap-hdpi文件夾(一般app的icon圖標是存放在mipmap打頭的文件夾下的) 更改src/main/AndroidManifest.xml文件內(nèi)容 引入我們剛剛導入的新圖標 保存并運行,在雷電模擬器查看效果

    2024年02月03日
    瀏覽(23)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

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

二維碼1

領取紅包

二維碼2

領紅包