



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Lab assignement using android atudio
Typology: Assignments
1 / 7
This page cannot be seen from the preview
Don't miss anything!




<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/plus" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/fabb" android:layout_width="50dp" android:layout_height="50dp" android:layout_marginTop="564dp" android:clickable="true" app:fabCustomSize="50dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.911" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:srcCompat="@android:drawable/ic_input_add" tools:ignore="SpeakableTextPresentCheck" /> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/call" android:layout_width="35dp" android:layout_height="35dp"
android:layout_marginBottom="136dp" android:backgroundTint="#FF0000" android:clickable="true" app:fabCustomSize="35dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.566" app:layout_constraintStart_toStartOf="parent" app:srcCompat="@android:drawable/ic_menu_call" tools:ignore="SpeakableTextPresentCheck" /> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/share" android:layout_width="35dp" android:layout_height="35dp" android:layout_marginBottom="68dp" android:backgroundTint="#FF0000" android:clickable="true" app:fabCustomSize="35dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.674" app:layout_constraintStart_toStartOf="parent" app:srcCompat="@android:drawable/ic_menu_share" tools:ignore="SpeakableTextPresentCheck" /> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/send" android:layout_width="35dp" android:layout_height="35dp" android:layout_marginBottom="184dp" android:backgroundTint="#FF0000" android:clickable="true" app:fabCustomSize="35dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.741" app:layout_constraintStart_toStartOf="parent" app:srcCompat="@android:drawable/ic_menu_send" tools:ignore="SpeakableTextPresentCheck" /> </androidx.constraintlayout.widget.ConstraintLayout>
package com.example.lab6; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Toast; import com.google.android.material.floatingactionbutton.FloatingActionButton;
OUTPUT
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity">
Toast. makeText (getApplicationContext(),"cleckedf",Toast. LENGTH_SHORT ).show( ); } });
OUTPUT