From 7c095281aad86e347f749785991f1a35c110c1fc Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Thu, 29 Sep 2022 09:53:45 -0700 Subject: [PATCH] sqlite --- .idea/deploymentTargetDropDown.xml | 13 +- app/src/main/AndroidManifest.xml | 7 + .../page/r3forumtest/MainActivity.java | 137 ++++++++++++------ .../page/r3forumtest/MainScreen.java | 14 ++ .../page/r3forumtest/MyDbHelper.java | 24 +++ .../asgardius/page/r3forumtest/SignUp.java | 18 ++- .../main/res/layout/activity_main_screen.xml | 20 +++ app/src/main/res/layout/activity_sign_up.xml | 10 ++ 8 files changed, 192 insertions(+), 51 deletions(-) create mode 100644 app/src/main/java/asgardius/page/r3forumtest/MainScreen.java create mode 100644 app/src/main/java/asgardius/page/r3forumtest/MyDbHelper.java create mode 100644 app/src/main/res/layout/activity_main_screen.xml diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml index 4641e86..7603d82 100644 --- a/.idea/deploymentTargetDropDown.xml +++ b/.idea/deploymentTargetDropDown.xml @@ -1,6 +1,17 @@ + + + + + + + + + + + @@ -12,6 +23,6 @@ - + \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 91abf1c..a3e565c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -15,6 +15,13 @@ android:supportsRtl="true" android:theme="@style/Theme.R3ForumTest" tools:targetApi="31"> + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_sign_up.xml b/app/src/main/res/layout/activity_sign_up.xml index 541eaf3..2234bea 100644 --- a/app/src/main/res/layout/activity_sign_up.xml +++ b/app/src/main/res/layout/activity_sign_up.xml @@ -16,6 +16,7 @@ android:autofillHints="username" android:focusable="true" android:hint="Nombre" + android:maxLength="30" android:inputType="textNoSuggestions" android:textColorHint="@color/white" android:textColor="@color/white" @@ -28,6 +29,7 @@ android:autofillHints="username" android:focusable="true" android:hint="Apellido" + android:maxLength="30" android:inputType="textNoSuggestions" android:textColorHint="@color/white" android:textColor="@color/white" @@ -40,6 +42,7 @@ android:autofillHints="username" android:focusable="true" android:hint="Nombre de usuario" + android:maxLength="15" android:inputType="textNoSuggestions" android:textColorHint="@color/white" android:textColor="@color/white" @@ -52,6 +55,7 @@ android:autofillHints="emailAddress" android:focusable="true" android:hint="Correo Electronico" + android:maxLength="30" android:inputType="textEmailAddress" android:textColorHint="@color/white" android:textColor="@color/white" @@ -64,6 +68,7 @@ android:autofillHints="username" android:focusable="true" android:hint="Contraseña" + android:maxLength="30" android:inputType="textPassword" android:textColorHint="@color/white" android:textColor="@color/white" @@ -76,6 +81,7 @@ android:autofillHints="username" android:focusable="true" android:hint="Confirmar contraseña" + android:maxLength="30" android:inputType="textPassword" android:textColorHint="@color/white" android:textColor="@color/white" @@ -87,6 +93,7 @@ android:layout_height="48dp" android:focusable="true" android:hint="Nacionalidad" + android:maxLength="30" android:inputType="textNoSuggestions" android:textColorHint="@color/white" android:textColor="@color/white" @@ -116,6 +123,7 @@ android:layout_weight="1" android:focusable="true" android:hint="DD" + android:maxLength="2" android:inputType="date" android:textColorHint="@color/white" android:textColor="@color/white" @@ -128,6 +136,7 @@ android:layout_weight="1" android:focusable="true" android:hint="MM" + android:maxLength="2" android:inputType="date" android:textColorHint="@color/white" android:textColor="@color/white" @@ -140,6 +149,7 @@ android:layout_weight="1" android:focusable="true" android:hint="AAAA" + android:maxLength="4" android:inputType="date" android:textColorHint="@color/white" android:textColor="@color/white"