This commit is contained in:
2026-04-23 16:04:58 +01:00
parent 42bb2308a7
commit d90d443689
54 changed files with 1812 additions and 1922 deletions

View File

@@ -18,7 +18,7 @@ import okhttp3.Response;
public class Gemini {
private static final String API_KEY = "AIzaSyBmLgn-SHaTDvAeDWsw2iTZRR9gahhOu7k";
private static final String MODEL_NAME = "gemini-flash-latest"; // O gemini-1.5-flash foi descontinuado e removido da API
private static final String MODEL_NAME = "gemini-1.5-flash";
private static final String API_URL = "https://generativelanguage.googleapis.com/v1beta/models/" + MODEL_NAME + ":generateContent?key=" + API_KEY;
private final OkHttpClient client;
private final Handler mainHandler;

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="@color/primary_color"
android:endColor="@color/secondary_color"
android:angle="135"
android:type="linear" />
<corners
android:bottomLeftRadius="36dp"
android:bottomRightRadius="36dp" />
</shape>

View File

@@ -41,7 +41,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/email_hint"
android:inputType="textEmailAddress" />
android:inputType="textEmailAddress"
android:imeOptions="actionDone" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.button.MaterialButton

View File

@@ -53,7 +53,9 @@
android:layout_height="wrap_content"
android:hint="@string/email_hint"
android:autofillHints="emailAddress"
android:inputType="textEmailAddress" />
android:inputType="textEmailAddress"
android:imeOptions="actionNext"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
@@ -68,7 +70,9 @@
android:layout_height="wrap_content"
android:hint="@string/password_hint"
android:autofillHints="password"
android:inputType="textPassword" />
android:inputType="textPassword"
android:imeOptions="actionDone"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.checkbox.MaterialCheckBox

View File

@@ -17,7 +17,9 @@
android:id="@+id/edit_med_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textCapWords" />
android:inputType="textCapWords"
android:imeOptions="actionNext"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
<!-- Search Results RecyclerView -->
@@ -108,8 +110,10 @@
android:id="@+id/edit_med_notes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:minLines="2"/>
android:inputType="text"
android:imeOptions="actionDone"
android:minLines="2"
android:maxLines="3" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>

View File

@@ -79,7 +79,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Motivo da Consulta"
android:inputType="textMultiLine"
android:inputType="text"
android:imeOptions="actionDone"
android:minLines="2"
android:maxLines="4"/>
</com.google.android.material.textfield.TextInputLayout>

View File

@@ -53,8 +53,10 @@
android:id="@+id/input_symptoms"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textCapSentences|textMultiLine"
android:inputType="textCapSentences"
android:imeOptions="actionDone"
android:minLines="3"
android:maxLines="5"
android:gravity="top|start"/>
</com.google.android.material.textfield.TextInputLayout>