OSDN Git Service

次バージョンの準備。(アイコン等整備)
authorMRSa <mrsa@myad.jp>
Tue, 5 May 2020 13:22:44 +0000 (22:22 +0900)
committerMRSa <mrsa@myad.jp>
Tue, 5 May 2020 13:22:44 +0000 (22:22 +0900)
18 files changed:
app/build.gradle
app/src/main/ic_launcher-playstore.png [new file with mode: 0644]
app/src/main/java/net/osdn/gokigen/gr2control/preference/Gr2ControlPreferenceFragment.java
app/src/main/res/drawable/ic_launcher_foreground.xml [new file with mode: 0644]
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
app/src/main/res/mipmap-hdpi/ic_launcher.png
app/src/main/res/mipmap-hdpi/ic_launcher_round.png
app/src/main/res/mipmap-mdpi/ic_launcher.png
app/src/main/res/mipmap-mdpi/ic_launcher_round.png
app/src/main/res/mipmap-xhdpi/ic_launcher.png
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
app/src/main/res/values/ic_launcher_background.xml [new file with mode: 0644]
app/src/main/res/xml/preferences_summary.xml

index d66416c..74cfed3 100644 (file)
@@ -6,8 +6,8 @@ android {
         applicationId "net.osdn.gokigen.gr2control"
         minSdkVersion 14
         targetSdkVersion 29
-        versionCode 1003001
-        versionName "1.3.1"
+        versionCode 1003002
+        versionName "1.3.2"
     }
     buildTypes {
         release {
diff --git a/app/src/main/ic_launcher-playstore.png b/app/src/main/ic_launcher-playstore.png
new file mode 100644 (file)
index 0000000..18f443f
Binary files /dev/null and b/app/src/main/ic_launcher-playstore.png differ
index bcbdeae..50c95b2 100644 (file)
@@ -9,6 +9,7 @@ import android.util.Log;
 
 import net.osdn.gokigen.gr2control.R;
 import net.osdn.gokigen.gr2control.camera.ICameraConnection;
+import net.osdn.gokigen.gr2control.camera.ricohgr2.operation.RicohGr2CameraPowerOff;
 import net.osdn.gokigen.gr2control.logcat.LogCatViewer;
 import net.osdn.gokigen.gr2control.scene.IChangeScene;
 
@@ -26,6 +27,7 @@ import androidx.preference.PreferenceManager;
 public class Gr2ControlPreferenceFragment  extends PreferenceFragmentCompat implements SharedPreferences.OnSharedPreferenceChangeListener, Preference.OnPreferenceClickListener
 {
     private final String TAG = toString();
+    //private RicohGr2CameraPowerOff powerOffController = null;
     private IChangeScene changeScene = null;
     private AppCompatActivity context = null;
     private SharedPreferences preferences = null;
@@ -57,6 +59,9 @@ public class Gr2ControlPreferenceFragment  extends PreferenceFragmentCompat impl
     {
         try
         {
+            //powerOffController = new RicohGr2CameraPowerOff(context, changeScene);
+            //powerOffController.prepare();
+
             logCatViewer = new LogCatViewer(changeScene);
             logCatViewer.prepare();
             this.changeScene = changeScene;
@@ -237,6 +242,14 @@ public class Gr2ControlPreferenceFragment  extends PreferenceFragmentCompat impl
                 connectionMethod.setSummary(connectionMethod.getValue() + " ");
             }
 
+            /*
+            Preference exitApplication = findPreference("exit_application");
+            if (exitApplication != null)
+            {
+                exitApplication.setOnPreferenceClickListener(powerOffController);
+            }
+            */
+
             Preference opcPreference = findPreference("opc_settings");
             if (opcPreference != null)
             {
diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml
new file mode 100644 (file)
index 0000000..ca638be
--- /dev/null
@@ -0,0 +1,19 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+    android:width="108dp"
+    android:height="108dp"
+    android:viewportWidth="50.462574"
+    android:viewportHeight="50.462574"
+    android:tint="#EDEDED">
+  <group android:translateX="13.231287"
+      android:translateY="13.231287">
+      <path
+          android:fillColor="#FF000000"
+          android:pathData="M12,14m-3.2,0a3.2,3.2 0,1 1,6.4 0a3.2,3.2 0,1 1,-6.4 0"/>
+      <path
+          android:fillColor="#FF000000"
+          android:pathData="M16,3.33c2.58,0 4.67,2.09 4.67,4.67H22c0,-3.31 -2.69,-6 -6,-6v1.33M16,6c1.11,0 2,0.89 2,2h1.33c0,-1.84 -1.49,-3.33 -3.33,-3.33V6"/>
+      <path
+          android:fillColor="#FF000000"
+          android:pathData="M17,9c0,-1.11 -0.89,-2 -2,-2L15,4L9,4L7.17,6L4,6c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,9h-5zM12,19c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5z"/>
+  </group>
+</vector>
index c4a603d..7353dbd 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
-    <background android:drawable="@drawable/ic_launcher_background"/>
-    <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
+    <background android:drawable="@color/ic_launcher_background"/>
+    <foreground android:drawable="@drawable/ic_launcher_foreground"/>
 </adaptive-icon>
\ No newline at end of file
index c4a603d..7353dbd 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
-    <background android:drawable="@drawable/ic_launcher_background"/>
-    <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
+    <background android:drawable="@color/ic_launcher_background"/>
+    <foreground android:drawable="@drawable/ic_launcher_foreground"/>
 </adaptive-icon>
\ No newline at end of file
index 222a4f0..681754a 100644 (file)
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
index 8971a1d..0528b23 100644 (file)
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
index e0cc7df..1245f0a 100644 (file)
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
index 42c7c7b..794590f 100644 (file)
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
index c7fc958..10e7015 100644 (file)
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
index 7962f23..767c714 100644 (file)
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
index f0965fa..c2bc963 100644 (file)
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
index e23a416..559c785 100644 (file)
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
index f014491..db354a0 100644 (file)
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
index 6ec1e00..948bb3e 100644 (file)
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/values/ic_launcher_background.xml b/app/src/main/res/values/ic_launcher_background.xml
new file mode 100644 (file)
index 0000000..09a756b
--- /dev/null
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <color name="ic_launcher_background">#26A69A</color>
+</resources>
\ No newline at end of file
index 3fba833..f8ad09a 100644 (file)
@@ -2,7 +2,12 @@
 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
     <PreferenceCategory
         android:title="@string/pref_cat_application_control">
-
+/*
+        <PreferenceScreen
+            android:key="exit_application"
+            android:icon="@drawable/ic_power_settings_new_black_24dp"
+            android:title="@string/pref_exit_power_off" />
+*/
         <ListPreference
             android:title="@string/pref_connection_method"
             android:entryValues="@array/connection_method_value"