.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package pt.epvc.dreambar;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
@@ -30,7 +31,9 @@ public class MainActivity extends AppCompatActivity {
|
||||
iniciarButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Toast.makeText(MainActivity.this, "SOU O MAIOR!!!!", Toast.LENGTH_SHORT).show();
|
||||
//Toast.makeText(MainActivity.this, "SOU O MAIOR!!!!", Toast.LENGTH_SHORT).show();
|
||||
Intent intent = new Intent(MainActivity.this, MenuActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -38,4 +38,14 @@
|
||||
app:layout_constraintStart_toStartOf="@+id/textView2"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView2"
|
||||
tools:srcCompat="@tools:sample/avatars" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editTextText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ems="10"
|
||||
android:inputType="text"
|
||||
android:text="Name"
|
||||
tools:layout_editor_absoluteX="95dp"
|
||||
tools:layout_editor_absoluteY="352dp" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in New Issue
Block a user