Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Felipe Cardoso Dos Santos - 010622013

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Felipe Cardoso dos Santos - 010622013

PRINTS:

XML:

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


<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAlignment="center"
android:layout_gravity="center"
android:text="FELIPE CARDOSO DOS SANTOS"
/>

<ImageView
android:layout_width="125dp"
android:layout_height="125dp"
android:layout_gravity="center"
android:src="@mipmap/logo_ite_foreground"
/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:textAlignment="center"
android:layout_gravity="center"
android:textSize="18sp"
android:text="Faça seu Login em nossa plataforma"
android:textColor="#18941d"
/>

<EditText
android:id="@+id/campoTexto1"
android:inputType="number"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:hint="Digite o seu RA" />

<EditText
android:id="@+id/campoTexto2"
android:inputType="numberPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Digite a sua senha" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >

<Button
android:id="@+id/logar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="#18941d"
android:layout_weight="1"
app:cornerRadius="0dp"
android:text="LOGAR" />

<Button
android:id="@+id/limpar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="#Bb1618"
android:layout_weight="1"
app:cornerRadius="0dp"
android:text="LIMPAR" />

</LinearLayout>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:textAlignment="center"
android:layout_gravity="center"
android:layout_marginTop="15dp"
android:textSize="18sp"
android:text="Crie sua conta agora mesmo"
android:textColor="#18941d"
/>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="#18941d"
android:layout_gravity="center"
app:cornerRadius="0dp"
android:text="CRIAR CONTA" />

</LinearLayout>

MainActivity.kt:

package com.example.kotlin

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.Toast

class MainActivity : AppCompatActivity() {


override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val logar : Button = findViewById(R.id.logar)
val limpar : Button = findViewById(R.id.limpar)

logar.setOnClickListener{
Toast.makeText(this, "Logado com sucesso",
Toast.LENGTH_LONG).show()
}

limpar.setOnClickListener{
Toast.makeText(this, "Limpo com sucesso",
Toast.LENGTH_LONG).show()
}
}
}

You might also like