0% found this document useful (0 votes)
111 views3 pages

Scribd Mod APK for Telegram Users

The document outlines the code for an Android application named 'App Gloire', which allows users to input their name and receive a greeting. The main activity includes an EditText for name input, a Button to validate, and a TextView to display the greeting message. The layout is designed using XML with a black background and white elements for user interaction.

Uploaded by

Zoe Kigoyila
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
111 views3 pages

Scribd Mod APK for Telegram Users

The document outlines the code for an Android application named 'App Gloire', which allows users to input their name and receive a greeting. The main activity includes an EditText for name input, a Button to validate, and a TextView to display the greeting message. The layout is designed using XML with a black background and white elements for user interaction.

Uploaded by

Zoe Kigoyila
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

App Gloire

Tapez le nom

…………

Valider

Bonjour ………….

Résolu(on

MainAc([Link]

package [Link];

import [Link];
import [Link];
import [Link];
import [Link];
import [Link];

import [Link];
import [Link];
import [Link];
import [Link];
import [Link];

public class MainActivity extends AppCompatActivity {

private EditText etNom;


private TextView tvBonjour;
private Button btnValider;

@Override
protected void onCreate(Bundle savedInstanceState) {
[Link](savedInstanceState);
[Link](this);
setContentView([Link].activity_main);
[Link](findViewById([Link]), (v, insets) -> {
Insets systemBars = [Link]([Link]());
[Link]([Link], [Link], [Link], [Link]);
return insets;
});
etNom = findViewById([Link].et_nom);
tvBonjour = findViewById([Link].tv_bonjour);
btnValider = findViewById([Link].btn_valider);

[Link](new [Link]() {
@Override
public void onClick(View v) {
String nom = [Link]().toString();
String message = "Bonjour " + nom;
[Link](message);
}
});
}
}

ac(vity_main.xml

<?xml version="1.0" encoding="utf-8"?>


<[Link]
xmlns:android="[Link]
xmlns:app="[Link]
xmlns:tools="[Link]
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:padding="20dp"
android:background="@color/black">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/white"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:gravity="center">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="App Gloire"
android:textSize="30sp"
android:textStyle="bold"
android:layout_marginBottom="40dp"
/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Tapez le nom"
android:layout_marginHorizontal="20dp"
android:textSize="20sp"
/>

<EditText
android:id="@+id/et_nom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:textSize="20sp"
android:hint="votre nom ici"
/>

<Button
android:id="@+id/btn_valider"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Valider"
android:textSize="18sp"
android:layout_marginTop="20dp"
/>

<TextView
android:id="@+id/tv_bonjour"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Bonjour ..."
android:layout_marginTop="30dp"
android:textSize="35sp"
android:textStyle="bold"/>

</LinearLayout>

</[Link]>

You might also like