.Net Maui use DLL on every platform

Issue I’m building a Keygenerator application with .Net Maui (not blazor). For this i use c#-Code in the MainPage.xaml.cs that calls a cpp .dll file and imports some methods. The import looks like this: [DllImport("W5R._Keygen.dll", CallingConvention = CallingConvention.StdCall)] internal unsafe

Continue reading

There is always a default background on TextInputLayout in Android

Issue I have TextInputLayout and TextInputEditText like this <com.google.android.material.textfield.TextInputLayout android:id=”@+id/loginUsernameText” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_marginLeft=”@dimen/text_input_margin_left_right” android:layout_marginRight=”@dimen/text_input_margin_left_right” android:layout_marginTop=”@dimen/text_input_margin_top_bottom” android:hint=”@string/username” android:layout_below=”@id/loginButtonLogin”> <com.google.android.material.textfield.TextInputEditText android:id=”@+id/loginUsername” android:layout_width=”match_parent” android:padding=”5dp” android:layout_height=”wrap_content” android:inputType=”textEmailAddress”/> </com.google.android.material.textfield.TextInputLayout> <com.google.android.material.textfield.TextInputLayout android:id=”@+id/loginPasswordText” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_marginLeft=”@dimen/text_input_margin_left_right” android:layout_marginRight=”@dimen/text_input_margin_left_right” android:layout_marginTop=”@dimen/text_input_margin_top_bottom” android:hint=”@string/password” android:layout_below=”@id/loginUsernameText”> <com.google.android.material.textfield.TextInputEditText android:id=”@+id/loginPassword” android:layout_width=”match_parent” android:padding=”5dp” android:layout_height=”wrap_content” android:inputType=”textPassword”/> </com.google.android.material.textfield.TextInputLayout>

Continue reading

Type mismatch: inferred type is but was expected

Issue I’m new to Kotlin and here is my problem: I use dataBinding in my app and When I want to set my variable from layout: <?xml version=”1.0″ encoding=”utf-8″?><layout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” xmlns:app=”http://schemas.android.com/apk/res-auto”> <data> <import type=”android.view.View”/> <variable name=”noteViewModel” type=”moeindeveloper.kotlinroomaac.ViewModel.NoteViewModel” /> </data>

Continue reading