Android的Play报亭的布局设计 [英] Android Play Newsstand Layout Design

查看:180
本文介绍了Android的Play报亭的布局设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我试图重新一种观点认为是与此类似。

So, I'm trying to recreate a view that's similar to this.

我的想法到目前为止是创建带有按钮的滑动浏览视图。不过,我似乎无法创建,他们已经为谷歌播放使这个滑动浏览视图。它基本上像一个标签。我似乎无法弄清楚如何做一个标签没有标签的ActionBar

My idea so far is to create a swipeable view with buttons. However I can't seem to create this swipeable view they've made for Google Play. Its basically like a tab. I can't seem to figure out how to do a Tab without ActionBar Tab.

<LinearLayout android:orientation="horizontal"
     android:layout_width="match_parent"
     android:layout_height="0dip"
     android:layout_weight="0.5">
        <Button
            android:id="@+id/radio_button2"
            android:layout_marginTop="2.0dip"
            android:layout_width="0dp"
            android:layout_height="40dp"
            android:background="#fff"
            android:textColor="#3e82ff"
            android:layout_weight="1"
            android:text="Description" />

        <Button
            android:id="@+id/radio_button3"
            android:layout_marginTop="2.0dip"
            android:layout_height="40dp"
            android:layout_width="0dp"
            android:background="#fff"
            android:textColor="#3e82ff"
           android:layout_weight="1"
            android:text="Comments" />

</LinearLayout>


  

要prevent关闭(由于阔)我想我指定我想知道需要上面

To prevent closures (due to broadness) I thought I'd specify I want to know the view element required to the tab style shown above

推荐答案

它最容易想到它在单独的块。

Its easiest to think of it in separate chunks.

1)首先是标签,并与材料,你会想在这个帖子看看这里:的的是Android 5.0的材料设计标签

1) First is the tabs, and with Material you'll want to look at this post here: android 5.0 material design tabs

2)第二是与视差垂直滚动。而且我会用类似这样: https://github.com/kanytu/android-parallax- recyclerview

2) Second is the vertical scroll with parallax. And I would use something similar to this: https://github.com/kanytu/android-parallax-recyclerview

3)终部是使工具栏消失和再现的基础上滚动的方向。我会让你来谷歌允许,图书馆或学家。 :)

3) Final portion would be to make the toolbar disappear and reappear based on scroll direction. I'll leave it up to you to google libraries or gists that allow that. :)

- 编辑 -

我屈服了。这里有一个体面的一个我已经看到了使用一个可观察的滚动视图: https://github.com/ksoichiro/ Android的ObservableScrollView

I caved. Here's a decent one I've seen that uses an Observable scroll view: https://github.com/ksoichiro/Android-ObservableScrollView

这篇关于Android的Play报亭的布局设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆