个人冲刺博客第七天

今天做了空教室查询界面,附上代码和运行截图。

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
    android:background="@mipmap/jiaoshipicture"
    android:orientation="vertical">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal"
        android:text="空教室查询界面" />

    <Spinner
        android:id="@+id/工作周"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:entries="@array/ctype"
        android:prompt="@string/app_name"></Spinner>

    <Spinner
        android:id="@+id/节数"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:entries="@array/ccourse"
        android:prompt="@string/app_name"></Spinner>

    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="请输入您想要查询的节数" />

    <Button
        android:id="@+id/btnCreate"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:baselineAligned="false"
        android:text="确认"
        android:textColor="#E91E63" />

    <ScrollView
        android:layout_width="wrap_content"
        android:layout_height="match_parent">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical" />
    </ScrollView>

</LinearLayout>

  

猜你喜欢

转载自www.cnblogs.com/cuijunfeng/p/10939871.html