主頁 > 移動端開發 > 理財通app的設計與實作(一)

理財通app的設計與實作(一)

2021-09-05 08:26:55 移動端開發

一、歡迎界面的設計與實作

1、界面效果圖

2、前期準備作業

(1)背景圖片

(2)樣式檔案

(3)樣式檔案 1:btn_style_one.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
     <stroke android:color="#ffffff" android:width="1dp"/>
     <solid android:color="#575d91"/>
     <corners android:radius="20dp"/>
</shape>

(4)樣式檔案 2:btn_style_two.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
     <stroke android:color="#6A6969" android:width="1dp"/>
     <solid android:color="#eeeeee"/>
     <corners android:radius="20dp"/>
</shape>

(5)樣式檔案 3:btn_style_three.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
     <stroke android:color="#ffffff" android:width="1dp"/>
     <corners android:radius="20dp"/>
</shape>

(6)選擇工程的包名,新建另外的三個頁面

類檔案名稱如下:

歡迎界面:WelcomeActivity

注冊界面:RegisterActivity

登錄界面:LoginActivity

3、布局界面 activity_welcome.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"
     android:orientation="vertical"
     android:background="@drawable/welcomebg"
     tools:context=".WelcomeActivity">
     <ImageView
         android:layout_width="wrap_content"
         android:layout_height="400dp"
         android:src="@drawable/wel_icon"/>
     <TextView
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:text="錢都花哪了?"
         android:textSize="30sp"
         android:textColor="#ffffff"
         android:layout_gravity="center"
         android:layout_marginTop="30dp"/>
     <TextView
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:text="記錄生活,點亮財富人生!"
         android:textSize="20sp"
         android:textColor="#ffffff"
         android:layout_gravity="center"
         android:layout_marginTop="30dp"/>
     <Button
         android:id="@+id/bt_know_wel"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:text="知道了"
         android:textSize="20sp"
         android:textColor="#ffffff"
         android:layout_gravity="center"
         android:layout_marginTop="30dp"
         android:background="@drawable/btn_style_three"/>
</LinearLayout>

4、類檔案 WelcomeActivity.java

public class WelcomeActivity extends AppCompatActivity {
     //定義物件
     Button bt_know_wel;
     @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.activity_welcome);
         //系結控制元件
         bt_know_wel=findViewById(R.id.bt_know_wel);
         //按鈕單擊事件
         bt_know_wel.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {
                 Intent intent=new Intent(WelcomeActivity.this,LoginActivity.class);
                 startActivity(intent);
                 finish();
             }
         });
     }
}

二、注冊界面的設計與實作

1、界面效果圖

2、前期準備作業

(1)設定程式從注冊界面啟動

打開工程的組態檔 AndroidManifest.xml,將程式啟動的四行代碼放置到注冊界面的開始節 點與結束節點之間,如下圖所示,

3、布局界面 activity_register.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"
     android:orientation="vertical"
     android:background="@drawable/registerbg"
     tools:context=".view.RegisterActivity">
<LinearLayout
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:orientation="horizontal"
     android:layout_marginTop="260dp"
     android:layout_marginLeft="60dp"
     android:layout_marginRight="60dp">
     <TextView
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:text="用戶名"
         android:textSize="15sp"
         android:textColor="#000000"/>
     <EditText
         android:id="@+id/et_name_rg"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:background="@null"
         android:gravity="center"/>
</LinearLayout>
     <View
         android:layout_width="match_parent"
         android:layout_height="2dp"
         android:background="#3700b3"
         android:layout_marginRight="60dp"
         android:layout_marginLeft="60dp"/>
     <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:orientation="horizontal"
         android:layout_marginTop="20dp"
         android:layout_marginLeft="60dp"
         android:layout_marginRight="60dp">
         <TextView
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:text="密 碼"
             android:textSize="15sp"
             android:textColor="#000000"/>
         <EditText
             android:id="@+id/et_pwd_rg"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:background="@null"
             android:gravity="center"/>
     </LinearLayout>
     <View
         android:layout_width="match_parent"
         android:layout_height="2dp"
         android:background="#3700b3"
         android:layout_marginRight="60dp"
         android:layout_marginLeft="60dp"/>
     <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:orientation="horizontal"
         android:layout_marginTop="20dp"
         android:layout_marginLeft="60dp"
         android:layout_marginRight="60dp">
         <TextView
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:text="郵 箱"
             android:textSize="15sp"
             android:textColor="#000000"/>
         <EditText
             android:id="@+id/et_email_rg"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:background="@null"
             android:gravity="center"/>
     </LinearLayout>
     <View
         android:layout_width="match_parent"
         android:layout_height="2dp"
         android:background="#3700b3"
         android:layout_marginRight="60dp"
         android:layout_marginLeft="60dp"/>
     <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:orientation="horizontal"
         android:layout_marginTop="20dp"
         android:layout_marginLeft="60dp"
         android:layout_marginRight="60dp">
         <TextView
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:text="電 話"
             android:textSize="15sp"
             android:textColor="#000000"/>
         <EditText
             android:id="@+id/et_phone_rg"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:background="@null"
             android:gravity="center"/>
     </LinearLayout>
     <View
         android:layout_width="match_parent"
         android:layout_height="2dp"
         android:background="#3700b3"
         android:layout_marginRight="60dp"
         android:layout_marginLeft="60dp"/>
     <Button
         android:id="@+id/bt_ok_rg"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:text="注冊"
         android:textSize="20sp"
         android:textColor="#ffffff"
         android:layout_marginLeft="60dp"
         android:layout_marginRight="60dp"
         android:background="@drawable/btn_style_one"
         android:layout_marginTop="40dp"/>
     <Button
         android:id="@+id/bt_cancel_rg"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:text="取消"
         android:textSize="20sp"
         android:textColor="#000000"
         android:layout_marginLeft="60dp"
         android:layout_marginRight="60dp"
         android:background="@drawable/btn_style_two"
         android:layout_marginTop="20dp"/>
</LinearLayout>

4、創建資料庫類檔案 MyDBHelper.java

(1)建立一個 db 檔案夾

(1)右鍵單擊工程的包名——新建——Package——在目前已有包名的后面資料 db——OK, 便可在目前工程的包名下方出現了 db 檔案夾,里面放置資料庫類檔案,

(2)在 db 檔案夾中建立資料庫類檔案

選擇 db——右擊——新建——javaclass——輸入類名:MyDBHelper——super class 中輸入父類:SQLiteOpenHelper——單擊 OK 按鈕,

(3)資料庫類檔案代碼

public class MyDBHelper extends SQLiteOpenHelper {
private static final String DBNAME="financial.db";
private static final int VERSION=1;
     public MyDBHelper(Context context) {
         super(context, DBNAME, null, VERSION);
     }
     //1 創建資料庫
     @Override
     public void onCreate(SQLiteDatabase db) {
         //創建用戶表
         db.execSQL("create table tb_userinfo(id integer primary key autoincrement,name varchar(10),pwd varchar(15),email varchar(50),phone varchar(11))");
     }
     //2 升級資料庫
     @Override
     public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) 
{
     }
}

5、注冊界面類檔案 RegisterActivity.java

public class RegisterActivity extends AppCompatActivity {
     //3 定義物件
     EditText et_name,et_pwd,et_email,et_phone;
     Button btn_register,btn_cancel;
     MyDBHelper mhelper;//創建一個資料庫類檔案
     SQLiteDatabase db;//創建一個可以操作的資料庫物件
     @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.activity_register);
         //4 系結控制元件
         initView();
         //5 注冊按鈕功能的實作
         btnRegister();
         //6 取消按鈕功能的實作
         btnCancel();
     }
     //4 系結控制元件--------代碼
     private void initView() {
         et_name=findViewById(R.id.et_name_rg);
         et_pwd=findViewById(R.id.et_pwd_rg);
         et_email=findViewById(R.id.et_email_rg);
         et_phone=findViewById(R.id.et_phone_rg);
         btn_register=findViewById(R.id.bt_ok_rg);
         btn_cancel=findViewById(R.id.bt_cancel_rg);
         mhelper=new MyDBHelper(RegisterActivity.this);
         db=mhelper.getWritableDatabase();
     }
     //5 注冊按鈕功能的實作--------------------代碼
     private void btnRegister() {
         btn_register.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {
                 //創建一個物件,用來封裝一行資料
                 ContentValues values=new ContentValues();
                 values.put("name",et_name.getText().toString());//將輸入的用戶名放到 name 列
                 values.put("pwd",et_pwd.getText().toString());//將輸入的密碼放到 pwd 列
                 values.put("email",et_email.getText().toString());//將輸入的郵箱放到 email 列
                 values.put("phone",et_phone.getText().toString());//將輸入的電話放到 phone 列
                 //將封裝好的一行資料保存到資料庫的 tb_userinfo 表中
                 db.insert("tb_userinfo",null,values);
                 Toast.makeText(RegisterActivity.this,"注冊成功",Toast.LENGTH_SHORT).show();
             }
         });
     }
     //6 取消按鈕功能的實作-------------------代碼
     private void btnCancel() {
         btn_cancel.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {
                 Intent intent=new Intent(RegisterActivity.this, LoginActivity.class);
                 startActivity(intent);
                 finish();
             }
         });
     }
}

三、登陸界面

1、界面效果

2、登錄界面布局 activity_login.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"
     android:orientation="vertical" 
     android:background="@drawable/loginbg"
     tools:context=".view.LoginActivity">
     <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:orientation="horizontal"
         android:layout_marginTop="260dp"
         android:layout_marginLeft="60dp"
         android:layout_marginRight="60dp">
         <TextView
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:text="用戶名"
             android:textSize="15sp"
             android:textColor="#000000"/>
         <EditText
             android:id="@+id/et_name_lg"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:background="@null"
             android:gravity="center"/>
     </LinearLayout>
     <View
         android:layout_width="match_parent"
         android:layout_height="2dp"
         android:background="#3700b3"
         android:layout_marginRight="60dp"
         android:layout_marginLeft="60dp"/>
     <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:orientation="horizontal"
         android:layout_marginTop="20dp"
         android:layout_marginLeft="60dp"
         android:layout_marginRight="60dp">
         <TextView
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:text="密 碼"
             android:textSize="15sp"
             android:textColor="#000000"/>
         <EditText
             android:id="@+id/et_pwd_lg"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:background="@null"
             android:inputType="textPassword"
             android:gravity="center"/>
     </LinearLayout>
     <View
         android:layout_width="match_parent"
         android:layout_height="2dp"
         android:background="#3700b3"
         android:layout_marginRight="60dp"
         android:layout_marginLeft="60dp"/>
     <Button
         android:id="@+id/bt_newregister_lg"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:text="新用戶注冊"
         android:textSize="20sp"
         android:textColor="#000000"
         android:layout_marginLeft="60dp"
         android:layout_marginRight="60dp"
         android:background="@null"
         android:layout_marginTop="20dp"
         android:layout_gravity="right"/>
     <Button
         android:id="@+id/bt_login_lg"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:text="登錄"
         android:textSize="20sp"
         android:textColor="#ffffff"
         android:layout_marginLeft="60dp"
         android:layout_marginRight="60dp"
         android:background="@drawable/btn_style_one"
         android:layout_marginTop="40dp"/>
</LinearLayout>

3、登錄界面類檔案 LoginActivity.java

public class LoginActivity extends AppCompatActivity {
     //1 定義物件
     EditText et_name,et_pwd;
     Button btn_newregister,btn_login;
     MyDBHelper mhelper;
     SQLiteDatabase db;
     @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.activity_login);
         //2 系結控制元件
         initView();
         //3 登錄按鈕功能的實作
         btnLogin();
         //4 新用戶注冊按鈕功能的實作
         btnNewRegister();
     }
     //2 系結控制元件--------------------代碼
     private void initView() {
         et_name=findViewById(R.id.et_name_lg);
         et_pwd=findViewById(R.id.et_pwd_lg);
         btn_newregister=findViewById(R.id.bt_newregister_lg);
         btn_login=findViewById(R.id.bt_login_lg);
         mhelper=new MyDBHelper(LoginActivity.this);
         db=mhelper.getWritableDatabase();
     }
     //3 登錄按鈕功能的實作---------------------------代碼
     private void btnLogin() {
         btn_login.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {
                 //首先:獲取輸入的用戶名和密碼
                 String inputname=et_name.getText().toString();
                 String inputpwd=et_pwd.getText().toString();
                 //其次:對獲取的用戶名和密碼進行判斷
                 if(inputname.equals("")||inputpwd.equals("")){//用戶名或密碼為空
                     Toast.makeText(LoginActivity.this,"用戶名或密碼不能為空",Toast.LENGTH_SHORT).show();
                 }else{//用戶名或密碼不為空時,我們再對輸入的正確性進行判斷,
                     // 根據輸入的用戶名和密碼從資料庫中查詢
                     Cursor cursor =db.rawQuery("select * from tb_userinfo where name=? and pwd=?",new String[]{inputname,inputpwd});
                     //根據查詢到的結果進行判斷
                 if (cursor.moveToNext()){//查詢到時
                     String getname=cursor.getString(cursor.getColumnIndex("name"));
                     String getpwd=cursor.getString(cursor.getColumnIndex("pwd"));
 
                if(inputname.equalsIgnoreCase(getname)&&inputpwd.equalsIgnoreCase(getpwd)){
                         Toast.makeText(LoginActivity.this,"用戶名和密碼正確,歡迎登陸",Toast.LENGTH_SHORT).show();
                         Intent intent=new Intent(LoginActivity.this, MainActivity.class);
                         startActivity(intent);
                        finish();
                     }
                 }else{//沒有查詢到結果時
                     Toast.makeText(LoginActivity.this,"用戶名或密碼錯誤,請重新輸入",Toast.LENGTH_SHORT).show();
                     et_name.setText("");
                     et_pwd.setText("");
                     }
                 }
             }
         });
      }
     //4 新用戶注冊按鈕功能的實作------------------------代碼
     private void btnNewRegister() {
         btn_newregister.setOnClickListener(new View.OnClickListener() 
    {
             @Override
             public void onClick(View v) {
                 Intent intent=new Intent(LoginActivity.this, RegisterActivity.class);
                 startActivity(intent);
                 finish();
             }
         });
     }
}

轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/297605.html

標籤:其他

上一篇:android adb install

下一篇:Python程式打包成Android包

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • 【從零開始擼一個App】Dagger2

    Dagger2是一個IOC框架,一般用于Android平臺,第一次接觸的朋友,一定會被搞得暈頭轉向。它延續了Java平臺Spring框架代碼碎片化,注解滿天飛的傳統。嘗試將各處代碼片段串聯起來,理清思緒,真不是件容易的事。更不用說還有各版本細微的差別。 與Spring不同的是,Spring是通過反射 ......

    uj5u.com 2020-09-10 06:57:59 more
  • Flutter Weekly Issue 66

    新聞 Flutter 季度調研結果分享 教程 Flutter+FaaS一體化任務編排的思考與設計 詳解Dart中如何通過注解生成代碼 GitHub 用對了嗎?Flutter 團隊分享如何管理大型開源專案 插件 flutter-bubble-tab-indicator A Flutter librar ......

    uj5u.com 2020-09-10 06:58:52 more
  • Proguard 常用規則

    介紹 Proguard 入口,如何查看輸出,如何使用 keep 設定入口以及使用實體,如何配置壓縮,混淆,校驗等規則。

    ......

    uj5u.com 2020-09-10 06:59:00 more
  • Android 開發技術周報 Issue#292

    新聞 Android即將獲得類AirDrop功能:可向附近設備快速分享檔案 谷歌為安卓檔案管理應用引入可安全隱藏資料的Safe Folder功能 Android TV新主界面將顯示電影、電視節目和應用推薦內容 泄露的Android檔案暗示了傳說中的谷歌Pixel 5a與折疊屏新機 谷歌發布Andro ......

    uj5u.com 2020-09-10 07:00:37 more
  • AutoFitTextureView Error inflating class

    報錯: Binary XML file line #0: Binary XML file line #0: Error inflating class xxx.AutoFitTextureView 解決: <com.example.testy2.AutoFitTextureView android: ......

    uj5u.com 2020-09-10 07:00:41 more
  • 根據Uri,Cursor沒有獲取到對應的屬性

    Android: 背景:呼叫攝像頭,拍攝視頻,指定保存的地址,但是回傳的Cursor檔案,只有名稱和大小的屬性,沒有其他諸如時長,連ID屬性都沒有 使用 cursor.getInt(cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DURATIO ......

    uj5u.com 2020-09-10 07:00:44 more
  • Android連載29-持久化技術

    一、持久化技術 我們平時所使用的APP產生的資料,在記憶體中都是瞬時的,會隨著斷電、關機等丟失資料,因此android系統采用了持久化技術,用于存盤這些“瞬時”資料 持久化技術包括:檔案存盤、SharedPreference存盤以及資料庫存盤,還有更復雜的SD卡記憶體儲。 二、檔案存盤 最基本存盤方式, ......

    uj5u.com 2020-09-10 07:00:47 more
  • Android Camera2Video整合到自己專案里

    背景: Android專案里呼叫攝像頭拍攝視頻,原本使用的 MediaStore.ACTION_VIDEO_CAPTURE, 后來因專案需要,改成了camera2 1.Camera2Video 官方demo有點問題,下載后,不能直接整合到專案 問題1.多次拍攝視頻崩潰 問題2.雙擊record按鈕, ......

    uj5u.com 2020-09-10 07:00:50 more
  • Android 開發技術周報 Issue#293

    新聞 谷歌為Android TV開發者提供多種新功能 Android 11將自動填表功能整合到鍵盤輸入建議中 谷歌宣布Android Auto即將支持更多的導航和數字停車應用 谷歌Pixel 5只有XL版本 搭載驍龍765G且將比Pixel 4更便宜 [圖]Wear OS將迎來重磅更新:應用啟動時間 ......

    uj5u.com 2020-09-10 07:01:38 more
  • 海豚星空掃碼投屏 Android 接收端 SDK 集成 六步驟

    掃碼投屏,開放網路,獨占設備,不需要額外下載軟體,微信掃碼,發現設備。支持標準DLNA協議,支持倍速播放。視頻,音頻,圖片投屏。好點意思。還支持自定義基于 DLNA 擴展的操作動作。好像要收費,沒體驗。 這里簡單記錄一下集成程序。 一 跟目錄的build.gradle添加私有mevan倉庫 mave ......

    uj5u.com 2020-09-10 07:01:43 more
最新发布
  • 歡迎頁輪播影片

    如圖,引導開始,球從上落下,同時淡入文字,然后文字開始輪播,最后一頁時停止,點擊進入首頁。 在來看看效果圖。 重力球先不講,主要歡迎輪播簡單實作 首先新建一個類 TextTranslationXGuideView,用于影片展示 文本是類似的,最后會有個圖片箭頭影片,布局很簡單,就是一個 TextVi ......

    uj5u.com 2023-04-20 08:40:31 more
  • 【FAQ】關于華為推送服務因營銷訊息頻次管控導致服務通訊類訊息

    一. 問題描述 使用華為推送服務下發IM訊息時,下發訊息請求成功且code碼為80000000,但是手機總是收不到訊息; 在華為推送自助分析(Beta)平臺查看發現,訊息發送觸發了頻控。 二. 問題原因及背景 2023年1月05日起,華為推送服務對咨詢營銷類訊息做了單個設備每日推送數量上限管理,具體 ......

    uj5u.com 2023-04-20 08:40:11 more
  • 歡迎頁輪播影片

    如圖,引導開始,球從上落下,同時淡入文字,然后文字開始輪播,最后一頁時停止,點擊進入首頁。 在來看看效果圖。 重力球先不講,主要歡迎輪播簡單實作 首先新建一個類 TextTranslationXGuideView,用于影片展示 文本是類似的,最后會有個圖片箭頭影片,布局很簡單,就是一個 TextVi ......

    uj5u.com 2023-04-20 08:39:36 more
  • 【FAQ】關于華為推送服務因營銷訊息頻次管控導致服務通訊類訊息

    一. 問題描述 使用華為推送服務下發IM訊息時,下發訊息請求成功且code碼為80000000,但是手機總是收不到訊息; 在華為推送自助分析(Beta)平臺查看發現,訊息發送觸發了頻控。 二. 問題原因及背景 2023年1月05日起,華為推送服務對咨詢營銷類訊息做了單個設備每日推送數量上限管理,具體 ......

    uj5u.com 2023-04-20 08:39:13 more
  • iOS從UI記憶體地址到讀取成員變數(oc/swift)

    開發除錯時,我們發現bug時常首先是從UI顯示發現例外,下一步才會去定位UI相關連的資料的。XCode有給我們提供一系列debug工具,但是很多人可能還沒有形成一套穩定的除錯流程,因此本文嘗試解決這個問題,順便提出一個暴論:UI顯示例外問題只需要兩個步驟就能完成定位作業的80%: 定位例外 UI 組 ......

    uj5u.com 2023-04-19 09:16:23 more
  • FIDE重磅更新!性能飛躍!體驗有禮!

    FIDE 開發者工具重構升級啦!實作500%性能提升,誠邀體驗! 一直以來不少開發者朋友在社區反饋,在使用 FIDE 工具的程序中,時常會遇到諸如加載不及時、代碼預覽/渲染性能不如意的情況,十分影響開發體驗。 作為技術團隊,我們深知一件趁手的開發工具對開發者的重要性,因此,在2023年開年,FinC ......

    uj5u.com 2023-04-19 09:16:15 more
  • 游戲內嵌社區服務開放,助力開發者提升玩家互動與留存

    華為 HMS Core 游戲內嵌社區服務提供快速訪問華為游戲中心論壇能力,支持玩家直接在游戲內瀏覽帖子和交流互動,助力開發者擴展內容生產和觸達的場景。 一、為什么要游戲內嵌社區? 二、游戲內嵌社區的典型使用場景 1、游戲內打開論壇 您可以在游戲內繪制論壇入口,為玩家提供沉浸式發帖、瀏覽、點贊、回帖、 ......

    uj5u.com 2023-04-19 09:15:46 more
  • iOS從UI記憶體地址到讀取成員變數(oc/swift)

    開發除錯時,我們發現bug時常首先是從UI顯示發現例外,下一步才會去定位UI相關連的資料的。XCode有給我們提供一系列debug工具,但是很多人可能還沒有形成一套穩定的除錯流程,因此本文嘗試解決這個問題,順便提出一個暴論:UI顯示例外問題只需要兩個步驟就能完成定位作業的80%: 定位例外 UI 組 ......

    uj5u.com 2023-04-19 09:14:53 more
  • FIDE重磅更新!性能飛躍!體驗有禮!

    FIDE 開發者工具重構升級啦!實作500%性能提升,誠邀體驗! 一直以來不少開發者朋友在社區反饋,在使用 FIDE 工具的程序中,時常會遇到諸如加載不及時、代碼預覽/渲染性能不如意的情況,十分影響開發體驗。 作為技術團隊,我們深知一件趁手的開發工具對開發者的重要性,因此,在2023年開年,FinC ......

    uj5u.com 2023-04-19 09:14:08 more
  • 游戲內嵌社區服務開放,助力開發者提升玩家互動與留存

    華為 HMS Core 游戲內嵌社區服務提供快速訪問華為游戲中心論壇能力,支持玩家直接在游戲內瀏覽帖子和交流互動,助力開發者擴展內容生產和觸達的場景。 一、為什么要游戲內嵌社區? 二、游戲內嵌社區的典型使用場景 1、游戲內打開論壇 您可以在游戲內繪制論壇入口,為玩家提供沉浸式發帖、瀏覽、點贊、回帖、 ......

    uj5u.com 2023-04-19 09:08:34 more