Merge pull request #2531 from AntennaPod/remove_nineoldandroids
Replace ViewHelper
This commit is contained in:
commit
be569bfb14
|
@ -21,7 +21,6 @@ import android.widget.TextView;
|
|||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.joanzapata.iconify.Iconify;
|
||||
import com.nineoldandroids.view.ViewHelper;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
|
@ -129,9 +128,9 @@ public class AllEpisodesRecycleAdapter extends RecyclerView.Adapter<AllEpisodesR
|
|||
holder.statusUnread.setVisibility(View.VISIBLE);
|
||||
}
|
||||
if(item.isPlayed()) {
|
||||
ViewHelper.setAlpha(holder.content, 0.5f);
|
||||
holder.content.setAlpha(0.5f);
|
||||
} else {
|
||||
ViewHelper.setAlpha(holder.content, 1.0f);
|
||||
holder.content.setAlpha(1.0f);
|
||||
}
|
||||
|
||||
FeedMedia media = item.getMedia();
|
||||
|
@ -272,12 +271,12 @@ public class AllEpisodesRecycleAdapter extends RecyclerView.Adapter<AllEpisodesR
|
|||
|
||||
@Override
|
||||
public void onItemSelected() {
|
||||
ViewHelper.setAlpha(itemView, 0.5f);
|
||||
itemView.setAlpha(0.5f);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onItemClear() {
|
||||
ViewHelper.setAlpha(itemView, 1.0f);
|
||||
itemView.setAlpha(1.0f);
|
||||
}
|
||||
|
||||
public FeedItem getFeedItem() { return item; }
|
||||
|
|
|
@ -12,7 +12,6 @@ import android.widget.ImageView;
|
|||
import android.widget.TextView;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.nineoldandroids.view.ViewHelper;
|
||||
|
||||
import de.danoeh.antennapod.R;
|
||||
import de.danoeh.antennapod.core.feed.FeedItem;
|
||||
|
@ -87,9 +86,9 @@ public class DownloadedEpisodesListAdapter extends BaseAdapter {
|
|||
.into(holder.imageView);
|
||||
|
||||
if(item.isPlayed()) {
|
||||
ViewHelper.setAlpha(convertView, 0.5f);
|
||||
convertView.setAlpha(0.5f);
|
||||
} else {
|
||||
ViewHelper.setAlpha(convertView, 1.0f);
|
||||
convertView.setAlpha(1.0f);
|
||||
}
|
||||
|
||||
holder.title.setText(item.getTitle());
|
||||
|
|
|
@ -17,8 +17,6 @@ import android.widget.LinearLayout;
|
|||
import android.widget.ProgressBar;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.nineoldandroids.view.ViewHelper;
|
||||
|
||||
import de.danoeh.antennapod.R;
|
||||
import de.danoeh.antennapod.core.feed.FeedItem;
|
||||
import de.danoeh.antennapod.core.feed.FeedMedia;
|
||||
|
@ -43,7 +41,7 @@ public class FeedItemlistAdapter extends BaseAdapter {
|
|||
private boolean makePlayedItemsTransparent;
|
||||
private final ActionButtonUtils actionButtonUtils;
|
||||
|
||||
public static final int SELECTION_NONE = -1;
|
||||
private static final int SELECTION_NONE = -1;
|
||||
|
||||
private final int playingBackGroundColor;
|
||||
private final int normalBackGroundColor;
|
||||
|
@ -145,9 +143,9 @@ public class FeedItemlistAdapter extends BaseAdapter {
|
|||
holder.statusUnread.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
if(item.isPlayed() && makePlayedItemsTransparent) {
|
||||
ViewHelper.setAlpha(convertView, 0.5f);
|
||||
convertView.setAlpha(0.5f);
|
||||
} else {
|
||||
ViewHelper.setAlpha(convertView, 1.0f);
|
||||
convertView.setAlpha(1.0f);
|
||||
}
|
||||
|
||||
String pubDateStr = DateUtils.formatAbbrev(context, item.getPubDate());
|
||||
|
|
|
@ -24,7 +24,6 @@ import android.widget.TextView;
|
|||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.joanzapata.iconify.Iconify;
|
||||
import com.nineoldandroids.view.ViewHelper;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
|
||||
|
@ -198,12 +197,12 @@ public class QueueRecyclerAdapter extends RecyclerView.Adapter<QueueRecyclerAdap
|
|||
|
||||
@Override
|
||||
public void onItemSelected() {
|
||||
ViewHelper.setAlpha(itemView, 0.5f);
|
||||
itemView.setAlpha(0.5f);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onItemClear() {
|
||||
ViewHelper.setAlpha(itemView, 1.0f);
|
||||
itemView.setAlpha(1.0f);
|
||||
}
|
||||
|
||||
public void bind(FeedItem item) {
|
||||
|
|
|
@ -11,7 +11,6 @@ import android.widget.ImageView;
|
|||
import android.widget.TextView;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.nineoldandroids.view.ViewHelper;
|
||||
|
||||
import de.danoeh.antennapod.R;
|
||||
import de.danoeh.antennapod.core.feed.Feed;
|
||||
|
@ -97,7 +96,7 @@ public class SearchlistAdapter extends BaseAdapter {
|
|||
holder.subtitle.setText(result.getSubtitle());
|
||||
}
|
||||
|
||||
ViewHelper.setAlpha(convertView, item.isPlayed() ? 0.5f : 1.0f);
|
||||
convertView.setAlpha(item.isPlayed() ? 0.5f : 1.0f);
|
||||
|
||||
Glide.with(context)
|
||||
.load(item.getFeed().getImageLocation())
|
||||
|
|
|
@ -60,7 +60,6 @@ dependencies {
|
|||
compile "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
||||
compile "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
||||
compile "com.squareup.okio:okio:$okioVersion"
|
||||
compile "com.nineoldandroids:library:2.4.0"
|
||||
compile "de.greenrobot:eventbus:$eventbusVersion"
|
||||
compile "io.reactivex:rxandroid:$rxAndroidVersion"
|
||||
|
||||
|
|
Loading…
Reference in New Issue