mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Make the ImageView to be of the specific type
Change-Id: I51ced26ea0b654457919d915e322d91eb211f781
This commit is contained in:
parent
d7736f2048
commit
2da5453ec1
1 changed files with 3 additions and 2 deletions
|
|
@ -4,10 +4,11 @@ import android.view.View;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.ProgressBar;
|
import android.widget.ProgressBar;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
import org.wikimedia.commons.MediaWikiImageView;
|
||||||
import org.wikimedia.commons.R;
|
import org.wikimedia.commons.R;
|
||||||
|
|
||||||
class ContributionViewHolder {
|
class ContributionViewHolder {
|
||||||
final ImageView imageView;
|
final MediaWikiImageView imageView;
|
||||||
final TextView titleView;
|
final TextView titleView;
|
||||||
final TextView stateView;
|
final TextView stateView;
|
||||||
final TextView seqNumView;
|
final TextView seqNumView;
|
||||||
|
|
@ -16,7 +17,7 @@ class ContributionViewHolder {
|
||||||
String url;
|
String url;
|
||||||
|
|
||||||
ContributionViewHolder(View parent) {
|
ContributionViewHolder(View parent) {
|
||||||
imageView = (ImageView)parent.findViewById(R.id.contributionImage);
|
imageView = (MediaWikiImageView) parent.findViewById(R.id.contributionImage);
|
||||||
titleView = (TextView)parent.findViewById(R.id.contributionTitle);
|
titleView = (TextView)parent.findViewById(R.id.contributionTitle);
|
||||||
stateView = (TextView)parent.findViewById(R.id.contributionState);
|
stateView = (TextView)parent.findViewById(R.id.contributionState);
|
||||||
seqNumView = (TextView)parent.findViewById(R.id.contributionSequenceNumber);
|
seqNumView = (TextView)parent.findViewById(R.id.contributionSequenceNumber);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue