Remove unused resources

pull/322/head
Alex Baker 9 years ago
parent d332c9dd4b
commit b96a506cb9

@ -143,7 +143,6 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
private DialogBuilder dialogBuilder;
protected final Resources resources;
protected OnCompletedTaskListener onCompletedTaskListener = null;
protected final int resource = R.layout.task_adapter_row_simple;
protected final LayoutInflater inflater;
private int fontSize;
private final ScaleAnimation scaleAnimation;
@ -230,7 +229,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
/** Creates a new view for use in the list view */
@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
ViewGroup view = (ViewGroup)inflater.inflate(resource, parent, false);
ViewGroup view = (ViewGroup)inflater.inflate(R.layout.task_adapter_row_simple, parent, false);
// create view holder
ViewHolder viewHolder = new ViewHolder();

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
** Copyright (c) 2012 Todoroo Inc
**
** See the file "LICENSE" for the full license governing this code.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Bottom 2dp Shadow -->
<item>
<shape android:shape="rectangle" >
<solid
android:color="#222"/>
<corners android:radius="2dp" />
</shape>
</item>
<item android:bottom="2px" android:right="1px" android:top="1px" android:left="1px">
<shape android:shape="rectangle" >
<solid android:color="#000000" />
<corners android:radius="2dp" />
</shape>
</item>
</layer-list>

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
** Copyright (c) 2012 Todoroo Inc
**
** See the file "LICENSE" for the full license governing this code.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Bottom 2dp Shadow -->
<item>
<shape android:shape="rectangle" >
<solid
android:color="#aaa"/>
<corners android:radius="2dp" />
</shape>
</item>
<item android:bottom="2px" android:right="1px" android:top="1px" android:left="1px">
<shape android:shape="rectangle" >
<solid android:color="#ffffff" />
<corners android:radius="2dp" />
</shape>
</item>
</layer-list>

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
<item android:state_window_focused="false" android:drawable="@android:color/transparent" />
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
<item android:state_focused="true"
android:drawable="@color/task_row_bg_dark_pressed" />
<item android:state_pressed="true"
android:drawable="@color/task_row_bg_dark_pressed" />
<item android:state_focused="false"
android:state_pressed="false"
android:drawable="@android:color/transparent" />
</selector>

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
<item android:state_window_focused="false" android:drawable="@android:color/transparent" />
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
<item android:state_focused="true"
android:drawable="@color/task_row_bg_white_pressed" />
<item android:state_pressed="true"
android:drawable="@color/task_row_bg_white_pressed" />
<item android:state_focused="false"
android:state_pressed="false"
android:drawable="@android:color/transparent" />
</selector>

@ -7,7 +7,6 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="?attr/asTaskRowSelector"
android:orientation="vertical">
<RelativeLayout

@ -13,7 +13,7 @@
<ScrollView
android:id="@+id/edit_scroll"
android:background="?attr/asEditBackground"
android:background="?attr/asContentBackground"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="100" >

@ -10,8 +10,6 @@
<attr name="drawer_background_selected" format="color" />
<attr name="task_edit_divider" format="color" />
<attr name="asContentBackground" format="color" />
<attr name="asEditBackground" format="color" />
<attr name="asEditRowBackground" format="reference" />
<attr name="asTextColor" format="color" />
<attr name="asTextColorInverse" format="color" />
<attr name="asTextColorHint" format="color" />
@ -25,13 +23,11 @@
<attr name="asThemeTextColor" format="color" />
<attr name="asEditTextBackground" format="reference" />
<attr name="asAbBackgroundColor" format="color" />
<attr name="asTaskRowSelector" format="reference" />
<attr name="ic_action_cancel" format="reference" />
<attr name="importance_background_selected" format="reference" />
<attr name="fab_icon" format="reference" />
<attr name="toolbarSeparatorHeight" format="dimension" />
<attr name="separatorHeight" format="dimension" />
<attr name="ic_action_discard" format="reference" />
<attr name="popup_theme" format="reference" />
<attr name="textfield_underline" format="reference" />
<attr name="ic_cancel" format="reference" />

@ -17,8 +17,6 @@
<color name="widget_header_dark">#000000</color>
<color name="widget_body_light">#ffffff</color>
<color name="widget_body_dark">#000000</color>
<color name="task_row_bg_dark_pressed">#303030</color>
<color name="task_row_bg_white_pressed">#dde1eb</color>
<color name="drawer_background">#efefef</color>
<color name="drawer_background_dark">#303030</color>

@ -19,7 +19,6 @@
<item name="asSeparator">?attr/asToolbarSeparator</item>
<item name="android:actionModeBackground">@android:color/black</item>
<item name="asContentBackground">@android:color/black</item>
<item name="asEditBackground">@android:color/black</item>
<item name="asTextColor">@android:color/white</item>
<item name="asTextColorHint">@android:color/darker_gray</item>
<item name="asTextColorInverse">@android:color/black</item>
@ -38,11 +37,8 @@
<item name="asDetailsColor">#6666aa</item>
<item name="asListDividerColor">#dddddd</item>
<item name="asEditRowBackground">@drawable/task_edit_background_white</item>
<item name="asTaskRowSelector">@drawable/task_row_bg_white</item>
<item name="asThemeTextColor">@color/dark_blue_theme_color</item>
<item name="importance_background_selected">@drawable/importance_background_selected</item>
<item name="ic_action_discard">@drawable/ic_close_white_24dp</item>
<item name="textfield_underline">@drawable/textfield_underline_white</item>
<item name="android:spinnerItemStyle">@style/SpinnerNoPadding</item>
<item name="ic_cancel">@drawable/ic_cancel_white_24dp</item>

@ -28,21 +28,17 @@
<item name="android:actionModeBackground">@color/primary</item>
<item name="asContentBackground">@android:color/white</item>
<item name="asEditBackground">@android:color/white</item>
<item name="asTextColor">@android:color/black</item>
<item name="asTextColorHint">@android:color/darker_gray</item>
<item name="asTextColorInverse">@android:color/white</item>
<item name="asDetailsColor">#6666aa</item>
<item name="asDueDateColor">#878787</item>
<item name="asListDividerColor">#dddddd</item>
<item name="asEditRowBackground">@drawable/task_edit_background_white</item>
<item name="asTaskRowSelector">@drawable/task_row_bg_white</item>
<item name="asThemeTextColor">@color/dark_blue_theme_color</item>
<item name="asAbBackgroundColor">#607d8b</item>
<item name="importance_background_selected">@drawable/importance_background_selected</item>
<item name="task_edit_divider">@color/task_edit_divider</item>
<item name="fab_icon">@drawable/ic_add_white_24dp</item>
<item name="ic_action_discard">@drawable/ic_close_white_24dp</item>
<item name="textfield_underline">@drawable/textfield_underline_black</item>
<item name="android:spinnerItemStyle">@style/SpinnerNoPadding</item>
<item name="ic_cancel">@drawable/ic_cancel_black_24dp</item>

Loading…
Cancel
Save