Newer
Older
mapCollector / app / src / main / res / layout / fragment_setting.xml
Pengxh on 24 Sep 2021 3 KB 首次提交
<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"
    android:orientation="vertical"
    tools:context="com.casic.mapcollector.fragments.ConstructListFragment"
    android:background="@drawable/backgroud1">

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:orientation="horizontal">
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/black"
            android:gravity="center"
            android:padding="5dp"
            android:text="服务器IP:"
            android:textSize="@dimen/textSize_24"/>

        <EditText
            android:id="@+id/editHostIp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="3dp"
            android:textColor="@color/font_black_2"
            android:maxLines="4"
            android:layout_weight="1"
            android:textSize="@dimen/textSize_24"
            android:hint="192.168.0.203" />
    </LinearLayout>>

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:orientation="horizontal">
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/black"
            android:gravity="center"
            android:padding="5dp"
            android:text="端口号:"
            android:textSize="@dimen/textSize_24"/>

        <EditText
            android:id="@+id/editPort"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="3dp"
            android:textColor="@color/font_black_2"
            android:maxLines="4"
            android:layout_weight="1"
            android:textSize="@dimen/textSize_24"
            android:hint="8080" />
    </LinearLayout>>

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        android:weightSum="1"
        android:layout_gravity="bottom">

        <Button
            style="?android:attr/button"
            android:layout_width="140.0dip"
            android:layout_height="60.0dip"
            android:layout_marginTop="10.0dip"
            android:id="@+id/btnSaveSetting"
            android:background="@drawable/btn_ok" />

    </LinearLayout>


    <FrameLayout xmlns:fab="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1">

        <include
            android:id="@+id/blankLayout"
            layout="@layout/view_exception"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="center" />

    </FrameLayout>

</LinearLayout>