diff options
Diffstat (limited to 'app/src/main/res')
| -rw-r--r-- | app/src/main/res/layout/activity_device.xml | 49 | ||||
| -rw-r--r-- | app/src/main/res/layout/activity_main.xml | 28 | ||||
| -rw-r--r-- | app/src/main/res/values/strings.xml | 3 |
3 files changed, 80 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_device.xml b/app/src/main/res/layout/activity_device.xml new file mode 100644 index 0000000..1364066 --- /dev/null +++ b/app/src/main/res/layout/activity_device.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:padding="24dp" + android:background="#1e1e2f"> + + <TextView + android:id="@+id/deviceStatusText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="18sp"/> + + <Button + android:id="@+id/syncTimeButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:text="Sync Time (syncTime)"/> + + <Button + android:id="@+id/findBandButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:text="Find Watch (switchFindBand 0x01)"/> + + <Button + android:id="@+id/stopFindBandButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:text="Stop Finding Watch (switchFindBand 0x00)"/> + + <Button + android:id="@+id/configRealTimeMeasureHeartRateButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:text="Measure Heart Rate (configRealTimeMeasure type=0x00 start=false)"/> + + <Button + android:id="@+id/stopConfigRealTimeMeasureHeartRateButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:text="Stop Measuring Heart Rate (configRealTimeMeasure type=0x00 start=false)"/> +</LinearLayout> diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..e70aa4c --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:background="#1e1e2f" + android:padding="24dp"> + + <Button + android:id="@+id/scanButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Scan"/> + + <TextView + android:id="@+id/statusText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="8dp" + android:text=""/> + + <ListView + android:id="@+id/deviceList" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="16dp"/> + +</LinearLayout> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..439573b --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ +<resources> + <string name="app_name">zwzn-freefit</string> +</resources> |
