开源APP
1、混合开发项目AHP
地址:https://github.com/Witnin/AHP
简介:Kotlin+Java
常用配置:
AndroidManifest配置:
1.1明文传输:
在application中添加配置
android:usesCleartextTraffic="true"
2、权限:
2.1介绍:
https://blog.csdn.net/u012514113/article/details/128865859
界面布局
LinearLayout线性布局:
RelativeLayout相对布局:
https://within.blog.csdn.net/article/details/130316622?spm=1001.2014.3001.5502
TableLayout表格布局:
FrameLayout帧布局:
ConstraintLayout约束布局:
资源创建
常用框架
汇总
ARouter、Atlas、CC
Koin、Hilt/dagger2
EasyPermission
Vacsonic、AgentWeb
Gson
Glide、picasso、Fresco
Retrofit/okhttp/okGo
Lottile
LeakCanery、DoKit
Zxing/Zbar
Sophix、TinkerPatch
Jetpack
Logger、Timber、Hugo
vLayout,tangram
Luban
banner
导航
1、集成ARouter导航框架
官网地址(停止维护):https://github.com/alibaba/ARouter/blob/master/README_CN.md
jadepeakpoet:https://github.com/jadepeakpoet/ARouter/blob/develop/README_CN.md
地址:https://within.blog.csdn.net/article/details/129297242?spm=1001.2014.3001.5502
2、集成Jetpack navigation
官网地址:https://developer.android.google.cn/jetpack/androidx/releases/navigation?hl=zh-cn#version_260_2
demo地址(xml配置改造为json读取):https://github.com/Witnin/Navigation_example
2.1、Navigation配置icon文字同时显示
配置icon文字同时显示BottomNavigationView加入app:labelVisibilityMode="labeled"
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/nav_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="0dp"
android:layout_marginEnd="0dp"
android:background="?android:attr/windowBackground"
app:labelVisibilityMode="labeled"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/bottom_nav_menu" />
打包:
普通打包:
https://within.blog.csdn.net/article/details/130399185?spm=1001.2014.3001.5502
VasDolly多渠道打包:
https://within.blog.csdn.net/article/details/130399447?spm=1001.2014.3001.5502
BUG汇总
1.ARouter:
1.1集成ARouter报错:
https://blog.csdn.net/qq_41264674/article/details/129296683?spm=1001.2014.3001.5501
2、Retrofit:
2.1 @Field parameters can only be used with form encoding:
https://within.blog.csdn.net/article/details/130339753?spm=1001.2014.3001.5502
3、AndroidStudio:
3.1 No version of NDK matched the requested version
https://within.blog.csdn.net/article/details/130531672?spm=1001.2014.3001.5502
JetPack Compose
1、上拉刷新、下拉加载:
https://within.blog.csdn.net/article/details/130250760?spm=1001.2014.3001.5502