1 Star 0 Fork 0

OSCHINA-MIRROR/theoneee-TheBase

Join Gitlife
Discover and participate in excellent open source projects with over 10 million developers. Private repositories are also completely free :)
Join for free
This repository does not have a declared open-source license file (LICENSE). Please refer to the specific project description and its code upstream dependencies when using.
Clone/Download
Contribute code
Sync code
Cancel
Hint: Since Git does not support empty folders, creating a folder will generate an empty .keep file.
Loading...
README.md

!!!!! 已使用 Kotlin + Jetpack + MVVM 重构 QMUI-MVVM

Gitee

Github

TheBase

介绍

Основной является базовая структура, основанная на QMUI, которая представляет собой набор инструментов для разработки приложений.

Предварительный просмотр

Ленивая загрузка? Вытягивание для обновления? Загрузка дополнительных данных? Пустая страница? Страница ошибки сети? Всё это уже реализовано.

LIST? GRID? STAGGERED? Одна строка кода.

@Override
protected int setType() {
    return TYPE_LIST? TYPE_GRID? TYPE_STAGGERED;
}

Для получения дополнительной информации рекомендуется ознакомиться с несколькими проектами и изучить их код.

Общение

QQ группа: 761201022

Использование

  1. Добавьте в корневой build:
allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
        google()
        jcenter()
    }
}
  1. В app build добавьте зависимости:
implementation 'com.gitee.theoneee:TheBase:lastversion`

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:
<style name="AppTheme" parent="BaseTheme"/> ``` #### Эти три пункта обязательны! #### Спасибо * [QMUI](https://github.com/Tencent/QMUI_Android) * [RxHttp](https://github.com/liujingxing/okhttp-RxHttp) #### Сторонние библиотеки ``` 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.40' 'homhomlin.lib:sldinglayout:0.9.0' 'com.github.bumptech.glide:glide:4.8.0' 'com.jakewharton:butterknife:8.8.1' 'org.greenrobot:eventbus:3.1.1' 'com.belerweb:pinyin4j:2.5.1' 'com.android.support:multidex:1.0.3' 'com.github.tbruyelle:rxpermissions:0.10.2' 'com.ms-square:expandableTextView:0.1.4' 'com.github.chrisbanes:PhotoView:2.0.0' 'com.orhanobut:logger:2.2.0' 'com.wkp:StickLayout:1.0.6' 'com.github.LuckSiege.PictureSelector:picture_library:v2.2.3' 'top.androidman:superbutton:1.1.0' 'com.rxjava.rxhttp:rxhttp:2.0.0' ..... ``` Некоторые библиотеки были интегрированы в проект для пользовательских целей, поэтому они не отображаются в зависимостях, но авторская информация о них сохранена. Содержание проекта является исключительно демонстрационным. you are the one.

Comments ( 0 )

You can comment after Login

Introduction

No description available Expand Collapse
Cancel

Releases (3)

All

Contributor

All

Recent Activities

Load more
No more results to load
1
https://gitlife.ru/oschina-mirror/theoneee-TheBase.git
git@gitlife.ru:oschina-mirror/theoneee-TheBase.git
oschina-mirror
theoneee-TheBase
theoneee-TheBase
master