Page 234 - 3-3
P. 234
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<TextView
android:id="@+id/EXIT"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:padding="10dp"
android:text=" 종료"
android:background="@drawable/loginbutton_selector"
android:textColor="#009688"
android:textSize="17sp"
android:textStyle="bold"/>
<TextView
android:id="@+id/CANCEL"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:padding="10dp"
android:text=" 취소"
android:background="@drawable/loginbutton_selector"
android:textColor="#009688"
android:textSize="17sp"
android:textStyle="bold"/>
</LinearLayout>
</LinearLayout>
마) activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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="com.helloworld.smartschool.Office_menu"
android:background="#FFFFFF">
<!-- 화면에 맞추기 위해 ScalableLayout 사용-->
<com.ssomai.android.scalablelayout.ScalableLayout
- 234 -