Started to add a simplified default main screen.

This commit is contained in:
Graham Jones
2024-10-10 18:14:04 +01:00
parent db60f7f095
commit 83df18d77b
5 changed files with 1316 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
OpenSeizureDetector Android App - Change Log
============================================
V4.2.11 - added a crude 'flap' detector into OSD Algorithm
V4.3.0 - added a crude 'flap' detector into OSD Algorithm, added simplified default UI, Improved data sharing data entry.
V4.2.10 - fixed (infrequent) crash when opening data sharing page (#195), and crash if log manager fails to start (#196)
V4.2.9 - fixed crash when using Polish translation.
V4.2.8 -

View File

@@ -50,6 +50,9 @@
<activity
android:name=".MainActivity2"
android:exported="false" />
<activity
android:name=".ActivityMainSimple"
android:exported="false" />
<!--<activity
android:name=".MlModelManager"
android:exported="false"

File diff suppressed because it is too large Load Diff

View File

@@ -512,7 +512,7 @@ public class StartupActivity extends AppCompatActivity {
} else {
intent = new Intent(
getApplicationContext(),
MainActivity.class);
ActivityMainSimple.class);
}
intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(intent);

View File

@@ -6,21 +6,136 @@
android:layout_height="fill_parent"
android:orientation="vertical">
<TextView
android:id="@+id/versionTv"
<LinearLayout
android:id="@+id/statusLayoutSimple"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/app_name" />
android:orientation="vertical"
>
<TextView
android:id="@+id/versionTvSimple"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/app_name" />
<TextView
android:id="@+id/serverStatusTvSimple"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/app_name" />
</LinearLayout>
<androidx.fragment.app.FragmentContainerView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/fragment_common_container_view"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="100">
<TextView
android:id="@+id/alg1NameTv"
android:layout_weight="70"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="OSD" />
<TextView
android:id="@+id/alg1StatusTv"
android:layout_weight="70"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="alg1StatusTv" />
</LinearLayout>
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/fragment_pager"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="100">
<TextView
android:id="@+id/alg2NameTv"
android:layout_weight="70"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="Flap" />
<TextView
android:id="@+id/alg2StatusTv"
android:layout_width="0dp"
android:layout_weight="70"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="alg2StatusTv" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="100">
<TextView
android:id="@+id/alg3NameTv"
android:layout_weight="70"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="CNN" />
<TextView
android:id="@+id/alg3StatusTv"
android:layout_width="0dp"
android:layout_weight="70"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="alg3StatusTv longer text" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="100">
<TextView
android:id="@+id/alg4NameTv"
android:layout_weight="70"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="HR" />
<TextView
android:id="@+id/alg4StatusTv"
android:layout_width="0dp"
android:layout_weight="70"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="alg3StatusTv longer text" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false">
<Button
android:id="@+id/acceptAlarmButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/AcceptAlarmBtnTxt" />
<Button
android:id="@+id/cancelAudibleButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/CancelAudibleButtonTxt" />
<Button
android:id="@+id/manualAlarmButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:backgroundTint="#ff0000"
android:text="@string/ManualAlarmBtnTxt" />
</LinearLayout>
</LinearLayout>