-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from HKMOpen/v23.1.1-upgrade
V23.1.1 upgrade
- Loading branch information
Showing
28 changed files
with
1,068 additions
and
736 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...main/java/com/marshalchen/ultimaterecyclerview/demo/admobdemo/SingleItemCommonLayout.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package com.marshalchen.ultimaterecyclerview.demo.admobdemo; | ||
|
||
import android.graphics.Color; | ||
import android.view.View; | ||
import android.widget.ImageView; | ||
import android.widget.ProgressBar; | ||
import android.widget.RelativeLayout; | ||
import android.widget.TextView; | ||
|
||
import com.marshalchen.ultimaterecyclerview.demo.R; | ||
import com.marshalchen.ultimaterecyclerview.quickAdapter.AdItemHolder; | ||
|
||
/** | ||
* Created by hesk on 24/2/16. | ||
*/ | ||
public class SingleItemCommonLayout extends AdItemHolder { | ||
public TextView textViewSample; | ||
public ImageView imageViewSample; | ||
public ProgressBar progressBarSample; | ||
public RelativeLayout item_view; | ||
public SingleItemCommonLayout(View itemView, int type) { | ||
super(itemView, type); | ||
} | ||
|
||
@Override | ||
protected void bindNormal(View view) { | ||
textViewSample = (TextView) itemView.findViewById(R.id.str_textview_holder); | ||
imageViewSample = (ImageView) itemView.findViewById(R.id.str_image_holder); | ||
progressBarSample = (ProgressBar) itemView.findViewById(R.id.str_progress_holder); | ||
item_view = (RelativeLayout) itemView.findViewById(R.id.str_item_view); | ||
|
||
} | ||
|
||
@Override | ||
protected void bindAd(View view) { | ||
|
||
} | ||
|
||
|
||
@Override | ||
public void onItemSelected() { | ||
itemView.setBackgroundColor(Color.LTGRAY); | ||
} | ||
|
||
@Override | ||
public void onItemClear() { | ||
itemView.setBackgroundColor(0); | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...p/src/main/java/com/marshalchen/ultimaterecyclerview/demo/admobdemo/SingleItemHolder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package com.marshalchen.ultimaterecyclerview.demo.admobdemo; | ||
|
||
import android.support.annotation.NonNull; | ||
import android.view.View; | ||
import android.widget.ImageView; | ||
import android.widget.ProgressBar; | ||
import android.widget.TextView; | ||
|
||
import com.marshalchen.ultimaterecyclerview.URLogs; | ||
import com.marshalchen.ultimaterecyclerview.demo.R; | ||
import com.marshalchen.ultimaterecyclerview.quickAdapter.AdItemHolder; | ||
|
||
/** | ||
* Created by hesk on 24/2/16. | ||
*/ | ||
public class SingleItemHolder extends AdItemHolder implements | ||
View.OnClickListener, View.OnLongClickListener { | ||
public TextView textViewSample, num; | ||
public ImageView imageViewSample; | ||
public ProgressBar progressBarSample; | ||
|
||
public SingleItemHolder(View itemView, int type) { | ||
super(itemView, type); | ||
} | ||
|
||
@Override | ||
protected void bindNormal(View view) { | ||
textViewSample = (TextView) itemView.findViewById(R.id.textview); | ||
num = (TextView) itemView.findViewById(R.id.numb_coun); | ||
imageViewSample = (ImageView) itemView.findViewById(R.id.imageview); | ||
progressBarSample = (ProgressBar) itemView.findViewById(R.id.progressbar); | ||
progressBarSample.setVisibility(View.GONE); | ||
} | ||
|
||
@Override | ||
protected void bindAd(View view) { | ||
|
||
} | ||
|
||
@Override | ||
public void onClick(@NonNull View v) { | ||
URLogs.d(textViewSample.getText() + " clicked!"); | ||
} | ||
|
||
@Override | ||
public boolean onLongClick(@NonNull View v) { | ||
URLogs.d(textViewSample.getText() + " long clicked!"); | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.