OSDN Git Service

下部ボタンを少し大きくする。。
authorMRSa <mrsa@myad.jp>
Fri, 2 Feb 2018 15:50:02 +0000 (00:50 +0900)
committerMRSa <mrsa@myad.jp>
Fri, 2 Feb 2018 15:50:02 +0000 (00:50 +0900)
wear/src/main/java/jp/sfjp/gokigen/a01c/MainActivity.java
wear/src/main/res/layout-round/activity_main.xml

index dcdbfbe..9a044da 100644 (file)
@@ -264,6 +264,7 @@ public class MainActivity extends WearableActivity implements  IChangeScene, ISh
      */
     private boolean launchWifiSettingScreen()
     {
+        Log.v(TAG, "launchWifiSettingScreen()");
         try
         {
             // Wifi 設定画面を表示する... (SONY Smart Watch 3では開かないけど...)
@@ -292,6 +293,18 @@ public class MainActivity extends WearableActivity implements  IChangeScene, ISh
                 catch (Exception ee)
                 {
                     ee.printStackTrace();
+                    try
+                    {
+                        // LG G Watch Rで開く場合のIntent...
+                        Intent intent = new Intent("android.intent.action.MAIN");
+                        intent.setClassName("com.google.android.apps.wearable.settings", "com.google.android.clockwork.settings.MainSettingsActivity");
+                        startActivity(intent);
+                        return (true);
+                    }
+                    catch (android.content.ActivityNotFoundException ex3)
+                    {
+                        ex3.printStackTrace();
+                    }
                 }
             }
             catch (Exception e)
index 5499921..db32fae 100644 (file)
@@ -81,7 +81,7 @@
                 android:background="@null"
                 android:id="@+id/btn_1"
                 android:layout_gravity="bottom"
-                android:layout_height="15dp"
+                android:layout_height="18dp"
                 android:layout_width="25dp"
                 android:clickable="true"
                 android:focusable="true"
@@ -91,7 +91,7 @@
                 android:background="@null"
                 android:id="@+id/btn_2"
                 android:layout_gravity="bottom"
-                android:layout_height="15dp"
+                android:layout_height="18dp"
                 android:layout_width="25dp"
                 android:clickable="true"
                 android:focusable="true"
                 android:background="@null"
                 android:id="@+id/btn_3"
                 android:layout_gravity="bottom"
-                android:layout_height="15dp"
+                android:layout_height="18dp"
                 android:layout_width="25dp"
                 android:clickable="true"
                 android:focusable="true"
                 android:background="@null"
                 android:id="@+id/btn_4"
                 android:layout_gravity="bottom"
-                android:layout_height="15dp"
+                android:layout_height="18dp"
                 android:layout_width="25dp"
                 android:clickable="true"
                 android:focusable="true"
             <ImageButton
                 android:id="@+id/btn_5"
                 android:layout_width="25dp"
-                android:layout_height="15dp"
+                android:layout_height="18dp"
                 android:clickable="true"
                 android:focusable="true"
                 android:layout_gravity="bottom"
             <ImageButton
                 android:id="@+id/btn_6"
                 android:layout_width="25dp"
-                android:layout_height="15dp"
+                android:layout_height="18dp"
                 android:clickable="true"
                 android:focusable="true"
                 android:layout_gravity="bottom"