Newer
Older
mapCollector / app / src / main / res / layout / activity_setting.xml
Pengxh on 24 Sep 2021 4 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/edit_HostIp"
            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:text="119.254.103.80"
            android:textSize="@dimen/textSize_24"
            android:hint="119.254.103.80"/>
    </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/edit_Port"
            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:text="4000"
            android:hint="4000" />
    </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"/>

        <TextView
            android:id="@+id/edit_Version"
            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:text="@string/version"
            android:textSize="@dimen/textSize_24"
            android:hint="8080" />
    </LinearLayout>>

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

        <Button
            style="?android:attr/button"
            android:layout_width="140.0dip"
            android:layout_height="55.0dip"
            android:id="@+id/btn_SaveHostSetting"
            android:background="@drawable/btn_ok" />

    </LinearLayout>


</LinearLayout>