From 2ce81daeedee3f0df94dfc6b474f65356d6fd64a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=92=B8=E9=B1=BC=E8=87=B3=E5=B0=8A?= <1738099872@qq.com> Date: Wed, 24 Jan 2024 15:01:57 +0800 Subject: [PATCH] =?UTF-8?q?=20=E9=80=82=E9=85=8D=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E7=89=88AndroidStudio(=E7=94=B5=E9=B3=97-=E9=95=BF=E9=A2=88?= =?UTF-8?q?=E9=B9=BF)=EF=BC=8C=E4=B8=89=E6=96=B9=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=BA=93=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0=EF=BC=8C=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC=EF=BC=8C4.0.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 11 ++++++----- .../example/wanAndroid/ui/fragment/SquareFragment.kt | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 53a8566..444dbc9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,8 +12,8 @@ android { applicationId "com.example.wanandroid" minSdk 24 targetSdk 33 - versionCode 22 - versionName "4.0.2" + versionCode 23 + versionName "4.0.3" // 仅保留中文语种的资源 resConfigs 'zh' @@ -106,6 +106,7 @@ dependencies { implementation 'com.squareup.retrofit2:converter-gson:2.9.0'*/ //endregion //vm生命周期kotlin扩展包 + //noinspection GradleDependency implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2' //navigation支持 //noinspection GradleDependency @@ -130,7 +131,7 @@ dependencies { implementation 'com.github.liangjingkanji:StateLayout:1.4.1'*/ //endregion //RecyclerView https://github.com/liangjingkanji/BRV - implementation 'com.github.liangjingkanji:BRV:1.5.6' + implementation 'com.github.liangjingkanji:BRV:1.5.8' //Adapter https://github.com/CymChad/BaseRecyclerViewAdapterHelper implementation "io.github.cymchad:BaseRecyclerViewAdapterHelper:3.0.14" //序列化数据 https://github.com/liangjingkanji/Serialize @@ -146,7 +147,7 @@ dependencies { //图片加载 https://github.com/bumptech/glide implementation 'com.github.bumptech.glide:glide:4.16.0' //轮播图 https://github.com/youth5201314/banner - implementation 'io.github.youth5201314:banner:2.2.2' + implementation 'io.github.youth5201314:banner:2.2.3' //相机相册 https://github.com/HuanTanSheng/EasyPhotos implementation 'com.github.HuanTanSheng:EasyPhotos:3.1.5' //标题栏 https://github.com/getActivity/TitleBar @@ -164,7 +165,7 @@ dependencies { //垂直选项卡布局 https://github.com/qstumn/VerticalTabLayout implementation 'q.rorbin:VerticalTabLayout:1.2.9' //web浏览器 https://github.com/Justson/AgentWeb - implementation 'com.github.Justson.AgentWeb:agentweb-core:v5.0.6-androidx' + implementation 'io.github.justson:agentweb-core:v5.1.1-androidx' //web文件下载 https://github.com/Justson/Downloader implementation 'com.github.Justson:Downloader:v5.0.4-androidx' //web进度指示条 https://github.com/Justson/CoolIndicator diff --git a/app/src/main/java/com/example/wanAndroid/ui/fragment/SquareFragment.kt b/app/src/main/java/com/example/wanAndroid/ui/fragment/SquareFragment.kt index 9b6446a..18e681e 100644 --- a/app/src/main/java/com/example/wanAndroid/ui/fragment/SquareFragment.kt +++ b/app/src/main/java/com/example/wanAndroid/ui/fragment/SquareFragment.kt @@ -7,6 +7,7 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.FrameLayout +import androidx.appcompat.widget.Toolbar import androidx.fragment.app.Fragment import androidx.viewpager2.widget.ViewPager2 import com.drake.serialize.intent.openActivity @@ -30,7 +31,7 @@ class SquareFragment : Fragment() { private val toolbar: MaterialToolbar by lazy { requireActivity().findViewById(R.id.toolbar) } private val viewPager: ViewPager2 by lazy { requireView().findViewById(R.id.view_pager) } private val magicIndicator: MagicIndicator by lazy { requireView().findViewById(R.id.magic_indicator) } - private val toolbarChild: androidx.appcompat.widget.Toolbar by lazy { requireView().findViewById(R.id.include_viewpager_toolbar) } + private val toolbarChild: Toolbar by lazy { requireView().findViewById(R.id.include_viewpager_toolbar) } /** fragment集合 */ private val fragments: ArrayList by lazy { arrayListOf() }