ViewFlipper上下翻滚轮播
来源:互联网 发布:sql按周统计数据 编辑:程序博客网 时间:2024/06/13 15:02
?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="40dp"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="京东"/> <ImageView android:layout_width="wrap_content" android:layout_height="20dp" android:src="@drawable/kuaibao"/> <ViewFlipper android:id="@+id/view_flipper" android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" android:flipInterval="2000"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="爆" android:textColor="#FF0000"/> <TextView android:layout_marginLeft="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="荣耀 V10竟然这么快!"/> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="热门" android:textColor="#FF0000"/> <TextView android:layout_marginLeft="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="这群变态,直接把球鞋放在嘴里"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_marginLeft="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="深夜发媸:最小题大做的美妆"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="HOT" android:textColor="#FF0000"/> <TextView android:layout_marginLeft="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="戴上这副骚耳机,Beats都哭了"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="HOT" android:textColor="#FF0000"/> <TextView android:layout_marginLeft="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="上千的耐克鞋拆开是啥样?"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="爆" android:textColor="#FF0000"/> <TextView android:layout_marginLeft="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="打呼噜竟然和枕头有关?"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="推荐" android:textColor="#FF0000"/> <TextView android:layout_marginLeft="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="福特复仇法拉利?50年不死不休"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="推荐" android:textColor="#FF0000"/> <TextView android:layout_marginLeft="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="余文乐,行走的潮流教科书"/> </LinearLayout> </ViewFlipper> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="|"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="更多" android:paddingLeft="20dp"/> </LinearLayout></RelativeLayout>
push_up_in:
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromYDelta="100%p" android:toYDelta="0" android:duration="300"/> <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" /></set>
push_up_out:
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromYDelta="0" android:toYDelta="-100%p" android:duration="300"/> <alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" /></set>
阅读全文
0 0
- ViewFlipper上下翻滚轮播
- 3.ViewFlipper的使用(上下翻滚轮播效果)
- 鼠标滚轮滑动轮播
- 上下滚动轮播
- 上下滚动轮播
- 文字上下轮播
- Android ViewFlipper上下滑动引导页效果
- Android:使用ViewFlipper实现上下滚动消息
- 【实用随记】获取鼠标滚轮上下滚
- js判断鼠标滚轮上下滚动
- 绑定鼠标滚轮上下滚动事件
- 使用ViewFlipper实现图片轮播
- android ViewFlipper实现图片轮播
- ViewFlipper实现图片的轮播
- 使用ViewFlipper实现图片的轮播
- ViewFlipper实现垂直轮播广告效果
- 安卓轮播图无限轮播(RecyclerView+ViewFlipper实现)
- ViewFlipper实现垂直轮播广告效果
- 图片的二次采样
- java之反射(RPC中应用demo)
- SVN Unable to connect to a repository at URL
- MyBatis快速入门
- Java实现单链表(已排序)去重(保留重复元素第一次出现的节点)
- ViewFlipper上下翻滚轮播
- CSS: 块级元素与内联元素(行内元素)
- jquery以form形式向controller传值
- dependencies与dependencyManagement的区别
- struts2的框架解析第4篇action配置的各项默认值
- MYSQL——《SQL必知必会》学习笔记
- Android px,sp,dp,sp 之间的关系
- 关于类
- STM32 DSP库函数详解