【问题标题】:How to make filter tab like flipkart in android?如何在android中制作像flipkart这样的过滤标签?
【发布时间】:2015-11-30 10:02:16
【问题描述】:

我正在构建一个安卓应用程序。我需要在哪里实现像 Flipkart Filter 菜单样式这样的选项卡列表。下面是我想在我的应用程序中实现的图像。

【问题讨论】:

  • @activesince93 这是完全不同的问题。
  • 我也在尝试,你有什么解决办法请发帖给我
  • 你有没有更多的库或解决方案?

标签: android android-layout android-listview filter


【解决方案1】:

您可以像这样在 LinerLayout 中水平使用两个列表视图,并根据您的需要自定义列表视图。

希望有用..

<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_marginLeft="5dp"
    android:layout_marginRight="5dp"
    android:layout_marginTop="5dp"
    android:orientation="horizontal"
    android:weightSum="3">

    <!--  this list contains products -->
    <ListView
        android:id="@+id/list1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="5dip"
        android:layout_weight="2"
        android:fadingEdge="vertical"
        android:scrollbars="none"
        android:smoothScrollbar="true"
        android:soundEffectsEnabled="true" />

    <ListView
        android:id="@+id/list2"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_margin="5dip"
        android:layout_weight="1"
        android:dividerHeight="1px"
        android:drawSelectorOnTop="false"
        android:fadingEdge="vertical"
        android:padding="0dip"
        android:scrollbars="none"
        android:smoothScrollbar="true"/>

</LinearLayout>

【讨论】:

    猜你喜欢
    • 2018-05-14
    • 2012-02-29
    • 2012-03-03
    • 2013-05-19
    • 1970-01-01
    • 1970-01-01
    • 2018-04-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多