Android仿京东分类模块左侧分类条目效果

  

本文实例为大家分享了Android仿京东左侧分类条目效果的具体代码,供大家参考,具体内容如下

        进口android.app.Activity;   进口android.os.Bundle;   进口android.view.View;   进口android.widget.LinearLayout;   进口android.widget.ScrollView;   进口android.widget.TextView;      进口com.frame.R;      进口java.util.ArrayList;   进口并不知道;/* *   *由悉德>   & lt; & # 63; xml version=" 1.0 " encoding=" utf - 8 " & # 63;比;   LinearLayout & lt;   xmlns: android=" http://schemas.android.com/apk/res/android "   android:取向=按怪薄?   android: layout_width=" match_parent "   android: layout_height=癿atch_parent”比;      & lt; com.frame.activity.TestScrollView   android: id=癅 + id/sv_test”   android: layout_width=" 80 dp”   android: layout_height=皐rap_content”比;      LinearLayout & lt;   android: id=癅 + id/ll_test_contain”   android:取向=按怪薄?   android: layout_width=" match_parent "   android: layout_height=皐rap_content”比;   & lt;/LinearLayout>      & lt;/com.frame.activity.TestScrollView>   & lt;/LinearLayout>之前      

代码3:

        & lt; & # 63; xml version=" 1.0 " encoding=" utf - 8 " & # 63;比;   & lt; LinearLayout xmlns: android=" http://schemas.android.com/apk/res/android "   android:取向=按怪薄盿ndroid: layout_width=癿atch_parent”   android: layout_height=癿atch_parent”比;      & lt; TextView   android:重力="中心"   android: paddingBottom=" 16 dp "   android: paddingTop=" 16 dp "   android: id=癅 + id/tv_item_scroll”   android: layout_width=" match_parent "   android: layout_height=" wrap_content "/比;   & lt; ImageView   android:背景=" # cccccc”   android: layout_width=" match_parent "   android: layout_height=" 1 dp/比;      & lt;/LinearLayout>      之前      

效果图:

  

 Android仿京东分类模块左侧分类条目效果

  

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
  

Android仿京东分类模块左侧分类条目效果