Skip to content

Commit

Permalink
initViews方法加入泛型参数
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyoona7 committed Jul 17, 2018
1 parent ad6618b commit 61928bb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected void initAttributes() {
}

@Override
protected void initViews(View view, BasePopup basePopup) {
protected void initViews(View view, CmmtPopup basePopup) {

mCancelTv = findViewById(R.id.tv_cancel);
mOkTv = findViewById(R.id.tv_ok);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected void initAttributes() {
}

@Override
protected void initViews(View view, BasePopup basePopup) {
protected void initViews(View view, ComplexPopup basePopup) {
mOkBtn = findViewById(R.id.btn_ok);
mCancelBtn = findViewById(R.id.btn_cancel);
mRecyclerView = findViewById(R.id.rv_complex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected void initAttributes() {
}

@Override
protected void initViews(View view, BasePopup basePopup) {
protected void initViews(View view, EverywherePopup basePopup) {

// setOnRealWHAlreadyListener(new OnRealWHAlreadyListener() {
// @Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected void initAttributes() {
}

@Override
protected void initViews(View view, BasePopup basePopup) {
protected void initViews(View view, GiftPopup basePopup) {
mRecyclerView = findViewById(R.id.rv_gift);
mRecyclerView.setLayoutManager(new GridLayoutManager(mRecyclerView.getContext(), 4, GridLayoutManager.VERTICAL, false));
List<String> list = createList();
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/main/java/com/zyyoona7/popup/BasePopup.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ protected void onPopupWindowDismiss() {
*
* @param view
*/
protected abstract void initViews(View view, BasePopup popup);
protected abstract void initViews(View view, T popup);

/**
* 是否需要测量 contentView的大小
Expand Down
2 changes: 1 addition & 1 deletion lib/src/main/java/com/zyyoona7/popup/EasyPopup.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected void initAttributes() {
}

@Override
protected void initViews(View view, BasePopup popup) {
protected void initViews(View view, EasyPopup popup) {
if (mOnViewListener != null) {
mOnViewListener.initViews(view, popup);
}
Expand Down

0 comments on commit 61928bb

Please sign in to comment.