Page 460 - 3-2
P. 460

android:layout_height="fill_parent"
                        android:background="#ff00"
                        android:text="Connect to the server"/>
                </LinearLayout>


                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="0.4">
                </LinearLayout>
            </LinearLayout>




            activity_main.xml


            <?xml version="1.0" encoding="utf-8"?>
            < a n d r o i d . s u p p o r t . d e s i g n . w i d g e t . C o o r d i n a t o r L a y o u t
            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="kr.icehs.intec.mtc.MainActivity">


                <android.support.design.widget.AppBarLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:theme="@style/AppTheme.AppBarOverlay">


                    <android.support.v7.widget.Toolbar
                        android:id="@+id/toolbar"
                        android:layout_width="match_parent"
                        android:layout_height="?attr/actionBarSize"
                        android:background="?attr/colorPrimary"
                        app:popupTheme="@style/AppTheme.PopupOverlay" />
                </android.support.design.widget.AppBarLayout>
                <android.support.design.widget.FloatingActionButton
                    android:visibility="gone"
                    android:id="@+id/fab"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="bottom|end"
                    android:layout_margin="@dimen/fab_margin"
                    app:srcCompat="@android:drawable/ic_dialog_alert" />
                <include layout="@layout/content_main" />


                                                         - 460 -
   455   456   457   458   459   460   461   462   463   464   465