gpt4 book ai didi

android - 如何在 android 中制作像 flipkart 这样的过滤器选项卡?

转载 作者:行者123 更新时间:2023-11-29 00:05:38 24 4
gpt4 key购买 nike

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

enter image description here .

最佳答案

您可以像这样在 LinearLayout 中水平使用两个 ListView ,并根据您的需要自定义 ListView 。

希望它有用..

<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>

关于android - 如何在 android 中制作像 flipkart 这样的过滤器选项卡?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33995852/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com