Skip to content

Commit

Permalink
发布3.0.1版本
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexiangjys committed Dec 9, 2020
1 parent c19a68f commit 2356c5f
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 20 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![I](https://img.shields.io/github/issues/xuexiangjys/XPage.svg)](https://github.com/xuexiangjys/XPage/issues)
[![Star](https://img.shields.io/github/stars/xuexiangjys/XPage.svg)](https://github.com/xuexiangjys/XPage)

一个非常方便的fragment页面框架!还不赶紧点击[使用说明文档](https://github.com/xuexiangjys/XPage/wiki),体验一下吧!
一个非常方便的Fragment页面框架!还不赶紧点击[使用说明文档](https://github.com/xuexiangjys/XPage/wiki),体验一下吧!

另外,你还可以参见[XPage视频教程](https://space.bilibili.com/483850585/channel/detail?cid=150979)进行学习。

Expand Down Expand Up @@ -78,8 +78,8 @@ allprojects {
dependencies {
...
// XPage
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.0'
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.0'
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.1'
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.1'
// ButterKnife的sdk
implementation 'com.jakewharton:butterknife:10.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
Expand Down Expand Up @@ -108,8 +108,8 @@ apply plugin: 'kotlin-kapt'
dependencies {
...
//XPage
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.0'
kapt 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.0'
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.1'
kapt 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.1'
//ButterKnife的sdk
implementation 'com.jakewharton:butterknife:10.1.0'
kapt 'com.jakewharton:butterknife-compiler:10.1.0'
Expand Down
8 changes: 4 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ allprojects {
dependencies {
...
// XPage
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.0'
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.0'
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.1'
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.1'
// ButterKnife的sdk
implementation 'com.jakewharton:butterknife:10.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
Expand Down Expand Up @@ -77,8 +77,8 @@ apply plugin: 'kotlin-kapt'
dependencies {
...
//XPage
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.0'
kapt 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.0'
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.1'
kapt 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.1'
//ButterKnife的sdk
implementation 'com.jakewharton:butterknife:10.1.0'
kapt 'com.jakewharton:butterknife-compiler:10.1.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ public boolean dispatchTouchEvent(MotionEvent ev) {
}

/**
* 处理向下点击事件【默认在这里做隐藏输入框的处理,不想处理的话,可以重写改方法
* 处理向下点击事件【默认在这里做隐藏输入框的处理,不想处理的话,可以重写该方法
*
* @param ev 点击事件
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ public Class[] getSimplePageClasses() {
/**
* 获取页面的类集合[使用@Page注解进行注册的页面]
*
* @return
* @return 页面的类集合
*/
protected abstract Class[] getPagesClasses();

/**
* 获取页面名称集合
*
* @param classes
* @return
* @param classes 页面类集合
* @return 页面名称集合
*/
private List<String> getSimplePageNames(Class... classes) {
List<String> simplePageList = new ArrayList<>();
if (classes != null && classes.length > 0) {
for (int i = 0; i < classes.length; i++) {
simplePageList.add(PageConfig.getPageInfo(classes[i]).getName());
for (Class aClass : classes) {
simplePageList.add(PageConfig.getPageInfo(aClass).getName());
}
}
return simplePageList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ public void onDestroy() {
/**
* 获取根布局
*
* @return
* @return 根布局
*/
public View getRootView() {
return mRootView;
Expand Down Expand Up @@ -725,7 +725,7 @@ public interface OnFragmentFinishListener {
*
* @param requestCode 请求码
* @param resultCode 结果码
* @param intent
* @param intent 返回的数据
*/
void onFragmentResult(int requestCode, int resultCode, Intent intent);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,12 @@ protected void initListeners() {
protected ListView getListView() {
return mListView;
}

@Override
public void onDestroyView() {
if (mListView != null) {
mListView.setOnItemClickListener(null);
}
super.onDestroyView();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public void onItemClick(AdapterView<?> adapterView, View view, int position, lon
/**
* 初始化例子
*
* @return
* @param lists 例子数据
* @return 例子数据
*/
protected abstract List<String> initSimpleData(List<String> lists);

Expand All @@ -51,11 +52,11 @@ public void onItemClick(AdapterView<?> adapterView, View view, int position, lon
protected abstract void onItemClick(int position);

@Override
public void onDestroy() {
public void onDestroyView() {
if (mSimpleData != null && mSimpleData.size() > 0) {
mSimpleData.clear();
}
super.onDestroy();
super.onDestroyView();
}

protected String getSimpleDataItem(int position) {
Expand Down

0 comments on commit 2356c5f

Please sign in to comment.