DragScrollDetailsLayout:模仿淘宝、京东、蘑菇街商品
来源:互联网 发布:网络什么游戏可以赚钱 编辑:程序博客网 时间:2024/04/30 23:23
模仿淘宝、京东、蘑菇街商品详情页,可嵌套ListView、WebView、ViewPager、FragmentTabhost等
1、支持ScrollView+Webview
2、支持scollView+viewpager(内不可以是listview或者webbiew)
3、支持支持ScrollView+listview
等等
使用说明
ScrollView+WebView
<com.snail.labaffinity.view.DragScrollDetailsLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content" android:fillViewport="false"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <Button android:layout_width="match_parent" android:layout_height="100dp" android:background="#98ff0000" android:text="pull up to show more"/> </LinearLayout> </ScrollView> <WebView android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent"/></com.snail.labaffinity.view.DragScrollDetailsLayout>
ScrollView+ViewPager
<com.snail.labaffinity.view.DragScrollDetailsLayout android:layout_width="match_parent" android:layout_height="match_parent"> <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">
<android.support.v4.app.FragmentTabHost android:id="@+id/tablayout" android:layout_width="match_parent" android:layout_height="wrap_content"> </android.support.v4.app.FragmentTabHost> <FrameLayout android:id="@+id/content" android:layout_width="match_parent" android:layout_height="match_parent"> </FrameLayout> </LinearLayout></com.snail.labaffinity.view.DragScrollDetailsLayout>
ScrollView+FragmentTabHost
<com.snail.labaffinity.view.DragScrollDetailsLayout android:layout_width="match_parent" android:layout_height="match_parent"> <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">
<android.support.v4.app.FragmentTabHost android:id="@+id/tablayout" android:layout_width="match_parent" android:layout_height="wrap_content"> </android.support.v4.app.FragmentTabHost> <FrameLayout android:id="@+id/content" android:layout_width="match_parent" android:layout_height="match_parent"> </FrameLayout> </LinearLayout></com.snail.labaffinity.view.DragScrollDetailsLayout>
本文由最三方开源平台(http://www.zuisanfang.com/archives/view-2048-1.html)原创,转载请保留版权和链接!
0 0
- DragScrollDetailsLayout:模仿淘宝、京东、蘑菇街商品
- jQuery模仿淘宝商品评价
- 蘑菇街商品数据抓取
- 模仿蘑菇街的开场动画
- 开源第三方登录组件OAuthLogin2.0 支持QQ,阿里巴巴,淘宝,京东,蘑菇街,有赞等平台
- 开源第三方登录组件OAuthLogin2.0 支持QQ,阿里巴巴,淘宝,京东,蘑菇街,有赞等平台
- 开源第三方登录组件OAuthLogin2.0 支持QQ,阿里巴巴,淘宝,京东,蘑菇街,有赞等平台
- 开源第三方登录组件OAuthLogin2.0 支持QQ,阿里巴巴,淘宝,京东,蘑菇街,有赞等平台
- 模仿淘宝主页
- 淘宝最新商品
- 淘宝自动拍商品
- 淘宝商品防伪神器
- 淘宝商品属性设计
- 淘宝商品数据库设计
- 淘宝商品数据库设计
- 淘宝商品库存数据包
- 仿蘑菇街,蜜芽宝贝,京东商品详情界面,与NestedScroll滑动
- 仿蘑菇街,蜜芽宝贝,京东商品详情界面,与NestedScroll滑动
- android小知识点整理(原来的被误删了)
- Skidder响应式全屏横向排列无限轮播幻灯片插件
- content = "IE=edge,chrome=1"
- 自定义单点登录页面--在自己的网站使用单点登录进行登录(1)
- JavaScript图表图形框架 -- GOJS简介
- DragScrollDetailsLayout:模仿淘宝、京东、蘑菇街商品
- spark参数配置
- 火星人的责任与担当
- java中三大特性之多态详解
- phantomjs+selenium+python爬虫
- 保存退出vi编辑
- php魔术方法
- 两个JSP页面跳转传参数
- 解析Lua中的全局环境、包、模块组织结构