<?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/cl_white" android:orientation="vertical"> <RelativeLayout style="@style/title"> <TextView style="@style/text_title" android:text="@string/learn_title" /> </RelativeLayout> <android.support.design.widget.TabLayout android:id="@+id/tab_learn" android:layout_width="match_parent" android:layout_height="78dp" app:tabBackground="@drawable/top_tab_selector" app:tabIndicatorColor="@color/cl_tab_line" app:tabIndicatorHeight="0dp" app:tabMaxWidth="0dp" app:tabMode="fixed" /> <ImageView style="@style/card_line" /> <android.support.v4.view.ViewPager android:id="@+id/vp_learn" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> </LinearLayout> <ImageView android:id="@+id/iv_pub_course" android:layout_width="60dp" android:layout_height="60dp" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_marginBottom="50dp" android:layout_marginRight="30dp" android:src="@drawable/icon_add_blue" /> </RelativeLayout> </layout>