瀑布的文本歌词大意是什么意思?

旅游资料的翻译_图文_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
旅游资料的翻译
上传于||文档简介
&&g​j​h​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j​j
阅读已结束,如果下载本文需要使用
想免费下载本文?
下载文档到电脑,查找使用更方便
还剩82页未读,继续阅读
你可能喜欢这是个机器人猖狂的时代,请输一下验证码,证明咱是正常人~旅游文本翻译翻译,文本,旅游,旅游文本,旅游翻译,文本翻译
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
旅游文本翻译
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer--144.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口带描述文字的瀑布流 - 推酷
带描述文字的瀑布流
不多说,再上图,描述下我想做个什么样的效果。下面是网页上的效果,就是不单纯的是图片的堆积,而是在图片下面还带文字说明。
下面是截图,特意截了个美女,哈哈
貌似android业界蘑菇街最早用瀑布流效果,但感觉蘑菇街的瀑布流效果界面只有纯粹的图片效果,不好看。
于是我想在Android下也做出上面那样的效果。
我的思路是这样的:
1.自定义一View,FlowView.
FlowView布局:
最外层一个ScrollView
里层一个大LinearLayout, &ll_main &
ll_main里面放三个LinearLayout,每个LinearLayout里面的元素又是水平摆放。
对于这个FlowView其实是想通过代码的方式动态设置里面的内容的 比如主LinearLayout里面有多少列子LinearLayout,不是固定写在xml里面的,
而是在代码里面动态addView进去。但还不知道怎么去实现。
2.自定义一个上面是图片下面是说明文字的MyImage的控件
准备好一些MyImage,然后循环addView进到每个LinearLayou中去。
能力有限,东拼西凑做出了下面这么个效果。
& & & & & & & & & & & & & & & & & & & & & &。
这实现的效果还很粗糙,大家一起来完善吧!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
下面贴出代码:
package com.tomyzhou.
import java.util.ArrayL
import java.util.L
import android.app.A
import android.os.B
import android.view.V
import android.view.W
import android.widget.ImageV
import android.widget.ScrollV
import android.widget.TextV
public class FallDemoActivity extends Activity {
private ScrollView sv_
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
sv_main = new ScrollView(this);
List&View& viewList = new ArrayList&View&();
for(int i = 0;i&60;i++){
if(i%2 == 0){
View view = View.inflate(this,R.layout.myimage,null);
ImageView iv_image = (ImageView) view.findViewById(R.id.iv_image);
iv_image.setImageResource(R.drawable.a1);
TextView tv_image = (TextView) view.findViewById(R.id.tv_image);
tv_image.setText(&第&+i+&个图的描述&);
viewList.add(view);
}if(i%2 == 1){
View view = View.inflate(this,R.layout.myimage,null);
ImageView iv_image = (ImageView) view.findViewById(R.id.iv_image);
iv_image.setImageResource(R.drawable.a14);
TextView tv_image = (TextView) view.findViewById(R.id.tv_image);
tv_image.setText(&第&+i+&个图的描述&);
viewList.add(view);
FallView fv = new FallView(this, viewList);
sv_main.addView(fv);
setContentView(sv_main);
package com.tomyzhou.
import java.util.ArrayL
import java.util.L
import java.util.zip.I
import android.content.C
import android.graphics.C
import android.view.V
import android.widget.LinearL
//自定义瀑布流控件
public class FallView extends LinearLayout {
private List&LinearLayout&
private LinearLayout ll_list1;
private LinearLayout ll_list2;
private LinearLayout ll_list3; // 三列
* @param context
* @param viewList
需要显示的图片列表
public FallView(Context context, List&View& viewList) {
super(context);
list = new ArrayList&LinearLayout&();
View view = View.inflate(context, R.layout.layout_fall, this);
ll_list1 = (LinearLayout) view.findViewById(R.id.ll_list1);
ll_list2 = (LinearLayout) view.findViewById(R.id.ll_list2);
ll_list3 = (LinearLayout) view.findViewById(R.id.ll_list3);
initView(viewList);
// 添加每个LinearLayout里面的图片
* @param number
每个LinearLayout里面Image的个数
private void initView(List&View& viewList) {
System.out.println(viewList.size());
for (int i = 0; i & viewList.size(); i++) {
View view = viewList.get(i);
if (i % 3 == 0) {
ll_list1.addView(view);
if (i % 3 == 1) {
ll_list2.addView(view);
if (i % 3 == 2) {
ll_list3.addView(view);
package com.tomyzhou.
import android.content.C
import android.view.V
public class MyImage extends View{
public MyImage(Context context) {
super(context);
&?xml version=&1.0& encoding=&utf-8&?&
&LinearLayout xmlns:android=&/apk/res/android&
android:id=&@+id/ll_main&
android:layout_width=&match_parent&
android:layout_height=&match_parent&
android:orientation=&horizontal& &
&LinearLayout
android:id=&@+id/ll_list1&
android:layout_width=&0dip&
android:layout_height=&fill_parent&
android:layout_weight=&1&
android:background=&#aaaaaa&
android:orientation=&vertical& &
&/LinearLayout&
&LinearLayout
android:id=&@+id/ll_list2&
android:layout_width=&0dip&
android:layout_height=&fill_parent&
android:layout_weight=&1&
android:background=&#aaaaaa&
android:orientation=&vertical& &
&/LinearLayout&
&LinearLayout
android:id=&@+id/ll_list3&
android:layout_width=&0dip&
android:layout_height=&fill_parent&
android:layout_weight=&1&
android:background=&#aaaaaa&
android:orientation=&vertical& &
&/LinearLayout&
&/LinearLayout&
&?xml version=&1.0& encoding=&utf-8&?&
&LinearLayout xmlns:android=&/apk/res/android&
android:layout_width=&match_parent&
android:layout_height=&match_parent&
android:gravity=&center&
android:orientation=&vertical& &
&ImageView
android:id=&@+id/iv_image&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:src=&@drawable/a12& /&
android:id=&@+id/tv_image&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:textColor=&#000000&
android:textSize=&14sp&
android:text=&描述文字& /&
&/LinearLayout&
本来想把代码文件上传下来,却发现传不了附件。有需要的加Q吧:,欢迎一起交流!
已发表评论数()
已收藏到推刊!
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
排版有问题
没有分页内容
视频无法显示
图片无法显示[设计]第3章旅游文本翻译
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
[设计]第3章旅游文本翻译
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer--144.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口

我要回帖

更多关于 歌词大意是什么意思 的文章

 

随机推荐