From d76d6d2bfb2d1f928bb7765a7af33b736d23d1eb Mon Sep 17 00:00:00 2001 From: fyf Date: Wed, 12 Apr 2023 15:56:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=99=BB=E5=BD=95=E7=95=8C?= =?UTF-8?q?=E9=9D=A2333?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/libs/sdkapi.jar | Bin 0 -> 5099 bytes .../com/example/chabaidao/MainActivity.java | 5 ---- .../example/chabaidao/helper/ContextHolder.kt | 18 ++++++++++++ app/src/main/res/layout/activity_main.xml | 26 ++++++------------ 4 files changed, 27 insertions(+), 22 deletions(-) create mode 100644 app/libs/sdkapi.jar create mode 100644 app/src/main/java/com/example/chabaidao/helper/ContextHolder.kt diff --git a/app/libs/sdkapi.jar b/app/libs/sdkapi.jar new file mode 100644 index 0000000000000000000000000000000000000000..c26927666cb16ac0167801b737f20204b8563425 GIT binary patch literal 5099 zcmaJ_2QVDk*I&I88>_5N^cJiZC0U}gh~C!IEmrR}YV?Fv5~4&WdXFBR=nNvPm0761Sz*N9Jb->?@3V;jHRMdkC zsKS(lG@&q6B}H95K~1IG5dh#sbM%vjx`5ymnYsY)_~=CavxhUHYn$jzY=E{p0byMz z_96W*D7s%;`+pNm{v!e7uTyJRq>yufm#veKm#eF@6T(YK<98%z?QH4kS(!l;#GubO z80uO-_8=>xKvkDp6QNkBiW8YGAI3H>PPQUWR2wF5S_AVb8E$A3-5+;Gp~J9=JtF*A z3E_H_4f>hDkxgS<8A)8Bd-w44WS-zPXy4sQ)Mp{>IDZD+%ujG-H=l$aUElr)JXtgK zT_O1+O!BFM##&x#_QBBGZE%*f+0wYP_)3z?Z4s;BWR2?Ad|w+cr<#q^FioWqkctgz z!K`?VfA|gd3$GJL-Hx3}PdjDRCZoJ#o6jOEy0|7LZQgv@&0}85BTZ(#9@6O;&pz|z zCMA~6Q5ZduUY?SC1XZa6(iHWC5e%6jVUV$m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app/src/main/java/com/example/chabaidao/MainActivity.java b/app/src/main/java/com/example/chabaidao/MainActivity.java index e5fd674..2d7cb1d 100644 --- a/app/src/main/java/com/example/chabaidao/MainActivity.java +++ b/app/src/main/java/com/example/chabaidao/MainActivity.java @@ -4,8 +4,6 @@ import android.app.Activity; import android.os.Bundle; import androidx.core.content.ContextCompat; -import com.qmuiteam.qmui.widget.QMUITopBarLayout; - public class MainActivity extends Activity { @Override @@ -13,8 +11,5 @@ public class MainActivity extends Activity { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); - QMUITopBarLayout mTopBar=findViewById(R.id.topbar); - mTopBar.setBackgroundColor(ContextCompat.getColor(this, R.color.app_color_theme_4)); - mTopBar.setTitle("沉浸式状态栏示例"); } } \ No newline at end of file diff --git a/app/src/main/java/com/example/chabaidao/helper/ContextHolder.kt b/app/src/main/java/com/example/chabaidao/helper/ContextHolder.kt new file mode 100644 index 0000000..aa8db92 --- /dev/null +++ b/app/src/main/java/com/example/chabaidao/helper/ContextHolder.kt @@ -0,0 +1,18 @@ +/* + * Tencent is pleased to support the open source community by making QMUI_Android available. + * + * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the MIT License (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://opensource.org/licenses/MIT + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is + * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.example.chabaidao; +import android.content.Context +val appContext: Context = MyApplication.instance.applicationContext; diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 0791d32..26959e5 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,24 +1,16 @@ - - - - - - - - - - - - \ No newline at end of file + + + \ No newline at end of file