罗明文
6 天以前 442124baa483f8d1c4aaca7ff81e15dd3f122363
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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.flyco.tablayout.CommonTabLayout
        android:id="@+id/tab_bar"
        android:layout_width="match_parent"
        android:layout_height="49dp"
        android:background="@color/white"
        app:layout_constraintBottom_toBottomOf="parent"
        app:tl_indicator_height="0dp"
        app:tl_textBold="BOTH"
        app:tl_textSelectColor="@color/colorPrimary"
        app:tl_textUnselectColor="@color/textColor99"
        app:tl_textsize="11sp" />
 
    <com.dollearn.student.views.NoScrollViewPager
        android:id="@+id/view_pager"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintBottom_toTopOf="@id/tab_bar"
        app:layout_constraintTop_toTopOf="parent" />
 
    <View
        android:layout_width="match_parent"
        android:layout_height="4dp"
        android:background="@drawable/bg_shadow_bottom"
        app:layout_constraintBottom_toTopOf="@id/tab_bar" />
 
    <View
        android:id="@+id/fg_bottom"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:background="@color/halfTrans"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintTop_toTopOf="@id/tab_bar" />
</androidx.constraintlayout.widget.ConstraintLayout>