Use sad pandroid icon instead of weird face icon

This commit is contained in:
seven332 committed 2018-12-18 17:44:16 +08:00
1 parent 14328eaf83
commit a2db9038e3
10 files changed
+45 -37

No files matched your search

@@ -194,7 +194,7 @@ public final class GalleryCommentsScene extends ToolbarScene
Resources resources = context.getResources();
int paddingBottomFab = resources.getDimensionPixelOffset(R.dimen.gallery_padding_bottom_fab);
Drawable drawable = DrawableManager.getVectorDrawable(context, R.drawable.big_weird_face);
Drawable drawable = DrawableManager.getVectorDrawable(context, R.drawable.big_sad_pandroid);
drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
tip.setCompoundDrawables(null, drawable, null, null);
@@ -424,7 +424,7 @@ public class GalleryDetailScene extends BaseScene implements View.OnClickListene
Context context = getContext2();
AssertUtils.assertNotNull(context);
Drawable drawable = DrawableManager.getVectorDrawable(context, R.drawable.big_weird_face);
Drawable drawable = DrawableManager.getVectorDrawable(context, R.drawable.big_sad_pandroid);
drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
mTip.setCompoundDrawables(null, drawable, null, null);
mTip.setOnClickListener(this);
@@ -170,7 +170,7 @@ public final class ProgressScene extends BaseScene implements View.OnClickListen
Context context = getContext2();
AssertUtils.assertNotNull(context);
Drawable drawable = DrawableManager.getVectorDrawable(context, R.drawable.big_weird_face);
Drawable drawable = DrawableManager.getVectorDrawable(context, R.drawable.big_sad_pandroid);
drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
mTip.setCompoundDrawables(null, drawable, null, null);
mTip.setOnClickListener(this);
@@ -301,7 +301,7 @@ public class ContentLayout extends FrameLayout {
mRefreshLayout = contentLayout.mRefreshLayout;
mRecyclerView = contentLayout.mRecyclerView;
Drawable drawable = DrawableManager.getVectorDrawable(getContext(), R.drawable.big_weird_face);
Drawable drawable = DrawableManager.getVectorDrawable(getContext(), R.drawable.big_sad_pandroid);
drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
mTipView.setCompoundDrawables(null, drawable, null, null);
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2018 Hippo Seven
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:height="120dp"
android:width="120dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="?attr/drawableColorSecondary"
android:pathData="M16.5,10.8c-0.61,0-1.1,0.49-1.1,1.1c0,0.61,0.49,1.1,1.1,1.1s1.1-0.49,1.1-1.1C17.6,11.29,17.11,10.8,16.5,10.8z"/>
<path
android:fillColor="?attr/drawableColorSecondary"
android:pathData="M8.2,10.1c-0.61,0-1.1,0.49-1.1,1.1s0.49,1.1,1.1,1.1s1.1-0.49,1.1-1.1S8.81,10.1,8.2,10.1z"/>
<path
android:fillColor="?attr/drawableColorSecondary"
android:pathData="M22.1,16.4c-0.46-3.33-2.24-5.93-4.81-7.45L19.5,6.3c0.1-0.1,0.1-0.3,0-0.4c-0.1-0.1-0.3-0.1-0.4,0l-2.27,2.79c-1.26-0.66-2.69-1.07-4.23-1.19c-1.4-0.15-2.77-0.01-4.05,0.37L6.7,4.7C6.6,4.6,6.4,4.5,6.3,4.6C6.2,4.7,6.1,4.9,6.2,5l1.79,3.05c-2.83,1.02-5.12,3.3-6.19,6.55l15.44,1.37c0,0.02-0.01,0.04-0.01,0.05c0,0.59,0.48,1.07,1.07,1.07c0.54,0,0.97-0.41,1.04-0.93L22.1,16.4z M2.63,14.07c1.51-3.74,4.83-6.03,8.84-6.03c0.35,0,0.71,0.02,1.07,0.06c4.55,0.36,7.94,3.33,8.84,7.64l-2.12-0.19c-0.27-0.68-0.95-1.46-0.95-1.46s-0.58,0.66-0.89,1.29L2.63,14.07z"/>
</vector>
@@ -1,29 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2016 Hippo Seven
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:height="120dp"
android:width="120dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="?attr/drawableColorSecondary"
android:pathData="@string/pd_big_weird_face"/>
</vector>
@@ -34,7 +34,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:drawablePadding="16dp"
android:drawablePadding="8dp"
android:text="@string/no_one_comments_gallery"
style="@style/TextAppearance.AppCompat.Medium"/>
@@ -46,7 +46,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:drawablePadding="16dp"
android:drawablePadding="8dp"
android:text="@string/no_one_comments_gallery"
style="@style/TextAppearance.AppCompat.Medium"/>
+1 -1
View File
@@ -33,7 +33,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:drawablePadding="16dp"
android:drawablePadding="8dp"
android:text="@string/no_one_comments_gallery"
style="@style/TextAppearance.AppCompat.Medium"/>
@@ -31,7 +31,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:drawablePadding="16dp"
android:drawablePadding="8dp"
style="@style/TextAppearance.AppCompat.Medium"/>
<FrameLayout