Amélioration formulaire contact
This commit is contained in:
parent
5ee20ec4cd
commit
d06d284fcd
@ -7,6 +7,7 @@ import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
@ -14,6 +15,7 @@ import androidx.appcompat.app.AppCompatActivity;
|
||||
public class MailActivity extends AppCompatActivity {
|
||||
|
||||
private EditText etSujet, etMessage;
|
||||
private TextView tvAnnuler;
|
||||
private Button btnEnvoyer;
|
||||
private static final String EMAIL_TO = "regie@radiomercure.fr";
|
||||
|
||||
@ -25,6 +27,7 @@ public class MailActivity extends AppCompatActivity {
|
||||
etSujet = findViewById(R.id.etSujet);
|
||||
etMessage = findViewById(R.id.etMessage);
|
||||
btnEnvoyer = findViewById(R.id.btnEnvoyer);
|
||||
tvAnnuler = findViewById(R.id.tvAnnuler);
|
||||
|
||||
btnEnvoyer.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
@ -39,6 +42,12 @@ public class MailActivity extends AppCompatActivity {
|
||||
}
|
||||
});
|
||||
|
||||
tvAnnuler.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected void envoiMail() {
|
||||
|
@ -79,8 +79,19 @@
|
||||
android:layout_gravity="center"
|
||||
android:drawableLeft="@android:drawable/ic_menu_send"
|
||||
android:minHeight="48dp"
|
||||
android:textColor="@color/white"
|
||||
android:text="Envoyer" />
|
||||
android:text="@string/btn_envoyer"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/tvAnnuler"
|
||||
android:textColor="@color/purple_700"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20dp"
|
||||
android:contextClickable="true"
|
||||
android:text="@string/btn_annuler" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -40,5 +40,7 @@
|
||||
<string name="menu_politique_de_confidentialit">Politique de Confidentialité</string>
|
||||
<string name="toast_quitter">Cliquez sur retour pour quitter</string>
|
||||
<string name="toast_live">Vous écoutez Radio Mercure en direct</string>
|
||||
<string name="btn_envoyer">Envoyer</string>
|
||||
<string name="btn_annuler">Annuler</string>
|
||||
|
||||
</resources>
|
Loading…
x
Reference in New Issue
Block a user