Page 515 - 3-3
P. 515
android:layout_marginTop="10dp"
android:onClick="onButtonLoginClicked"
android:text="Login"
android:textStyle="bold"
android:backgroundTint="@color/white"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editPassword" />
<ImageButton <!-- 서버 주소 설정 버튼 -->
android:id="@+id/imageButton2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:background="@drawable/settings"
android:onClick="onButtonSettingClicked"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"/>
</android.support.constraint.ConstraintLayout>
엘리베이터의 메인 화면을 띄우는 소스이다.
카. activity_loading
<?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="#F67B00"
tools:context="com.example.jbtc_01_06.outside.LoadingActivity">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent">
<ImageView <!-- 외부를 의미하는 건물 이미지 -->
android:layout_width="wrap_content"
- 515 -