修改了背景图片的一些bug

mengbo_branch
1426062004@qq.com 3 years ago
parent 3a15914218
commit e15461041b

@ -81,8 +81,7 @@ import java.io.InputStreamReader;
import java.util.HashSet;
public class NotesListActivity extends Activity implements OnClickListener, OnItemLongClickListener {
private int mode = -1;
private int mode = - 1;
private static final int FOLDER_NOTE_LIST_QUERY_TOKEN = 0;
private static final int FOLDER_LIST_QUERY_TOKEN = 1;
@ -783,23 +782,35 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
} else {
Log.e(TAG, "Wrong state:" + mState);
}
if(mode == 1){
menu.findItem(R.id.menu_girl).setVisible(false);
}
else if(mode == 2){
menu.findItem(R.id.menu_sea).setVisible(false);
}
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.menu_young:{
case R.id.menu_girl:{
mode = 1;
getWindow().setBackgroundDrawableResource(R.drawable.menu_young);
getWindow().setBackgroundDrawableResource(R.drawable.menu_girl);
break;
}
case R.id.menu_lover:{
mode = -1;
getWindow().setBackgroundDrawableResource(R.drawable.menu_lover);
case R.id.menu_sea:{
mode = 2;
getWindow().setBackgroundDrawableResource(R.drawable.menu_sea);
break;
}
case R.id.menu_sweet:{
mode = 3;
getWindow().setBackgroundDrawableResource(R.drawable.menu_sweet);
break;
}
case R.id.menu_new_folder: {
showCreateOrModifyFolderDialog(true);
break;
@ -843,7 +854,6 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
NotesListActivity.this.finish();
break;
}
default:
break;
}

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/drawable-hdpi.iml" filepath="$PROJECT_DIR$/.idea/drawable-hdpi.iml" />
</modules>
</component>
</project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 KiB

After

Width:  |  Height:  |  Size: 771 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 KiB

After

Width:  |  Height:  |  Size: 121 KiB

@ -40,12 +40,15 @@
<item
android:id="@+id/menu_board"
android:title="Board"/>
<item
android:id="@+id/menu_girl"
android:title="@string/background_girl"/>
<item
android:id="@+id/menu_lover"
android:title="Background:lover"/>
android:id="@+id/menu_sea"
android:title="@string/background_sea"/>
<item
android:id="@+id/menu_young"
android:title="Background:young"/>
android:id="@+id/menu_sweet"
android:title="@string/background_sweet"/>
</menu>

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="menu_young" type="id">menu_young</item>
</resources>

@ -126,6 +126,10 @@
<string name="search">Notes</string>
<string name="datetime_dialog_ok">set</string>
<string name="datetime_dialog_cancel">cancel</string>
<string name="background_cat">Background:cat</string>
<string name="background_sea">Background:sea</string>
<string name="background_sweet">Background:sweet</string>
<string name="background_girl">Background:girl</string>
<plurals name="search_results_title">
<item quantity="one"><xliff:g id="number" example="1">%1$s</xliff:g> result for \"<xliff:g id="search" example="???">%2$s</xliff:g>\"</item>
<!-- Case of 0 or 2 or more results. -->

Loading…
Cancel
Save