<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          T-MVP

          聯(lián)合創(chuàng)作 · 2023-09-24 12:35

          Apt、AspectJ、Javassisit

          If you're confused about Android development, maybe it's time to open the door to a new world .

          TMVP is a Aop Architecture with Apt、AspectJ、Javassisit, which based on Realm+Databinding+MVP+Retrofit+Rxjava2+MaterialDesign。

          Build more complex functions with cleaner code,talk is cheap ,show u the code:

          The following code to achieve the list of users to obtain the request, paging, display, just a sentence to achieve the entire complex module(ApiFactory is automatically generated by apt):

              mViewBinding.lvUser.getPresenter().setRepository(ApiFactory::getAllUser).fetch();
          

          The user list itemType is its layoutId, set by attr in xml:

            <com.base.adapter.TRecyclerView
                      android:id="@+id/lv_user"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      app:isRefreshable="false"
                      app:itemType="@layout/list_item_user"
                      app:layout_behavior="@string/appbar_scrolling_view_behavior" />
          

          no Adapter,no ViewHolder,no onRefreshListener,on onLoadMoreListener

          maybe u will like it.

          ===============Gorgeous dividing line===================

          ===============華麗麗的分界線===================

          ####為兼容linux、ubuntu等系統(tǒng),已發(fā)布插件到本地repo文件夾下,如果你對(duì)插件內(nèi)容有所修改,則需要重新發(fā)布,運(yùn)行前需要在Terminal中運(yùn)行 ./gradlew -p buildsrc clean build uploadArchives --info

          QQ群:AndroidMVP 555343041 AndroidMVP

          #更新日志:

          2017/1/31:AOP新增SysPermissionAspect支持動(dòng)態(tài)申請(qǐng)系統(tǒng)權(quán)限切片,輕松適配6.0+

          2017/1/27:AOP新增DbRealmAspect支持Realm數(shù)據(jù)庫(kù),數(shù)據(jù)庫(kù)突破你想像的簡(jiǎn)單(年夜特供)

          2017/1/9: AOP新增CheckLoginAspect切片攔截未登陸用戶,控制未登陸用戶的操作權(quán)限

          2017/1/8: 使用Apt封裝Retrofit生成ApiFactory替換掉所有的Repository,狂刪代碼

          2017/1/7: 使用DataBinding替換掉所有的ButterKnife,狂刪代碼

          2017/1/6: 使用DataBinding替換掉所有的ViewHolder,狂刪代碼,從此邁向新時(shí)代

          2016/12/30:使用Apt生成全局路由TRouter,更優(yōu)雅的頁(yè)面跳轉(zhuǎn),支持傳遞參數(shù)和共享view轉(zhuǎn)場(chǎng)動(dòng)畫(huà)

          2016/12/29:去掉BaseMultiVH新增VHSelector支持更完美的多ViewHolder

          2016/12/28:使用Apt生成全局的ApiFactory替代所有的Model

          2016/12/27:增加了BaseMultiVH擴(kuò)展支持多類(lèi)型的ViewHolder

          2016/12/26:抽離CoreAdapterPresenter優(yōu)化TRecyclerView

          #系列文章:

          ##安卓AOP實(shí)戰(zhàn):面向切片編程

          ##Android實(shí)用技巧之:用好泛型,少寫(xiě)代碼

          ##安卓AOP實(shí)戰(zhàn):APT打造極簡(jiǎn)路由

          全局路由TRouter,更優(yōu)雅的頁(yè)面跳轉(zhuǎn)

          ##安卓AOP實(shí)戰(zhàn):Javassist強(qiáng)擼EventBus

          加入OkBus,實(shí)現(xiàn)注解傳遞事件

          ##安卓AOP三劍客:APT,AspectJ,Javassist

          1、去掉所有反射>2、新增apt初始化工廠,替換掉了dagger2。>3、新增aop切片,處理緩存和日志

          關(guān)鍵詞 AOP+MVP+Retrofit+Rxjava+MaterialDesign+LeanCloud+NodeJS

          簡(jiǎn)書(shū):http://www.jianshu.com/p/b49958e1889d

          weibo:http://weibo.com/1917320262

          Github:https://github.com/north2016/T-MVP

          #答疑 運(yùn)行報(bào)錯(cuò)的,自覺(jué)google,檢查As版本(2.2.2),gradle配置等(AndroidStudio每個(gè)版本gradle的api都不一樣,坑),低版本手機(jī)FloatingActionButton在xml會(huì)報(bào)錯(cuò),因?yàn)閕con用了SVG(5.0+)

          參考配置: as:2.2.2 grade:2.2.3 buildTools:24.0.3

          本demo現(xiàn)階段處于快速優(yōu)化迭代狀態(tài),只提供idea,暫不提供lib

          License

          Copyright 2016 north
          
          Licensed under the Apache License, Version 2.0 (the "License");
          you may not use this file except in compliance with the License.
          You may obtain a copy of the License at
          
              http://www.apache.org/licenses/LICENSE-2.0
          
          Unless required by applicable law or agreed to in writing, software
          distributed under the License is distributed on an "AS IS" BASIS,
          WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          See the License for the specific language governing permissions and
          limitations under the License.
          
          瀏覽 2
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  肏屄乱伦视频 | 亚洲精品午夜在线 | 毛片大片| 向井蓝无码精品一区二区 | 人妻色综合 |