mud*_*dit 13 android material-design
我想将操作栏/工具栏显示并隐藏为Google Play商店应用.我在顶部使用滑动标签并查看寻呼机以显示每个标签的内容.以下是Google Play商店应用的截图供参考:

我的布局XML:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent">
<LinearLayout style="@style/HeaderBar"
android:id="@+id/headerbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include layout="@layout/toolbar_no_bg"
android:id="@+id/toolbar_actionbar"/>
<com.fauzie.sample.tabsspinner.widget.SlidingTabLayout
android:background="@color/tab_background"
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<android.support.v4.view.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/headerbar">
</android.support.v4.view.ViewPager>
</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)
提前致谢.
看看这个:
https://github.com/flavienlaurent/NotBoringActionBar
这里有一个技巧.你需要:
一开始它有点复杂,但一旦你了解它,你就会发现它是多么聪明和明显.该链接将为您提供我所需要的一切.
我自己使用该链接在我自己的应用程序中实现它并且它工作得很好.
| 归档时间: |
|
| 查看次数: |
10743 次 |
| 最近记录: |