Felipe Cardoso Dos Santos - 010622013
Felipe Cardoso Dos Santos - 010622013
Felipe Cardoso Dos Santos - 010622013
PRINTS:
XML:
<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
logar.setOnClickListener{
Toast.makeText(this, "Logado com sucesso",
Toast.LENGTH_LONG).show()
}
limpar.setOnClickListener{
Toast.makeText(this, "Limpo com sucesso",
Toast.LENGTH_LONG).show()
}
}
}