更改 Toast 颜色

This commit is contained in:
seven332 committed 2014-06-10 23:39:45 +08:00
1 parent cbbe1478ae
commit d277066d34
5 files changed
+37 -5

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 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.
-->
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_selected="true"
android:drawable="@color/holo_purple_light_light" />
<item
android:state_focused="true"
android:drawable="@color/holo_purple_light_light" />
<item
android:state_pressed="true"
android:drawable="@color/holo_purple_light_light" />
<item
android:state_enabled="false"
android:drawable="@color/light_gray" />
<item
android:drawable="@android:color/holo_purple" />
</selector>
+1 -1
View File
@@ -41,7 +41,7 @@
android:id="@+id/action_button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/blue_bn_bg"
android:background="@drawable/purple_clickable_bg"
android:clickable="true" >
<View
+1 -1
View File
@@ -26,7 +26,7 @@
android:layout_height="wrap_content"
android:minHeight="60.0dp"
android:minWidth="100.0dp"
android:background="@color/toast_bg" >
android:background="@android:color/holo_purple" >
<ImageView
android:id="@+id/icon"
+2 -2
View File
@@ -27,6 +27,8 @@
<color name="refresh_color_3">#427fed</color>
<color name="refresh_color_4">#b23424</color>
<color name="holo_purple_light_light">#ffd7a2e6</color>
<color name="ab_bg">@android:color/holo_blue_dark</color>
<color name="list_main_bg">#ffe5e5e5</color>
<color name="tag_bg">#bbffffff</color>
@@ -65,7 +67,5 @@
<color name="detail_divider">#22000000</color>
<color name="toast_bg">#ff458cf5</color>
<color name="toast_bg_light">#ff458cf5</color>
<color name="btn_white_default">#fff0f0f0</color>
</resources>
@@ -124,7 +124,7 @@ public class FavouriteActivity extends AbstractGalleryActivity
mSlidingMenu.setShadowWidthRes(R.dimen.shadow_width);
mActionableToastBar = new ActionableToastBar(this);
mActionableToastBar.setBackgroundColor(mResources.getColor(R.color.toast_bg));
mActionableToastBar.setBackgroundColor(mResources.getColor(android.R.color.holo_purple));
mMainView.addView(mActionableToastBar);
mMainView.setOnTouchListener(this);