113 lines
4.1 KiB
XML
113 lines
4.1 KiB
XML
<?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=".activity.MainActivity">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:layout_margin="10dp"
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_appicon"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:adjustViewBounds="true"
|
|
android:background="@drawable/ic_place_holder"
|
|
android:scaleType="centerInside" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/search_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/search_ll"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_24"
|
|
android:layout_centerInParent="true"
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/dp_12"
|
|
android:layout_height="@dimen/dp_24"
|
|
android:gravity="center_vertical"
|
|
android:src="@drawable/shap_search_left" />
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/dp_15"
|
|
android:layout_height="@dimen/dp_24"
|
|
android:adjustViewBounds="true"
|
|
android:background="#d4d0d0"
|
|
android:scaleType="centerInside"
|
|
android:src="@drawable/icon_serach"></ImageView>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_24"
|
|
android:background="@drawable/shap_search_right"
|
|
android:gravity="center_vertical"
|
|
android:text="@string/search_edit"
|
|
android:textColor="#ffffff">
|
|
|
|
</TextView>
|
|
</LinearLayout>
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_download"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginRight="20dp"
|
|
android:visibility="gone"
|
|
android:src="@drawable/ic_action_bar">
|
|
|
|
</ImageView>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<com.flyco.tablayout.SlidingTabLayout
|
|
android:id="@+id/main_sliding_tab_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
app:tl_indicator_style="TRIANGLE"
|
|
app:tl_tab_space_equal="true"
|
|
app:tl_textBold="SELECT"
|
|
app:tl_textSelectColor="#f09818"
|
|
app:tl_textUnselectColor="#8c8b8b" />
|
|
|
|
<androidx.viewpager.widget.ViewPager
|
|
android:id="@+id/main_view_pager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |