home_fragment_site.xml 7.3 KB
<?xml version="1.0" encoding="utf-8"?>
<com.xdy.ui.viewgroup.AutoAdaptHeaderViewGroup xmlns:android="http://schemas.android.com/apk/res/android"
                                               xmlns:custom="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="@color/white"
                                               tools:context=".ui.HomeActivity">

    <RelativeLayout
        android:id="@+id/rl_close"
        android:layout_width="@dimen/ui_DIMEN_98.0PX"
        android:layout_height="@dimen/ui_DIMEN_98.0PX">

        <ImageView
            style="@style/ui_wrap_wrap"
            android:layout_centerInParent="true"
            android:src="@mipmap/close"/>
    </RelativeLayout>

    <ImageView
        android:id="@+id/iv_logo"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/rl_close"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="@dimen/ui_DIMEN_24.0PX"
        android:src="@mipmap/logo"/>


    <!-- classId  709902904  472732494 2067973545  1895498438-->
    <RelativeLayout
        android:id="@+id/rl_classid"
        style="@style/home_input_style"
        android:layout_below="@id/iv_logo"
        android:layout_marginTop="@dimen/ui_DIMEN_80.0PX">

        <TextView
            android:id="@+id/tv_classid"
            style="@style/home_input_title_style"
            android:layout_centerVertical="true"
            android:text="@string/home_classid_hint"/>

        <android.support.v7.widget.AppCompatEditText
            android:id="@+id/acet_classid"
            style="@style/home_input_edit_style"
            android:layout_toRightOf="@id/tv_classid"
            android:hint="@string/home_classid_hint"
            android:text="472732494"
            android:inputType="number"/>

        <View
            style="@style/ui_divider_line_horizontal"
            android:layout_alignParentBottom="true"
            android:background="#cccccc"/>
    </RelativeLayout>

    <!-- userRole -->
    <RelativeLayout
        android:id="@+id/rl_userrole"
        style="@style/home_input_style"
        android:layout_below="@id/rl_classid">

        <TextView
            android:id="@+id/tv_userrole"
            style="@style/home_input_title_style"
            android:layout_centerVertical="true"
            android:text="@string/home_role_hint"/>

        <android.support.v7.widget.AppCompatEditText
            android:id="@+id/acet_userrole"
            style="@style/home_input_edit_style"
            android:layout_toRightOf="@id/tv_userrole"
            android:text="normal"
            android:hint="@string/home_role_hint"/>

        <View
            style="@style/ui_divider_line_horizontal"
            android:layout_alignParentBottom="true"
            android:background="#cccccc"/>
    </RelativeLayout>

    <!-- portal -->
    <RelativeLayout
        android:id="@+id/rl_portal"
        style="@style/home_input_style"
        android:layout_below="@id/rl_userrole">

        <TextView
            android:id="@+id/tv_portal"
            style="@style/home_input_title_style"
            android:layout_centerVertical="true"
            android:text="@string/home_portal_hint"/>

        <android.support.v7.widget.AppCompatEditText
            android:id="@+id/acet_portal"
            style="@style/home_input_edit_style"
            android:layout_toRightOf="@id/tv_portal"
            android:hint="@string/home_classid_hint"
            android:text="112.126.80.182:90"/>

        <View
            style="@style/ui_divider_line_horizontal"
            android:layout_alignParentBottom="true"
            android:background="#cccccc"/>
    </RelativeLayout>

    <!-- userid -->
    <RelativeLayout
        android:id="@+id/rl_userid"
        style="@style/home_input_style"
        android:layout_below="@id/rl_portal">

        <TextView
            android:id="@+id/tv_userid"
            style="@style/home_input_title_style"
            android:layout_centerVertical="true"
            android:text="@string/home_userid_hint"/>

        <android.support.v7.widget.AppCompatEditText
            android:id="@+id/acet_userid"
            style="@style/home_input_edit_style"
            android:layout_toRightOf="@id/tv_userid"
            android:text="0"
            android:hint="@string/home_userid_hint"/>

        <View
            style="@style/ui_divider_line_horizontal"
            android:layout_alignParentBottom="true"
            android:background="#cccccc"/>
    </RelativeLayout>

    <!-- <android.support.design.widget.TextInputLayout
         android:id="@+id/til_classid"
         style="@style/home_site_input_style"
         android:layout_below="@id/iv_logo"
         android:layout_marginTop="@dimen/ui_DIMEN_20.0PX">

         &lt;!&ndash;&ndash;&gt;
         <android.support.v7.widget.AppCompatEditText
             android:id="@+id/acet_classid"
             style="@style/ui_match_wrap"
             android:hint="@string/home_classid_hint"
             android:inputType="number"
             android:text="472732494"/>
     </android.support.design.widget.TextInputLayout>

     <android.support.design.widget.TextInputLayout
         android:id="@+id/til_role"
         style="@style/home_site_input_style"
         android:layout_below="@id/til_classid">

         <android.support.v7.widget.AppCompatEditText
             android:id="@+id/acet_role"
             style="@style/ui_match_wrap"
             android:hint="@string/home_role_hint"
             android:text="normal"/>
     </android.support.design.widget.TextInputLayout>

     <android.support.design.widget.TextInputLayout
         android:id="@+id/til_portal"
         style="@style/home_site_input_style"
         android:layout_below="@id/til_role">

         <android.support.v7.widget.AppCompatEditText
             android:id="@+id/acet_portal"
             style="@style/ui_match_wrap"
             android:hint="@string/home_portal_hint"
             android:text="112.126.80.182:90"/>
     </android.support.design.widget.TextInputLayout>

     <android.support.design.widget.TextInputLayout
         android:id="@+id/til_userid"
         style="@style/home_site_input_style"
         android:layout_below="@id/til_portal">

         <android.support.v7.widget.AppCompatEditText
             android:id="@+id/acet_userid"
             style="@style/ui_match_wrap"
             android:hint="@string/home_userid_hint"
             android:text="0"/>
     </android.support.design.widget.TextInputLayout>-->

    <Button
        android:id="@+id/btn_enter_class"
        style="@style/home_site_btn_style"
        android:layout_marginTop="@dimen/ui_DIMEN_80.0PX"
        android:layout_below="@id/rl_userid"
        android:text="@string/home_enter_class"/>

    <Button
        android:id="@+id/btn_enter_replay"
        style="@style/home_site_btn_style"
        android:layout_below="@id/btn_enter_class"
        android:background="@drawable/home_selector_bottom_btn_green"
        android:text="@string/home_enter_replay"/>
</com.xdy.ui.viewgroup.AutoAdaptHeaderViewGroup>