open source app
1. Mixed development project AHP
Address: https://github.com/Witnin/AHP
Introduction: Kotlin+Java
Common configuration:
AndroidManifest configuration:
1.1 Clear text transmission:
Add configuration to application
android:usesCleartextTraffic="true"
2. Permissions:
2.1 Introduction:
https://blog.csdn.net/u012514113/article/details/128865859
interface layout
LinearLayout linear layout:
RelativeLayout relative layout:
https://within.blog.csdn.net/article/details/130316622?spm=1001.2014.3001.5502
TableLayout table layout:
FrameLayout frame layout:
ConstraintLayout constraint layout:
resource creation
.9.png image creation: https://within.blog.csdn.net/article/details/130951380?spm=1001.2014.3001.5502
XML vector graphics creation: https://within.blog.csdn.net/article/details/130578280?spm=1001.2014.3001.5502
Common framework
summary
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
navigation
1. Integrated ARouter navigation framework
Official website address (stop maintenance): https://github.com/alibaba/ARouter/blob/master/README_CN.md
jadepeakpoet:https://github.com/jadepeakpoet/ARouter/blob/develop/README_CN.md
Address: https://within.blog.csdn.net/article/details/129297242?spm=1001.2014.3001.5502
2. Integrated Jetpack navigation
Official website address: https://developer.android.google.cn/jetpack/androidx/releases/navigation?hl=zh-cn#version_260_2
demo address (xml configuration transformed into json read): https://github.com/Witnin/Navigation_example
2.1, Navigation configuration icon text is displayed at the same time
Configure icon text and display BottomNavigationView at the same time Add 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" />
Pack:
Ordinary packaging:
https://within.blog.csdn.net/article/details/130399185?spm=1001.2014.3001.5502
VasDolly multi-channel packaging:
https://within.blog.csdn.net/article/details/130399447?spm=1001.2014.3001.5502
BUG Summary
1.ARouter:
1.1 Integrated ARouter error:
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. Pull up to refresh, pull down to load:
https://within.blog.csdn.net/article/details/130250760?spm=1001.2014.3001.5502