Add sad panda head

This commit is contained in:
seven332 committed 2016-02-04 23:14:03 +08:00
1 parent 4924c1f08c
commit f7b443e0fa
5 files changed
+61 -37

No files matched your search

@@ -297,8 +297,10 @@ public class GalleryDetailScene extends BaseScene implements View.OnClickListene
View mainView = main.findViewById(R.id.scroll_view);
View progressView = main.findViewById(R.id.progress_view);
mFailedView = (ViewGroup) main.findViewById(R.id.tip);
SimpleImageView mFailedImage = (SimpleImageView) mFailedView.getChildAt(0);
mFailedText = (TextView) mFailedView.getChildAt(1);
mFailedView.setOnClickListener(this);
mFailedImage.setDrawable(VectorDrawable.create(getContext(), R.drawable.sadpanda_head));
mViewTransition = new ViewTransition(mainView, progressView, mFailedView);
mHeader = mainView.findViewById(R.id.header);
@@ -362,6 +364,8 @@ public class GalleryDetailScene extends BaseScene implements View.OnClickListene
mPreviews = belowHeader.findViewById(R.id.previews);
mGridLayout = (SimpleGridLayout) mPreviews.findViewById(R.id.grid_layout);
mPreviewText = (TextView) mPreviews.findViewById(R.id.preview_text);
RippleSalon.addRipple(mPreviews, false);
mPreviews.setOnClickListener(this);
mProgress = mainView.findViewById(R.id.progress);
@@ -706,8 +710,6 @@ public class GalleryDetailScene extends BaseScene implements View.OnClickListene
mPreviewText.setText(R.string.no_more_previews);
} else {
mPreviewText.setText(R.string.more_previews);
RippleSalon.addRipple(mPreviews, false);
mPreviews.setOnClickListener(this);
}
LayoutInflater inflater = getActivity().getLayoutInflater();
@@ -99,7 +99,7 @@ public class ContentLayout extends FrameLayout {
drawable.setColor(ResourcesUtils.getAttrColor(context, R.attr.colorAccent));
mFastScroller.setHandlerDrawable(drawable);
imageView.setDrawable(VectorDrawable.create(context, R.drawable.ic_emoticon_sad));
imageView.setDrawable(VectorDrawable.create(context, R.drawable.sadpanda_head));
mRefreshLayout.setHeaderColorSchemeResources(
R.color.loading_indicator_red,