ppp

 

 1.完成了界面设计

2.与队友沟通不顺利

3.开始界面代码

4.

<?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:orientation="vertical">

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/colorPrimary"
android:orientation="horizontal">

<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_centerInParent="true"
android:gravity="center"
android:text="搜宠物"
android:textColor="#fff"
android:textSize="20dp" />


</RelativeLayout>

<FrameLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />

<com.flyco.tablayout.CommonTabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#ffffff"
app:layout_constraintBottom_toBottomOf="parent"
app:tl_iconHeight="0dp"
app:tl_iconWidth="0dp"
app:tl_indicator_color="@color/colorPrimary"
app:tl_indicator_height="0dp"
app:tl_textSelectColor="@color/colorPrimary"
app:tl_textUnselectColor="#cdcdcd"
app:tl_textsize="14dp"
app:tl_underline_color="#DDDDDD"
app:tl_underline_height="1dp" />
</LinearLayout>

posted @ 2022-05-02 20:27  rg001  阅读(112)  评论(0编辑  收藏  举报