!!!!! 已使用 Kotlin + Jetpack + MVVM 重构 QMUI-MVVM
Основной является базовая структура, основанная на QMUI, которая представляет собой набор инструментов для разработки приложений.
Как создать типичный главный экран (ViewPager + Tab).
Как создать типичную панель заголовка + Tab + ViewPager компоновку
Как создать типичное отображение списка
Ленивая загрузка? Вытягивание для обновления? Загрузка дополнительных данных? Пустая страница? Страница ошибки сети? Всё это уже реализовано.
LIST? GRID? STAGGERED? Одна строка кода.
@Override
protected int setType() {
return TYPE_LIST? TYPE_GRID? TYPE_STAGGERED;
}
QQ группа: 761201022
allprojects {
repositories {
maven { url 'https://jitpack.io' }
google()
jcenter()
}
}
implementation 'com.gitee.theoneee:TheBase:lastversion`
Также можно добавить: annotationProcessor 'com.ljx.rxhttp:rxhttp-compiler:$rxhttpVersion' // Интеграция RxHttp, если требуется annotationProcessor 'com.jakewharton:butterknife-compiler:$butterknifeVersion' // Компилятор аннотаций Butterknife
[Версия доступна здесь](https://gitee.com/theoneee/TheBase/blob/master/baseConfigs.gradle)
3. В манифесте укажите для приложения:
android:name="the.one.base.BaseApplication"
или наследуйте BaseApplication и укажите своё имя.
Стиль AppTheme должен наследовать BaseTheme:
You can comment after Login
Inappropriate content may be displayed here and will not be shown on the page. You can check and modify it through the relevant editing function
If you confirm that the content does not involve inappropriate language/advertisement redirection/violence/vulgar pornography/infringement/piracy/false/insignificant or illegal content related to national laws and regulations, you can click submit to make an appeal, and we will handle it as soon as possible.
Comments ( 0 )