initial push of android app and bt server. these are used to make a remote usable via phone

This commit is contained in:
Elias Quinn
2025-06-30 07:53:58 +01:00
parent 9e5b7a6999
commit 654af164ab
2009 changed files with 102252 additions and 2084 deletions

View File

@@ -0,0 +1,24 @@
anim/nav_default_enter_anim.xml;anim/nav_default_enter_anim.xml
anim/nav_default_exit_anim.xml;anim/nav_default_exit_anim.xml
anim/nav_default_pop_enter_anim.xml;anim/nav_default_pop_enter_anim.xml
anim/nav_default_pop_exit_anim.xml;anim/nav_default_pop_exit_anim.xml
drawable/maui_splash.xml;drawable/maui_splash.xml
drawable/maui_splash_image.xml;drawable/maui_splash_image.xml
values/attr.xml;values/attr.xml
values/colors.xml;values/colors.xml
values/styles.xml;values/styles.xml
Layout/drawer_layout.axml;layout/drawer_layout.xml
Layout/fragment_backstack.axml;layout/fragment_backstack.xml
Layout/navigationlayout.axml;layout/navigationlayout.xml
anim/nav_default_enter_anim.xml;anim/nav_default_enter_anim.xml
anim/nav_default_exit_anim.xml;anim/nav_default_exit_anim.xml
anim/nav_default_pop_enter_anim.xml;anim/nav_default_pop_enter_anim.xml
anim/nav_default_pop_exit_anim.xml;anim/nav_default_pop_exit_anim.xml
drawable/maui_splash.xml;drawable/maui_splash.xml
drawable/maui_splash_image.xml;drawable/maui_splash_image.xml
values/attr.xml;values/attr.xml
values/colors.xml;values/colors.xml
values/styles.xml;values/styles.xml
Layout/drawer_layout.axml;layout/drawer_layout.xml
Layout/fragment_backstack.axml;layout/fragment_backstack.xml
Layout/navigationlayout.axml;layout/navigationlayout.xml

View File

@@ -0,0 +1 @@
<!-- Copy of slide_in_right from android --><set xmlns:android="http://schemas.android.com/apk/res/android"><translate android:fromXDelta="50%p" android:toXDelta="0" android:duration="@android:integer/config_mediumAnimTime" /><alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="@android:integer/config_mediumAnimTime" /></set>

View File

@@ -0,0 +1 @@
<!-- Copy of slide_out_left from android --><set xmlns:android="http://schemas.android.com/apk/res/android"><translate android:fromXDelta="0" android:toXDelta="-50%p" android:duration="@android:integer/config_mediumAnimTime" /><alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="@android:integer/config_mediumAnimTime" /></set>

View File

@@ -0,0 +1 @@
<!-- Copy of slide_in_left from android --><set xmlns:android="http://schemas.android.com/apk/res/android"><translate android:fromXDelta="-50%p" android:toXDelta="0" android:duration="@android:integer/config_mediumAnimTime" /><alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="@android:integer/config_mediumAnimTime" /></set>

View File

@@ -0,0 +1 @@
<!-- Copy of slide_out_right from android --><set xmlns:android="http://schemas.android.com/apk/res/android"><translate android:fromXDelta="0" android:toXDelta="50%p" android:duration="@android:integer/config_mediumAnimTime" /><alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="@android:integer/config_mediumAnimTime" /></set>

View File

@@ -0,0 +1 @@
<layer-list android:opacity="opaque" xmlns:android="http://schemas.android.com/apk/res/android"><item android:drawable="@color/maui_splash_color" /><item android:drawable="@drawable/maui_splash_image" android:gravity="center" /></layer-list>

View File

@@ -0,0 +1 @@
<layer-list />

View File

@@ -0,0 +1 @@
<androidx.drawerlayout.widget.DrawerLayout android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android"></androidx.drawerlayout.widget.DrawerLayout>

View File

@@ -0,0 +1 @@
<androidx.fragment.app.FragmentContainerView android:id="@+id/nav_host" android:name="microsoft.maui.platform.MauiNavHostFragment" android:layout_width="match_parent" android:layout_height="match_parent" app:defaultNavHost="false" app:layout_behavior="@string/appbar_scrolling_view_behavior" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android"></androidx.fragment.app.FragmentContainerView>

View File

@@ -0,0 +1 @@
<androidx.coordinatorlayout.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/navigation_layout" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android"><com.google.android.material.appbar.AppBarLayout android:id="@+id/navigationlayout_appbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"><androidx.fragment.app.FragmentContainerView android:id="@+id/navigationlayout_toptabs" android:layout_width="match_parent" android:layout_height="wrap_content" /></com.google.android.material.appbar.AppBarLayout><androidx.fragment.app.FragmentContainerView android:id="@+id/navigationlayout_content" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" /><androidx.fragment.app.FragmentContainerView android:id="@+id/navigationlayout_bottomtabs" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" /></androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@@ -0,0 +1,4 @@
<resources><attr name="maui_splash" format="string" /><attr name="appBarLayoutStyle" format="reference" /><attr name="bottomNavigationViewStyle" format="reference" /><!--
This defines the collectionViewStyle attribute so that we can use it
to add the scrollbars style to the CollectionView/CarouselView renderers.
--><declare-styleable name="ItemsViewRendererTheme"><attr name="collectionViewStyle" format="reference" /></declare-styleable><declare-styleable name="ScrollViewRendererTheme"><attr name="scrollViewStyle" format="reference" /></declare-styleable></resources>

View File

@@ -0,0 +1 @@
<resources><color name="colorPrimary">#2c3e50</color><color name="colorPrimaryDark">#1B3147</color><color name="colorAccent">#3498db</color><color name="colorActionMenuTextColor">#FFFFFF</color><color name="maui_splash_color">@color/colorPrimary</color></resources>

View File

@@ -0,0 +1,13 @@
<resources><!-- Base application theme. --><style name="Maui.MainTheme" parent="Theme.MaterialComponents.DayNight"><item name="colorPrimary">@color/colorPrimary</item><item name="colorPrimaryDark">@color/colorPrimaryDark</item><item name="colorAccent">@color/colorAccent</item><item name="android:actionMenuTextColor">@color/colorActionMenuTextColor</item><item name="appBarLayoutStyle">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item><item name="bottomNavigationViewStyle">@style/Widget.Design.BottomNavigationView</item><item name="materialButtonStyle">@style/MauiMaterialButton</item><item name="checkboxStyle">@style/MauiCheckBox</item><item name="android:textAllCaps">false</item><item name="alertDialogTheme">@style/MauiAlertDialogTheme</item></style><style name="Maui.MainTheme.NoActionBar" parent="Maui.MainTheme"><item name="windowActionBar">false</item><item name="windowNoTitle">true</item><item name="windowActionModeOverlay">true</item><item name="android:actionModeBackground">?attr/colorPrimary</item><item name="android:actionModeStyle">@style/ActionMode</item></style><style name="ActionMode"><item name="android:background">?attr/colorPrimary</item><item name="android:height">?attr/actionBarSize</item></style><!-- Splash theme --><style name="Maui.SplashTheme" parent="Maui.MainTheme.NoActionBar"><item name="maui_splash">true</item><item name="android:windowBackground">@drawable/maui_splash</item><!--
Android 12+ specific settings
See: https://developer.android.com/guide/topics/ui/splash-screen#set-theme
--><item name="android:windowSplashScreenBackground">@color/maui_splash_color</item><item name="android:windowSplashScreenAnimatedIcon">@drawable/maui_splash</item></style><!-- Themes for Xamarin.Forms backwards compatibility --><style name="MainTheme" parent="Maui.MainTheme" /><style name="MainTheme.Base" parent="Maui.MainTheme" /><style name="MainTheme.NoActionBar" parent="Maui.MainTheme.NoActionBar" /><style name="AppTheme" parent="Maui.MainTheme" /><style name="AppTheme.NoActionBar" parent="Maui.MainTheme.NoActionBar" /><style name="MauiMaterialButton" parent="Widget.MaterialComponents.Button.UnelevatedButton"><!-- remove all the min sizes as MAUI manages it --><item name="android:minWidth">0dp</item><item name="android:minHeight">0dp</item><!-- padding is the space between the edge of the background and the contents --><item name="android:paddingLeft">0dp</item><item name="android:paddingRight">0dp</item><item name="android:paddingTop">0dp</item><item name="android:paddingBottom">0dp</item><!-- insets are the amount of space btween the actual color and the edge of the view frame --><item name="android:insetTop">0dp</item><item name="android:insetBottom">0dp</item><item name="android:insetLeft">0dp</item><item name="android:insetRight">0dp</item></style><style name="MauiCheckBox" parent="Widget.Material3.CompoundButton.CheckBox"><!-- remove all the min sizes as MAUI manages it --><item name="android:minWidth">0dp</item><item name="android:minHeight">0dp</item><!-- remove the button tint as MAUI manages it --><item name="buttonTint">?attr/colorPrimary</item></style><style name="MauiAlertDialogTheme" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog"><item name="colorPrimary">?attr/colorOnSurface</item></style><!--
The collectionViewScrollBars style will be used as the default style for ItemsViewRenderer (the base renderer
for CollectionView and CarouselView. We have to use a style to set up the scrollbars because there is currently
no way to add them via code.
When the renderer is created, we wrap its Context's theme with collectionViewTheme; that way, the
collectionViewScrollBars style will be defined. With the style defined (and with the collectionViewStyle
attribute defined in attrs.xml), we can apply the collectionViewScrollBars style explicitly to the renderer we are
creating (and avoid forcing every child control to have scrollbars).
--><style name="scrollViewScrollBars"><item name="android:scrollbars">vertical|horizontal</item></style><style name="collectionViewTheme"><item name="collectionViewStyle">@style/scrollViewScrollBars</item></style><style name="scrollViewTheme"><item name="scrollViewStyle">@style/scrollViewScrollBars</item></style></resources>