Rename some resources, fix action bar tab selectors as well.

Change-Id: I48b4f69bd85b9aa0b034f6a7210311598662c163
This commit is contained in:
Artur Dryomov
2013-09-27 01:52:21 +03:00
parent 041452c69f
commit 3b631e4142
50 changed files with 73 additions and 37 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 B

View File

Before

Width:  |  Height:  |  Size: 209 B

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 B

View File

Before

Width:  |  Height:  |  Size: 166 B

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 B

View File

Before

Width:  |  Height:  |  Size: 272 B

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 B

View File

@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_focused="false"
android:state_selected="false"
android:state_pressed="false"
android:drawable="@drawable/action_bar_tab_unselected"/>
<item
android:state_focused="false"
android:state_selected="true"
android:state_pressed="false"
android:drawable="@drawable/action_bar_tab_selected"/>
<item
android:state_selected="false"
android:state_pressed="true"
android:drawable="@drawable/action_bar_tab_selected_pressed"/>
<item
android:state_selected="true"
android:state_pressed="true"
android:drawable="@drawable/action_bar_tab_selected_pressed"/>
</selector>

View File

@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Non focused states -->
<item
android:state_focused="false"
android:state_selected="false"
android:state_pressed="false"
android:drawable="@android:color/transparent"/>
<item
android:state_focused="false"
android:state_selected="true"
android:state_pressed="false"
android:drawable="@drawable/bg_action_bar_tab_selected"/>
<!-- Focused states -->
<item
android:state_focused="true"
android:state_selected="false"
android:state_pressed="false"
android:drawable="@drawable/bg_action_bar_tab_unselected_focused"/>
<item
android:state_focused="true"
android:state_selected="true"
android:state_pressed="false"
android:drawable="@drawable/bg_action_bar_tab_selected_focused"/>
<!-- Pressed -->
<!-- Non focused states -->
<item
android:state_focused="false"
android:state_selected="false"
android:state_pressed="true"
android:drawable="@drawable/bg_action_bar_tab_unselected_pressed"/>
<item
android:state_focused="false"
android:state_selected="true"
android:state_pressed="true"
android:drawable="@drawable/bg_action_bar_tab_selected_pressed"/>
<!-- Focused states -->
<item
android:state_focused="true"
android:state_selected="false"
android:state_pressed="true"
android:drawable="@drawable/bg_action_bar_tab_unselected_pressed"/>
<item
android:state_focused="true"
android:state_selected="true"
android:state_pressed="true"
android:drawable="@drawable/bg_action_bar_tab_selected_pressed"/>
</selector>

View File

@@ -3,7 +3,7 @@
android:shape="rectangle">
<size
android:width="10000dp"
android:width="100000dp"
android:height="1dp"/>
<solid

View File

@@ -7,7 +7,7 @@
<ImageView
android:id="@+id/image_slide_preview"
android:adjustViewBounds="true"
android:background="@drawable/background_grid_slide"
android:background="@drawable/bg_grid_slide"
android:contentDescription="@string/description_grid_slide"
android:layout_alignParentTop="true"
android:layout_width="wrap_content"

View File

@@ -9,7 +9,7 @@
<item
android:id="@+id/menu_settings"
android:title="@string/title_settings"
android:title="@string/menu_settings"
android:showAsAction="never"/>
<item

View File

@@ -2,6 +2,7 @@
<resources>
<color name="background_action_bar">#e46f1f</color>
<color name="background_action_bar_tab_indicator">#e6821c</color>
<color name="background_action_bar_divider">#55ffffff</color>
<color name="background_header">@color/background_action_bar</color>
<color name="background_slide_index">#7f000000</color>

View File

@@ -10,16 +10,16 @@
</style>
<style name="Theme.ImpressRemote.ActionBar" parent="Widget.Sherlock.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/action_bar_background</item>
<item name="background">@drawable/action_bar_background</item>
<item name="android:background">@drawable/bg_action_bar</item>
<item name="background">@drawable/bg_action_bar</item>
<item name="android:displayOptions">showTitle|showHome|homeAsUp|useLogo</item>
<item name="displayOptions">showTitle|showHome|homeAsUp|useLogo</item>
</style>
<style name="Theme.ImpressRemote.ActionBar.Tab" parent="Widget.Sherlock.Light.ActionBar.TabView.Inverse">
<item name="android:background">@drawable/action_bar_tab</item>
<item name="background">@drawable/action_bar_tab</item>
<item name="android:background">@drawable/bg_action_bar_tab</item>
<item name="background">@drawable/bg_action_bar_tab</item>
</style>
<style name="Theme.ImpressRemote.Computers" parent="Theme.ImpressRemote">

View File

@@ -28,7 +28,7 @@ public class SlidesGridAdapter extends BaseAdapter {
public SlidesGridAdapter(Context aContext, SlideShow aSlideShow) {
mLayoutInflater = LayoutInflater.from(aContext);
mImageLoader = new ImageLoader(aContext.getResources(), R.drawable.slide_unknown);
mImageLoader = new ImageLoader(aContext.getResources(), R.drawable.bg_slide_unknown);
mSlideShow = aSlideShow;
}
@@ -105,7 +105,7 @@ public class SlidesGridAdapter extends BaseAdapter {
}
private void setUpUnknownSlidePreview(ViewHolder aSlideViewHolder) {
aSlideViewHolder.mSlidePreview.setImageResource(R.drawable.slide_unknown);
aSlideViewHolder.mSlidePreview.setImageResource(R.drawable.bg_slide_unknown);
}
private String buildSlideIndex(int aPosition) {

View File

@@ -29,7 +29,7 @@ public class SlidesPagerAdapter extends PagerAdapter {
public SlidesPagerAdapter(Context aContext, SlideShow aSlideShow, View.OnClickListener aSlideClickListener) {
mLayoutInflater = LayoutInflater.from(aContext);
mImageLoader = new ImageLoader(aContext.getResources(), R.drawable.slide_unknown);
mImageLoader = new ImageLoader(aContext.getResources(), R.drawable.bg_slide_unknown);
mSlideShow = aSlideShow;
@@ -76,7 +76,7 @@ public class SlidesPagerAdapter extends PagerAdapter {
}
private void setUpUnknownSlidePreview(ImageView aSlideView) {
aSlideView.setImageResource(R.drawable.slide_unknown);
aSlideView.setImageResource(R.drawable.bg_slide_unknown);
}
@Override