• 第一阶段冲刺3


    <?xml version="1.0" encoding="utf-8"?>

    <androidx.coordinatorlayout.widget.CoordinatorLayout 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=".MainActivity">

        <com.google.android.material.appbar.AppBarLayout

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:theme="@style/AppTheme.AppBarOverlay">

            <TextView

                android:id="@+id/title"

                android:layout_width="wrap_content"

                android:layout_height="wrap_content"

                android:gravity="center"

                android:minHeight="?actionBarSize"

                android:padding="@dimen/appbar_padding"

                android:text="@string/app_name"

                android:textAppearance="@style/TextAppearance.Widget.AppCompat.Toolbar.Title" />

            <com.google.android.material.tabs.TabLayout

                android:id="@+id/tabs"

                android:layout_width="match_parent"

                android:layout_height="wrap_content"

                android:background="?attr/colorPrimary" />

            <LinearLayout

                android:id="@+id/bottomlinear"

                android:layout_width="fill_parent"

                android:layout_height="60dp"

                android:layout_weight="1"

                android:orientation="horizontal"

                android:background="#DCDCDC">

                <Button

                    android:id="@+id/btn_first"

                    android:layout_width="0dp"

                    android:layout_height="fill_parent"

                    android:layout_weight="1"

                    android:padding="-5dp"

                    android:textSize="14sp"

                    android:text="主界面"

                    android:background="#DCDCDC" />

                <Button

                    android:id="@+id/btn_second"

                    android:layout_width="0dp"

                    android:layout_height="fill_parent"

                    android:layout_weight="1"

                    android:textSize="14sp"

                    android:text="近期消费"

                    android:background="#DCDCDC"/>

                <Button

                    android:id="@+id/btn_third"

                    android:layout_width="0dp"

                    android:layout_height="fill_parent"

                    android:layout_weight="1.5"

                    android:textSize="14sp"

                    android:text="添加账单"

                    android:background="#DCDCDC"/>

                <Button

                    android:id="@+id/btn_four"

                    android:layout_width="0dp"

                    android:layout_height="fill_parent"

                    android:layout_weight="1"

                    android:textSize="14sp"

                    android:text="修改账单"

                    android:background="#DCDCDC"/>

                <Button

                    android:id="@+id/btn_fifth"

                    android:layout_width="0dp"

                    android:layout_height="fill_parent"

                    android:layout_weight="1"

                    android:textSize="14sp"

                    android:text="预期消费"

                    android:background="#DCDCDC"/>

            </LinearLayout>

            <LinearLayout

                android:id="@+id/cursorarea"

                android:layout_width="fill_parent"

                android:background="#CDCDCD"

                android:orientation="horizontal"

                android:layout_height="2dp">

                <TextView

                    android:id="@+id/txtv_bottom1"

                    android:layout_width="0dp"

                    android:layout_height="2dp"

                    android:layout_weight="1"

                    android:background="#ff0000"

                    android:visibility="invisible"/>

                <TextView

                    android:id="@+id/txtv_bottom2"

                    android:layout_width="0dp"

                    android:layout_height="2dp"

                    android:layout_weight="1"

                    android:background="#ff0000"

                    android:visibility="invisible"/>

                <TextView

                    android:id="@+id/txtv_bottom3"

                    android:layout_width="0dp"

                    android:layout_height="2dp"

                    android:layout_weight="1.5"

                    android:background="#ff0000"

                    android:visibility="invisible"/>

                <TextView

                    android:id="@+id/txtv_bottom4"

                    android:layout_width="0dp"

                    android:layout_height="2dp"

                    android:layout_weight="1"

                    android:background="#ff0000"

                    android:visibility="invisible"/>

                <TextView

                    android:id="@+id/txtv_bottom5"

                    android:layout_width="0dp"

                    android:layout_height="2dp"

                    android:layout_weight="1"

                    android:background="#ff0000"

                    android:visibility="invisible"/>

            </LinearLayout>

        </com.google.android.material.appbar.AppBarLayout>

        <androidx.viewpager.widget.ViewPager

            android:id="@+id/view_pager"

            android:layout_width="match_parent"

            android:layout_height="match_parent"

            app:layout_behavior="@string/appbar_scrolling_view_behavior" />

        <com.google.android.material.floatingactionbutton.FloatingActionButton

            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_email" />

    </androidx.coordinatorlayout.widget.CoordinatorLayout>

  • 相关阅读:
    程序员的一天
    美团点评云真机平台实践
    第5波:5本《自动化平台测试开发》+5本《软件自动化测试开发》又双叒叕来送书了...
    软件测试:管理篇
    软件测试:用例篇
    转载ASP.NET MVC 和ASP.NET Web Form简单区别
    转载ASP.NET 状态管理Application,Session,Cookie和ViewState用法
    转载 asp.net中ViewState的用法详解
    在ASP.NET中如何运行后台任务
    转载 .net中的dll.refresh文件和pdb文件
  • 原文地址:https://www.cnblogs.com/zaixiachengxuyuan/p/13111124.html
Copyright © 2020-2023  润新知