商城之商品分类

该博客详细介绍了商城商品分类的实现过程,包括针对不同分辨率进行Value, layout, drawable的适配策略,以及一级菜单和二级菜单的Adapter设计,最后讲解了CategoryFragment的运用。" 127627798,7479038,ClickHouse优化技巧:提高查询与写入性能,"['大数据开发', '数据库理论', 'ClickHouse']
摘要由CSDN通过智能技术生成


1.注意:根据不同分辨率写Value,layout,drawable。从而做到适配


2.布局

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:custom="http://schemas.android.com/apk/res-auto"
    xmlns:app="http://schemas.android.com/tools"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingTop="@dimen/basicPaddingSize">


    <android.support.v7.widget.RecyclerView
        android:id="@+id/recyclerview_category"
        android:layout_width="@dimen/category_layout_width"
        android:layout_height="fill_parent"
        android:background="@color/white"
        >


    </android.support.v7.widget.RecyclerView>


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:layout_marginLeft="2dp"
        >


        <com.daimajia.slider.library.SliderLayout
            android:id="@+id/slider"
            android:layout_width="match_parent"
            android:layout_height="180dp"
            custom:pager_animation="Accordion"
            custom:auto_cycle="true"
            custom:indicator_visibility="visible"
            custom:pager_animation_span="1100"
            />





        <com.cjj.MaterialRefreshLayout
            android:id="@+id/refresh_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginTop="10dp"
            app:overlay="false"
            app:wave_show="false"
            app:progress_colors="@array/material_colors"
            app:wave_height_type="higher"
            app:progress_show_circle_backgroud="false"
            >


            <android.support.v7.widget.RecyclerView
                android:id="@+id/recyclerview_wares"
                android:layout_width="match_parent"
                android:layout_height="match_parent">


            </android.suppor
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值