Page 512 - 3-3
P. 512
android:onClick="onButtonElevatorClicked"
android:background="@drawable/elevator"
app:layout_constraintBottom_toTopOf="@+id/guidelineBottom"
app:layout_constraintLeft_toLeftOf="@+id/guidelineLeft"
app:layout_constraintRight_toLeftOf="@+id/guidelineRight"
app:layout_constraintTop_toTopOf="@+id/guidelineTop"/>
</android.support.constraint.ConstraintLayout>
자. activity_elevator_log
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.jbtc_01_06.outside.Elevator.ElevatorLogActivity"
android:orientation="vertical">
<ListView <!-- Log 정보를 표시할 ListView -->
android:id="@+id/listLog"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="20dp">
</ListView>
</LinearLayout>
엘리베이터 이동기록을 표시하는 소스이다.
차. activity_elevator_main
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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"
android:background="@color/elevatorMain"
android:orientation="vertical"
tools:context="com.example.jbtc_01_06.outside.Elevator.ElevatorMainActivity">
<android.support.constraint.Guideline
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- 512 -