Page 289 - MDP2022-3
P. 289
android:drawableLeft="@drawable/icon"
android:onClick="onButtonClicked"
android:paddingLeft="20dp"
android:text="실시간CCTV"
android:textColor="#ffffff"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.84" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="225dp"
android:layout_height="156dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.252"
app:srcCompat="@drawable/cctv"
tools:ignore="MissingConstraints" />
<ImageButton
android:id="@+id/imageButton2"
android:layout_width="132dp"
android:layout_height="126dp"
android:onClick="onButtonClicked2"
android:scaleType="fitCenter"
android:background="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.86"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.694"
app:srcCompat="@drawable/googledrive"
tools:ignore="MissingConstraints" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/call"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="onButtonClicked3"
android:text="전화"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.182"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.708"
tools:ignore="MissingConstraints" />
</androidx.constraintlayout.widget.ConstraintLayout>
<긴급 전화 코드>
call.xml
<?xml version="1.0" encoding="utf-8"?>
<adroidx.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=".SubActivity">