diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 549c4fe0c0250baef826b0aad34b51a63b4398d0..c521f3d2ddf7053eae527cea6e0e516b1259bdd7 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -10,34 +10,18 @@ </component> <component name="ChangeListManager"> <list default="true" id="465ea6dc-8a6c-4c2f-9b3c-de0cba274c5a" name="Default" comment=""> - <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/encodings.xml" /> - <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/libraries/hamcrest_core_1_3.xml" /> - <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/libraries/junit_4_12.xml" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-hdpi/calendar.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-hdpi/calendar.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-hdpi/loop.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-hdpi/loop.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-hdpi/swiftkey.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-hdpi/swiftkey.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-mdpi/calendar.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-mdpi/calendar.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-mdpi/loop.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-mdpi/loop.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-mdpi/swiftkey.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-mdpi/swiftkey.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-xhdpi/calendar.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-xhdpi/calendar.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-xhdpi/loop.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-xhdpi/loop.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-xhdpi/swiftkey.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-xhdpi/swiftkey.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-xxhdpi/calendar.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-xxhdpi/calendar.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-xxhdpi/loop.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-xxhdpi/loop.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-xxhdpi/swiftkey.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-xxhdpi/swiftkey.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-xxxhdpi/calendar.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-xxxhdpi/calendar.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-xxxhdpi/loop.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-xxxhdpi/loop.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/drawable-xxxhdpi/swiftkey.png" afterPath="$PROJECT_DIR$/app/src/main/res/drawable-xxxhdpi/swiftkey.png" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/gradle.xml" afterPath="$PROJECT_DIR$/.idea/gradle.xml" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/vcs.xml" afterPath="$PROJECT_DIR$/.idea/vcs.xml" /> + <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/WallpaperActivity.java" /> + <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/WallpaperSetActivity.java" /> + <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/src/main/res/layout/activity_wallpaper.xml" /> + <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/src/main/res/layout/activity_wallpaper_set.xml" /> + <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/src/main/res/xml/theme_wallpapers.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/app.iml" afterPath="$PROJECT_DIR$/app/app.iml" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/values/iconpack.xml" afterPath="$PROJECT_DIR$/app/src/main/res/values/iconpack.xml" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/xml/appfilter.xml" afterPath="$PROJECT_DIR$/app/src/main/res/xml/appfilter.xml" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/xml/drawable.xml" afterPath="$PROJECT_DIR$/app/src/main/res/xml/drawable.xml" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/build.gradle" afterPath="$PROJECT_DIR$/build.gradle" /> + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/AndroidManifest.xml" afterPath="$PROJECT_DIR$/app/src/main/AndroidManifest.xml" /> + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/MainActivity.java" afterPath="$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/MainActivity.java" /> + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml" afterPath="$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml" /> + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/values/colors.xml" afterPath="$PROJECT_DIR$/app/src/main/res/values/colors.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/build/intermediates/dex-cache/cache.xml" afterPath="$PROJECT_DIR$/build/intermediates/dex-cache/cache.xml" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/gradle/wrapper/gradle-wrapper.properties" afterPath="$PROJECT_DIR$/gradle/wrapper/gradle-wrapper.properties" /> </list> <ignored path="ICEcons.iws" /> <ignored path=".idea/workspace.xml" /> @@ -67,54 +51,110 @@ <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> <file leaf-file-name="activity_main.xml" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="-0.3272727"> + <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" /> + <folding> + <element signature="e#270#303#0" expanded="true" /> + <element signature="e#328#363#0" expanded="true" /> + <element signature="e#389#424#0" expanded="true" /> + <element signature="e#448#481#0" expanded="true" /> + </folding> + </state> + </provider> <provider editor-type-id="android-designer"> <state /> </provider> + </entry> + </file> + <file leaf-file-name="MainActivity.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/MainActivity.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-6.2181816"> - <caret line="19" column="0" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" /> + <state vertical-scroll-proportion="0.0"> + <caret line="28" column="0" selection-start-line="28" selection-start-column="0" selection-end-line="28" selection-end-column="0" /> <folding /> </state> </provider> </entry> </file> - <file leaf-file-name="MainActivity.java" pinned="false" current-in-tab="false"> - <entry file="file://$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/MainActivity.java"> + <file leaf-file-name="activity_wallpaper.xml" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_wallpaper.xml"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="6" column="25" selection-start-line="6" selection-start-column="25" selection-end-line="6" selection-end-column="25" /> + <state vertical-scroll-proportion="-4.2545457"> + <caret line="13" column="57" selection-start-line="13" selection-start-column="57" selection-end-line="13" selection-end-column="57" /> + <folding /> + </state> + </provider> + <provider editor-type-id="android-designer"> + <state /> + </provider> + </entry> + </file> + <file leaf-file-name="WallpaperActivity.java" pinned="false" current-in-tab="true"> + <entry file="file://$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/WallpaperActivity.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="1.3846154"> + <caret line="95" column="64" selection-start-line="95" selection-start-column="64" selection-end-line="95" selection-end-column="64" /> <folding> - <element signature="imports" expanded="false" /> + <element signature="e#2620#2819#0" expanded="true" /> + <element signature="e#2818#2819#0" expanded="true" /> + <element signature="e#3350#3549#0" expanded="true" /> + <element signature="e#3548#3549#0" expanded="true" /> </folding> </state> </provider> </entry> </file> - <file leaf-file-name="appfilter.xml" pinned="false" current-in-tab="true"> - <entry file="file://$PROJECT_DIR$/app/src/main/res/xml/appfilter.xml"> + <file leaf-file-name="activity_wallpaper_set.xml" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_wallpaper_set.xml"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.56137186"> - <caret line="472" column="107" selection-start-line="472" selection-start-column="107" selection-end-line="472" selection-end-column="107" /> + <state vertical-scroll-proportion="-3.6"> + <caret line="11" column="14" selection-start-line="11" selection-start-column="14" selection-end-line="11" selection-end-column="14" /> <folding /> </state> </provider> + <provider editor-type-id="android-designer"> + <state /> + </provider> </entry> </file> - <file leaf-file-name="drawable.xml" pinned="false" current-in-tab="false"> - <entry file="file://$PROJECT_DIR$/app/src/main/res/xml/drawable.xml"> + <file leaf-file-name="WallpaperSetActivity.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/WallpaperSetActivity.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-23.518518"> - <caret line="144" column="24" selection-start-line="144" selection-start-column="24" selection-end-line="144" selection-end-column="24" /> + <state vertical-scroll-proportion="0.0"> + <caret line="19" column="0" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" /> <folding /> </state> </provider> </entry> </file> - <file leaf-file-name="iconpack.xml" pinned="false" current-in-tab="false"> - <entry file="file://$PROJECT_DIR$/app/src/main/res/values/iconpack.xml"> + <file leaf-file-name="AndroidManifest.xml" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/app/src/main/AndroidManifest.xml"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-23.333334"> - <caret line="143" column="18" selection-start-line="143" selection-start-column="18" selection-end-line="143" selection-end-column="18" /> + <state vertical-scroll-proportion="-2.6666667"> + <caret line="4" column="71" selection-start-line="4" selection-start-column="71" selection-end-line="4" selection-end-column="71" /> + <folding> + <element signature="e#330#348#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="appfilter.xml" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/app/src/main/res/xml/appfilter.xml"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="-17.703703"> + <caret line="472" column="107" selection-start-line="472" selection-start-column="107" selection-end-line="472" selection-end-column="107" /> + <folding /> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="theme_wallpapers.xml" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/app/src/main/res/xml/theme_wallpapers.xml"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="-9.333333"> + <caret line="14" column="0" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" /> <folding /> </state> </provider> @@ -122,6 +162,13 @@ </file> </leaf> </component> + <component name="FileTemplateManagerImpl"> + <option name="RECENT_TEMPLATES"> + <list> + <option value="resourceFile" /> + </list> + </option> + </component> <component name="GenerateSignedApkSettings"> <option name="KEY_STORE_PATH" value="$USER_HOME$/.AndroidStudio1.5/key.jks" /> <option name="KEY_ALIAS" value="chiave1" /> @@ -1612,14 +1659,19 @@ <component name="IdeDocumentHistory"> <option name="CHANGED_PATHS"> <list> - <option value="$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml" /> - <option value="$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/MainActivity.java" /> - <option value="$PROJECT_DIR$/app/src/main/res/values/colors.xml" /> - <option value="$PROJECT_DIR$/app/src/main/AndroidManifest.xml" /> <option value="$PROJECT_DIR$/app/build.gradle" /> <option value="$PROJECT_DIR$/app/src/main/res/xml/drawable.xml" /> <option value="$PROJECT_DIR$/app/src/main/res/values/iconpack.xml" /> <option value="$PROJECT_DIR$/app/src/main/res/xml/appfilter.xml" /> + <option value="$PROJECT_DIR$/app/src/main/res/xml/wallpaper.xml" /> + <option value="$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml" /> + <option value="$PROJECT_DIR$/app/src/main/res/layout/activity_wallpaper.xml" /> + <option value="$PROJECT_DIR$/app/src/main/AndroidManifest.xml" /> + <option value="$PROJECT_DIR$/app/src/main/res/layout/activity_wallpaper_set.xml" /> + <option value="$PROJECT_DIR$/app/src/main/res/values/colors.xml" /> + <option value="$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/WallpaperActivity.java" /> + <option value="$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/WallpaperSetActivity.java" /> + <option value="$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/MainActivity.java" /> </list> </option> </component> @@ -1631,8 +1683,9 @@ </option> </component> <component name="ProjectFrameBounds"> - <option name="width" value="1920" /> - <option name="height" value="1047" /> + <option name="x" value="-1" /> + <option name="width" value="1922" /> + <option name="height" value="1048" /> </component> <component name="ProjectLevelVcsManager" settingsEditedManually="true"> <OptionsSetting value="true" id="Add" /> @@ -1659,10 +1712,6 @@ <foldersAlwaysOnTop value="true" /> </navigator> <panes> - <pane id="Scope" /> - <pane id="ProjectPane" /> - <pane id="PackagesPane" /> - <pane id="Scratches" /> <pane id="AndroidView"> <subPane> <PATH> @@ -1734,9 +1783,67 @@ <option name="myItemId" value="app" /> <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidModuleNode" /> </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="res" /> + <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidResFolderNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="layout" /> + <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidResFolderTypeNode" /> + </PATH_ELEMENT> + </PATH> + <PATH> + <PATH_ELEMENT> + <option name="myItemId" value="ICEcons" /> + <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidViewProjectNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="app" /> + <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidModuleNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="java" /> + <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidSourceTypeNode" /> + </PATH_ELEMENT> + </PATH> + <PATH> + <PATH_ELEMENT> + <option name="myItemId" value="ICEcons" /> + <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidViewProjectNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="app" /> + <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidModuleNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="java" /> + <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidSourceTypeNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="icecons" /> + <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidPsiDirectoryNode" /> + </PATH_ELEMENT> + </PATH> + <PATH> + <PATH_ELEMENT> + <option name="myItemId" value="ICEcons" /> + <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidViewProjectNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="app" /> + <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidModuleNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="manifests" /> + <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidManifestsGroupNode" /> + </PATH_ELEMENT> </PATH> </subPane> </pane> + <pane id="ProjectPane" /> + <pane id="PackagesPane" /> + <pane id="Scratches" /> + <pane id="Scope" /> </panes> </component> <component name="PropertiesComponent"> @@ -1751,6 +1858,11 @@ <property name="ExportApk.BuildType" value="release" /> <property name="device.picker.selection" value="ZY222VRTXP" /> </component> + <component name="RecentsManager"> + <key name="android.template.packageName"> + <recent name="ovh.ice.icecons" /> + </key> + </component> <component name="RunManager" selected="Android Application.app"> <configuration default="true" type="AndroidNativeRunConfigurationType" factoryName="Android Native"> <module name="" /> @@ -1910,11 +2022,48 @@ <option name="Android.Gradle.BeforeRunTask" enabled="true" /> </method> </configuration> + <configuration default="true" type="JUnitTestDiscovery" factoryName="JUnit Test Discovery" changeList="All"> + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> + <module name="" /> + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> + <option name="ALTERNATIVE_JRE_PATH" /> + <option name="PACKAGE_NAME" /> + <option name="MAIN_CLASS_NAME" /> + <option name="METHOD_NAME" /> + <option name="TEST_OBJECT" value="class" /> + <option name="VM_PARAMETERS" /> + <option name="PARAMETERS" /> + <option name="WORKING_DIRECTORY" /> + <option name="ENV_VARIABLES" /> + <option name="PASS_PARENT_ENVS" value="true" /> + <option name="TEST_SEARCH_SCOPE"> + <value defaultName="singleModule" /> + </option> + <envs /> + <patterns /> + <method /> + </configuration> <configuration default="true" type="JarApplication" factoryName="JAR Application"> <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> <envs /> <method /> </configuration> + <configuration default="true" type="Java Scratch" factoryName="Java Scratch"> + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> + <option name="SCRATCH_FILE_ID" value="0" /> + <option name="MAIN_CLASS_NAME" /> + <option name="VM_PARAMETERS" /> + <option name="PROGRAM_PARAMETERS" /> + <option name="WORKING_DIRECTORY" /> + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> + <option name="ALTERNATIVE_JRE_PATH" /> + <option name="ENABLE_SWING_INSPECTOR" value="false" /> + <option name="ENV_VARIABLES" /> + <option name="PASS_PARENT_ENVS" value="true" /> + <module name="" /> + <envs /> + <method /> + </configuration> <configuration default="true" type="Remote" factoryName="Remote"> <option name="USE_SOCKET_TRANSPORT" value="true" /> <option name="SERVER_MODE" value="false" /> @@ -1951,6 +2100,34 @@ <listeners /> <method /> </configuration> + <configuration default="true" type="TestNGTestDiscovery" factoryName="TestNG Test Discovery" changeList="All"> + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> + <module name="" /> + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> + <option name="ALTERNATIVE_JRE_PATH" /> + <option name="SUITE_NAME" /> + <option name="PACKAGE_NAME" /> + <option name="MAIN_CLASS_NAME" /> + <option name="METHOD_NAME" /> + <option name="GROUP_NAME" /> + <option name="TEST_OBJECT" value="CLASS" /> + <option name="VM_PARAMETERS" /> + <option name="PARAMETERS" /> + <option name="WORKING_DIRECTORY" /> + <option name="OUTPUT_DIRECTORY" /> + <option name="ANNOTATION_TYPE" /> + <option name="ENV_VARIABLES" /> + <option name="PASS_PARENT_ENVS" value="true" /> + <option name="TEST_SEARCH_SCOPE"> + <value defaultName="singleModule" /> + </option> + <option name="USE_DEFAULT_REPORTERS" value="false" /> + <option name="PROPERTIES_FILE" /> + <envs /> + <properties /> + <listeners /> + <method /> + </configuration> <configuration default="false" name="app" type="AndroidRunConfigurationType" factoryName="Android Application" activateToolWindowBeforeRun="false"> <module name="app" /> <option name="DEPLOY" value="true" /> @@ -1965,7 +2142,7 @@ <option name="SKIP_NOOP_APK_INSTALLATIONS" value="true" /> <option name="FORCE_STOP_RUNNING_APP" value="true" /> <option name="DEBUGGER_TYPE" value="Java" /> - <option name="USE_LAST_SELECTED_DEVICE" value="false" /> + <option name="USE_LAST_SELECTED_DEVICE" value="true" /> <option name="PREFERRED_AVD" value="" /> <Hybrid> <option name="WORKING_DIR" value="" /> @@ -2022,8 +2199,8 @@ </todo-panel> </component> <component name="ToolWindowManager"> - <frame x="0" y="0" width="1920" height="1047" extended-state="6" /> - <editor active="false" /> + <frame x="-1" y="0" width="1922" height="1048" extended-state="6" /> + <editor active="true" /> <layout> <window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> @@ -2031,7 +2208,7 @@ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3289183" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Android Model" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="true" content_ui="tabs" /> <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> - <window_info id="Android Monitor" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3281768" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> + <window_info id="Android Monitor" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2640884" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Captures" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32960597" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> @@ -2073,75 +2250,6 @@ <watches-manager /> </component> <component name="editorHistoryManager"> - <entry file="file://$PROJECT_DIR$/app/src/main/res/values/colors.xml"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="6" column="0" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" /> - <folding /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/res/xml/drawable.xml"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="109" column="21" selection-start-line="109" selection-start-column="21" selection-end-line="109" selection-end-column="21" /> - <folding /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/res/values/iconpack.xml"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="108" column="15" selection-start-line="108" selection-start-column="15" selection-end-line="108" selection-end-column="15" /> - <folding /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/res/xml/appfilter.xml"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="355" column="85" selection-start-line="355" selection-start-column="85" selection-end-line="355" selection-end-column="85" /> - <folding /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/AndroidManifest.xml"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="10" column="0" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" /> - <folding /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml"> - <provider editor-type-id="android-designer"> - <state /> - </provider> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="19" column="0" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" /> - <folding /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/MainActivity.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" /> - <folding> - <element signature="imports" expanded="false" /> - </folding> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/res/values/strings.xml"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/app/src/main/res/values/styles.xml"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> @@ -2183,23 +2291,26 @@ </provider> </entry> <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml"> - <provider editor-type-id="android-designer"> - <state /> - </provider> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="19" column="0" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" /> - <folding /> + <folding> + <element signature="e#270#303#0" expanded="true" /> + <element signature="e#328#363#0" expanded="true" /> + <element signature="e#389#424#0" expanded="true" /> + <element signature="e#448#481#0" expanded="true" /> + </folding> </state> </provider> + <provider editor-type-id="android-designer"> + <state /> + </provider> </entry> <entry file="file://$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/MainActivity.java"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" /> - <folding> - <element signature="imports" expanded="false" /> - </folding> + <folding /> </state> </provider> </entry> @@ -2252,23 +2363,26 @@ </provider> </entry> <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml"> - <provider editor-type-id="android-designer"> - <state /> - </provider> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="19" column="0" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" /> - <folding /> + <folding> + <element signature="e#270#303#0" expanded="true" /> + <element signature="e#328#363#0" expanded="true" /> + <element signature="e#389#424#0" expanded="true" /> + <element signature="e#448#481#0" expanded="true" /> + </folding> </state> </provider> + <provider editor-type-id="android-designer"> + <state /> + </provider> </entry> <entry file="file://$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/MainActivity.java"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="19" column="30" selection-start-line="19" selection-start-column="30" selection-end-line="19" selection-end-column="30" /> - <folding> - <element signature="imports" expanded="false" /> - </folding> + <folding /> </state> </provider> </entry> @@ -2393,14 +2507,6 @@ <state /> </provider> </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/res/values/colors.xml"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.1858864"> - <caret line="6" column="0" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/app/src/main/res/values/styles.xml"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.16216215"> @@ -2409,14 +2515,6 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/AndroidManifest.xml"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.2788296"> - <caret line="9" column="40" selection-start-line="9" selection-start-column="40" selection-end-line="9" selection-end-column="40" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/gradle/wrapper/gradle-wrapper.properties"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> @@ -2440,50 +2538,152 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/MainActivity.java"> + <entry file="file://$PROJECT_DIR$/app/src/main/res/values/iconpack.xml"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> - <caret line="6" column="25" selection-start-line="6" selection-start-column="25" selection-end-line="6" selection-end-column="25" /> - <folding> - <element signature="imports" expanded="false" /> - </folding> + <caret line="143" column="18" selection-start-line="143" selection-start-column="18" selection-end-line="143" selection-end-column="18" /> + <folding /> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml"> + <entry file="file://$PROJECT_DIR$/app/src/main/res/xml/drawable.xml"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="-0.6666667"> + <caret line="1" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="151" selection-end-column="0" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_wallpaper.xml"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0"> + <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> + <folding /> + </state> + </provider> <provider editor-type-id="android-designer"> <state /> </provider> + </entry> + <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_wallpaper_set.xml"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0"> + <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> + <folding /> + </state> + </provider> + <provider editor-type-id="android-designer"> + <state /> + </provider> + </entry> + <entry file="jar://$USER_HOME$/.androidsdk/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1-sources.jar!/android/support/v7/app/AppCompatActivity.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.3321859"> + <caret line="57" column="19" selection-start-line="57" selection-start-column="19" selection-end-line="57" selection-end-column="19" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/app/src/main/res/xml/appfilter.xml"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="-17.703703"> + <caret line="472" column="107" selection-start-line="472" selection-start-column="107" selection-end-line="472" selection-end-column="107" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/app/src/main/res/xml/theme_wallpapers.xml"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="-9.333333"> + <caret line="14" column="0" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/app/src/main/AndroidManifest.xml"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="-2.6666667"> + <caret line="4" column="71" selection-start-line="4" selection-start-column="71" selection-end-line="4" selection-end-column="71" /> + <folding> + <element signature="e#330#348#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/WallpaperSetActivity.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-6.2181816"> + <state vertical-scroll-proportion="0.0"> <caret line="19" column="0" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" /> <folding /> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/res/values/iconpack.xml"> + <entry file="file://$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/MainActivity.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-23.333334"> - <caret line="143" column="18" selection-start-line="143" selection-start-column="18" selection-end-line="143" selection-end-column="18" /> + <state vertical-scroll-proportion="0.0"> + <caret line="28" column="0" selection-start-line="28" selection-start-column="0" selection-end-line="28" selection-end-column="0" /> <folding /> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/res/xml/drawable.xml"> + <entry file="file://$PROJECT_DIR$/app/src/main/res/values/colors.xml"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-23.518518"> - <caret line="144" column="24" selection-start-line="144" selection-start-column="24" selection-end-line="144" selection-end-column="24" /> + <state vertical-scroll-proportion="0.05882353"> + <caret line="2" column="38" selection-start-line="2" selection-start-column="38" selection-end-line="2" selection-end-column="38" /> <folding /> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/app/src/main/res/xml/appfilter.xml"> + <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.56137186"> - <caret line="472" column="107" selection-start-line="472" selection-start-column="107" selection-end-line="472" selection-end-column="107" /> + <state vertical-scroll-proportion="-0.3272727"> + <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" /> + <folding> + <element signature="e#270#303#0" expanded="true" /> + <element signature="e#328#363#0" expanded="true" /> + <element signature="e#389#424#0" expanded="true" /> + <element signature="e#448#481#0" expanded="true" /> + </folding> + </state> + </provider> + <provider editor-type-id="android-designer"> + <state /> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_wallpaper_set.xml"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="-3.6"> + <caret line="11" column="14" selection-start-line="11" selection-start-column="14" selection-end-line="11" selection-end-column="14" /> + <folding /> + </state> + </provider> + <provider editor-type-id="android-designer"> + <state /> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_wallpaper.xml"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="-4.2545457"> + <caret line="13" column="57" selection-start-line="13" selection-start-column="57" selection-end-line="13" selection-end-column="57" /> <folding /> </state> </provider> + <provider editor-type-id="android-designer"> + <state /> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/app/src/main/java/ovh/ice/icecons/WallpaperActivity.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="1.3846154"> + <caret line="95" column="64" selection-start-line="95" selection-start-column="64" selection-end-line="95" selection-end-column="64" /> + <folding> + <element signature="e#2620#2819#0" expanded="true" /> + <element signature="e#2818#2819#0" expanded="true" /> + <element signature="e#3350#3549#0" expanded="true" /> + <element signature="e#3548#3549#0" expanded="true" /> + </folding> + </state> + </provider> </entry> </component> </project> \ No newline at end of file diff --git a/app/app.iml b/app/app.iml index 5bcb54f6a274bbe9d2c4c8c2a87ff6adf9527757..3019ad1ab5a58e1eb7fe6c2f3ba1c560e4ef27e7 100644 --- a/app/app.iml +++ b/app/app.iml @@ -77,6 +77,7 @@ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/builds" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" /> @@ -89,7 +90,6 @@ <excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant-run-support" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" /> - <excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/reload-dex" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/restart-dex" /> diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a1feec88d4c1e58d7306c47258d7b2eb37bb79fa..450419a854b01592835cb0bf4b4c0aaf01ca228f 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,38 +2,37 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="ovh.ice.icecons"> + <uses-permission android:name="android.permission.SET_WALLPAPER" /> + <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> - <activity android:name=".MainActivity"> - <intent-filter> <action android:name="android.intent.action.MAIN" /> + <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> - <intent-filter> <action android:name="com.novalauncher.THEME" /> </intent-filter> - <intent-filter> <action android:name="android.intent.action.MAIN" /> + <category android:name="com.anddoes.launcher.THEME" /> </intent-filter> - - <intent-filter> <action android:name="android.intent.action.MAIN" /> <action android:name="org.adw.launcher.THEMES" /> + <category android:name="android.intent.category.DEFAULT" /> </intent-filter> - </activity> - + <activity android:name=".WallpaperActivity" /> + <activity android:name=".WallpaperSetActivity"></activity> </application> -</manifest> +</manifest> \ No newline at end of file diff --git a/app/src/main/java/ovh/ice/icecons/MainActivity.java b/app/src/main/java/ovh/ice/icecons/MainActivity.java index 282e11e63ff9bc70633b6f5cf961c718f190a15e..cf570898fc7ef6dfc2be0f083b70c9d85ebb3fa8 100644 --- a/app/src/main/java/ovh/ice/icecons/MainActivity.java +++ b/app/src/main/java/ovh/ice/icecons/MainActivity.java @@ -1,22 +1,33 @@ package ovh.ice.icecons; +import android.app.WallpaperManager; import android.content.Intent; import android.net.Uri; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; +import java.io.IOException; + public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void gitLink(View v) { + Uri uri = Uri.parse("https://github.com/1C3/ICEcons"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); } + + public void wallpaperPicker(View v) { + + Intent intent = new Intent(this, WallpaperActivity.class); + startActivity(intent); + } } diff --git a/app/src/main/java/ovh/ice/icecons/WallpaperActivity.java b/app/src/main/java/ovh/ice/icecons/WallpaperActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..73a21d92d6f67133206d981e6ddf5e90e883e0dd --- /dev/null +++ b/app/src/main/java/ovh/ice/icecons/WallpaperActivity.java @@ -0,0 +1,107 @@ +package ovh.ice.icecons; + +import android.app.WallpaperManager; +import android.content.Context; +import android.content.Intent; +import android.graphics.drawable.Drawable; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.View; +import android.view.ViewGroup; +import android.widget.AdapterView; +import android.widget.BaseAdapter; +import android.widget.GridView; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.Toast; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; + +public class WallpaperActivity extends AppCompatActivity { + + private Integer[] mImages = { + R.drawable.bush, R.drawable.clovers, + R.drawable.daisy, R.drawable.ivy, + R.drawable.rock, R.drawable.wall + }; + + private Integer[] mThumbnails = { + R.drawable.bush_thumb, R.drawable.clovers_thumb, + R.drawable.daisy_thumb, R.drawable.ivy_thumb, + R.drawable.rock_thumb, R.drawable.wall_thumb + }; + + private ArrayList<LinearLayout> layoutList = new ArrayList<>(); + private ArrayList<ImageView> imageList = new ArrayList<>(); + + @Override + protected void onCreate(Bundle savedInstanceState) { + + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_wallpaper); + + createLayout(); + } + + private void createLayout() { + + LinearLayout.LayoutParams containerParams = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT ); + LinearLayout.LayoutParams imageParams = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT, 1f ); + + for( int i =0; i < mThumbnails.length; i++ ) { + + if( ( i%2 ) == 0 ) { + + layoutList.add( (i/2), new LinearLayout(this) ); + layoutList.get(i/2).setOrientation( LinearLayout.HORIZONTAL ); + layoutList.get(i/2).setLayoutParams( containerParams ); + + ( (LinearLayout)findViewById(R.id.wallpaperGridTop) ).addView( layoutList.get(i/2) ); + + imageList.add( i, new ImageView(this) ); + imageList.get(i).setLayoutParams( imageParams ); + imageList.get(i).setScaleType( ImageView.ScaleType.CENTER_CROP ); + imageList.get(i).setImageResource( mThumbnails[i] ); + imageList.get(i).setAdjustViewBounds( true ); + + final Integer tempId = mImages[i]; + imageList.get(i).setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + wallpaperView( v, tempId); + } + }); + + layoutList.get(i/2).addView( imageList.get(i) ); + + } else { + + imageList.add( i, new ImageView(this) ); + imageList.get(i).setLayoutParams( imageParams ); + imageList.get(i).setScaleType( ImageView.ScaleType.CENTER_CROP ); + imageList.get(i).setImageResource( mThumbnails[i] ); + imageList.get(i).setAdjustViewBounds( true ); + + final Integer tempId = mImages[i]; + imageList.get(i).setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + wallpaperView( v, tempId); + } + }); + + layoutList.get(i/2).addView( imageList.get(i) ); + } + } + } + + public void wallpaperView(View v, Integer imageId) { + + Intent intent = new Intent(this, WallpaperSetActivity.class); + intent.putExtra("image", imageId); + startActivity(intent); + } +} diff --git a/app/src/main/java/ovh/ice/icecons/WallpaperSetActivity.java b/app/src/main/java/ovh/ice/icecons/WallpaperSetActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..4b8865f0a7a1a6d6123b7b125b00bf910de66767 --- /dev/null +++ b/app/src/main/java/ovh/ice/icecons/WallpaperSetActivity.java @@ -0,0 +1,48 @@ +package ovh.ice.icecons; + +import android.app.WallpaperManager; +import android.content.Intent; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.Gravity; +import android.view.View; +import android.widget.ImageView; +import android.widget.Toast; + +import java.io.IOException; + +public class WallpaperSetActivity extends AppCompatActivity { + + private Integer imageId; + + @Override + protected void onCreate(Bundle savedInstanceState) { + + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_wallpaper_set); + + final Intent intent = getIntent(); + imageId = intent.getIntExtra("image", 0); + + findViewById(R.id.wallpaperSetView).setBackgroundResource(imageId); + ( (ImageView)findViewById(R.id.wallpaperSetView) ).setScaleType( ImageView.ScaleType.CENTER_CROP ); + } + + public void setWallpaper(View v) { + + WallpaperManager wallpaperManager = WallpaperManager.getInstance(getApplicationContext()); + + try { + + wallpaperManager.setResource(imageId); + + Toast toast = Toast.makeText(this, "Wallpaper Set", Toast.LENGTH_SHORT); + toast.setGravity(Gravity.CENTER, 0, 0); + toast.show(); + + } catch (IOException e) { + + e.printStackTrace(); + } + } +} diff --git a/app/src/main/res/drawable-nodpi/bush.jpg b/app/src/main/res/drawable-nodpi/bush.jpg new file mode 100755 index 0000000000000000000000000000000000000000..800681855b8bca62456b1554519f9a5aa5280377 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/bush.jpg differ diff --git a/app/src/main/res/drawable-nodpi/bush_thumb.jpg b/app/src/main/res/drawable-nodpi/bush_thumb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..afb09c8602323a6e118af239f0e023b8e0409954 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/bush_thumb.jpg differ diff --git a/app/src/main/res/drawable-nodpi/clovers.jpg b/app/src/main/res/drawable-nodpi/clovers.jpg new file mode 100755 index 0000000000000000000000000000000000000000..78356d58891953468fd3023a9e5ac210a9721c01 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/clovers.jpg differ diff --git a/app/src/main/res/drawable-nodpi/clovers_thumb.jpg b/app/src/main/res/drawable-nodpi/clovers_thumb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..13f6e2a29a6f0f0ae6eeb5479637cd9c4c3f4230 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/clovers_thumb.jpg differ diff --git a/app/src/main/res/drawable-nodpi/daisy.jpg b/app/src/main/res/drawable-nodpi/daisy.jpg new file mode 100755 index 0000000000000000000000000000000000000000..d91df5938bf3a0f07de69b3f4d87b2ed0fe75ff0 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/daisy.jpg differ diff --git a/app/src/main/res/drawable-nodpi/daisy_thumb.jpg b/app/src/main/res/drawable-nodpi/daisy_thumb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..779e3daec15d0ddef229df1eca1e46ba519e1421 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/daisy_thumb.jpg differ diff --git a/app/src/main/res/drawable-nodpi/ivy.jpg b/app/src/main/res/drawable-nodpi/ivy.jpg new file mode 100755 index 0000000000000000000000000000000000000000..376dc12c61cd00b3173a3d48c1c4b9cad8587b9b Binary files /dev/null and b/app/src/main/res/drawable-nodpi/ivy.jpg differ diff --git a/app/src/main/res/drawable-nodpi/ivy_thumb.jpg b/app/src/main/res/drawable-nodpi/ivy_thumb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bcc95ba6580bb850f87a648513d9929b8e5be046 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/ivy_thumb.jpg differ diff --git a/app/src/main/res/drawable-nodpi/rock.jpg b/app/src/main/res/drawable-nodpi/rock.jpg new file mode 100755 index 0000000000000000000000000000000000000000..0b92f170228f1f6cb148d088bac84f84d0447d28 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/rock.jpg differ diff --git a/app/src/main/res/drawable-nodpi/rock_thumb.jpg b/app/src/main/res/drawable-nodpi/rock_thumb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f0cb590781223b2e5eebbec50bb74ad7bd249cc2 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/rock_thumb.jpg differ diff --git a/app/src/main/res/drawable-nodpi/wall.jpg b/app/src/main/res/drawable-nodpi/wall.jpg new file mode 100755 index 0000000000000000000000000000000000000000..69deef708ea16777cb62665dc309c9da757f766d Binary files /dev/null and b/app/src/main/res/drawable-nodpi/wall.jpg differ diff --git a/app/src/main/res/drawable-nodpi/wall_thumb.jpg b/app/src/main/res/drawable-nodpi/wall_thumb.jpg new file mode 100644 index 0000000000000000000000000000000000000000..62fa8eec5b762289beac2c4b803be7853e1e94bf Binary files /dev/null and b/app/src/main/res/drawable-nodpi/wall_thumb.jpg differ diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 5b538197ef1c6746a7f6ea5228a2f1651b464ac8..ab7a68d4e0702c042f148fa4c8c2188e363ea3ef 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -16,4 +16,10 @@ android:text="source code" android:onClick="gitLink"/> + <Button + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="set wallpaper" + android:onClick="wallpaperPicker"/> + </LinearLayout> diff --git a/app/src/main/res/layout/activity_wallpaper.xml b/app/src/main/res/layout/activity_wallpaper.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba20b4bf15199662fb5315523c527aee8a595637 --- /dev/null +++ b/app/src/main/res/layout/activity_wallpaper.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context="ovh.ice.icecons.WallpaperActivity" + android:orientation="vertical"> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/wallpaperGridTop" + android:layout_width="match_parent" + android:layout_height="wrap_content" + tools:context="ovh.ice.icecons.WallpaperActivity" + android:orientation="vertical"> + + </LinearLayout> + +</ScrollView> \ No newline at end of file diff --git a/app/src/main/res/layout/activity_wallpaper_set.xml b/app/src/main/res/layout/activity_wallpaper_set.xml new file mode 100644 index 0000000000000000000000000000000000000000..5d5fed28995892fec727d7e8b698524ace3d7f2b --- /dev/null +++ b/app/src/main/res/layout/activity_wallpaper_set.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingBottom="0dp" + android:paddingLeft="0dp" + android:paddingRight="0dp" + android:paddingTop="0dp" + tools:context="ovh.ice.icecons.WallpaperSetActivity"> + + <ImageView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/wallpaperSetView" + android:layout_alignParentTop="true" + android:layout_centerHorizontal="true" + android:layout_marginTop="0dp" /> + +</RelativeLayout> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index b91905c4095390dda94c55191b5a84fb0db08c58..bde7005ac5094dea7e50ee0bb8352a02c4cde6e6 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <color name="colorPrimary">#c62828</color> - <color name="colorPrimaryDark">#b71c1c</color> + <color name="colorPrimary">#111111</color> + <color name="colorPrimaryDark">#000000</color> <color name="colorAccent">#00e676</color> </resources> diff --git a/app/src/main/res/xml/theme_wallpapers.xml b/app/src/main/res/xml/theme_wallpapers.xml new file mode 100644 index 0000000000000000000000000000000000000000..91d10ba49deca72d13184831a2ffd94147f2b902 --- /dev/null +++ b/app/src/main/res/xml/theme_wallpapers.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> + +<resources> + + <version>1</version> + + <item drawable="bush" /> + <item drawable="clovers" /> + <item drawable="daisy" /> + <item drawable="ivy" /> + <item drawable="rock" /> + <item drawable="wall" /> + +</resources> diff --git a/build/intermediates/dex-cache/cache.xml b/build/intermediates/dex-cache/cache.xml index 03cfee1bfd8eb1c0a7fc4c4f93bbe1b83dda02fe..fba8db89fe63019a522cb871f7d4ffd430d79e79 100644 --- a/build/intermediates/dex-cache/cache.xml +++ b/build/intermediates/dex-cache/cache.xml @@ -1,47 +1,2 @@ <?xml version="1.0" encoding="utf-8"?> -<items version="2" > - - <item - jar="/home/riccardo/Documents/ICEcons/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.1/jars/classes.jar" - jumboMode="true" - revision="23.0.2" - sha1="6cbc7773921fcfedbe55657578f0cbfe614778dc"> - <dex dex="/home/riccardo/Documents/ICEcons/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.android.support-support-v4-23.1.1_57c62fc22500dbcacde544092e6aeb4a98b76c7c/classes.dex" /> - </item> - <item - jar="/home/riccardo/.androidsdk/Sdk/extras/android/m2repository/com/android/support/support-annotations/23.1.1/support-annotations-23.1.1.jar" - jumboMode="true" - revision="23.0.2" - sha1="8d680ba5a623724d1fb0e81c36a790f023a6cede"> - <dex dex="/home/riccardo/Documents/ICEcons/app/build/intermediates/transforms/dex/debug/folders/1000/10/support-annotations-23.1.1_c4e7ad89ca55dd9a7164e390b19a80d280c39194/classes.dex" /> - </item> - <item - jar="/home/riccardo/Documents/ICEcons/app/build/intermediates/incremental-runtime-classes/debug/instant-run.jar" - jumboMode="true" - revision="23.0.2" - sha1="bdd30b3d475647979f9fe75ed60b85ec7144b0e4"> - <dex dex="/home/riccardo/Documents/ICEcons/app/build/intermediates/transforms/dex/debug/folders/1000/10/instant-run_0ab66315ce28ba59e254f15467425adc63575772/classes.dex" /> - </item> - <item - jar="/home/riccardo/Documents/ICEcons/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.1/jars/libs/internal_impl-23.1.1.jar" - jumboMode="true" - revision="23.0.2" - sha1="a4de9c81ae239414e1ed0f86441b02abaf29bca9"> - <dex dex="/home/riccardo/Documents/ICEcons/app/build/intermediates/transforms/dex/debug/folders/1000/10/internal_impl-23.1.1_b7fc3c933320b556eb72f9f530dd63533f51bd6c/classes.dex" /> - </item> - <item - jar="/home/riccardo/Documents/ICEcons/app/build/intermediates/incremental-classes/debug/instant-run-bootstrap.jar" - jumboMode="true" - revision="23.0.2" - sha1="815b6dbeb143e7ffb574a25e797f2fa6bfc9a506"> - <dex dex="/home/riccardo/Documents/ICEcons/app/build/intermediates/transforms/dex/debug/folders/1000/10/instant-run-bootstrap_288f3e28b7fe3e43c64b9aaf5b30b76ebaceab1a/classes.dex" /> - </item> - <item - jar="/home/riccardo/Documents/ICEcons/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.1.1/jars/classes.jar" - jumboMode="true" - revision="23.0.2" - sha1="5c5699834e9722f1c288fea2de82725d078ba127"> - <dex dex="/home/riccardo/Documents/ICEcons/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.android.support-appcompat-v7-23.1.1_8da176bd4ea84d4e391e2d3eb62a55aaf7cb36d7/classes.dex" /> - </item> - -</items> +<items version="2" />