2012年7月14日
摘要: 1.新建一个word文档,然后把你想要显示的布局在word文档上布局好,然后另存为xx.html;2.以word打开方式打开xx.html,点击视图,选择页面视图,然后保存!3.打开xx.html,同样用打开word的方式打开,然后选择页面视图,然后在里面随便修改一点,我自己是弄个空格然后点保存4.后台代码: Response.ContentEncoding = System.Text.Encoding.UTF8; Response.ClearContent(); Response.ClearHeaders(); Respons... 阅读全文
posted @ 2012-07-14 17:39 轻盈 阅读(458) 评论(0) 推荐(0) 编辑
  2012年5月17日
摘要: 1.如何取消Listview的滚动条? setVerticalScrollBarEnabled(false)2.白色的背景,ListView滚屏进行中的时候,背景会变成黑色,解决办法? android:cacheColorHint="#00000000"3.ListView滚动条怎么一直都显示? android:fadeScrollbars="false"4.ListView隔行变色: int[] colors={Color.BLUE,Color.CYAN}; convertView.setBackgroundColor(colors[position% 阅读全文
posted @ 2012-05-17 16:34 轻盈 阅读(1805) 评论(0) 推荐(0) 编辑
  2012年4月18日
摘要: package com.word.read;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import org.textmining.text.extraction.WordExtractor;import Android.app.Activity;import Android.os.Bundle;import Android.os.Environment;import Android.widget.TextView;public class WordReader 阅读全文
posted @ 2012-04-18 16:27 轻盈 阅读(1848) 评论(0) 推荐(0) 编辑
  2012年2月22日
摘要: public void checkShortCut() { final String vString = getAppVersionName(MyAppTest.this); final SharedPreferences sp = getSharedPreferences("csw", 0); // 是否在桌面上添加了快捷方式 boolean never_check_shortCut = sp.getBoolean("isShowIcon" + vString, false); // 存在快捷方式或者不允许添加,return if (never_che 阅读全文
posted @ 2012-02-22 09:07 轻盈 阅读(856) 评论(0) 推荐(0) 编辑
  2012年2月6日
摘要: <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <LinearLayo 阅读全文
posted @ 2012-02-06 13:43 轻盈 阅读(180) 评论(0) 推荐(0) 编辑
摘要: public class Main extends ActivityGroup implements OnTouchListener,OnGestureListener { private LocalActivityManager localActivityManager = null; private LinearLayout mainTabContainer = null; private Bundle bundle= null; private int tag=1; private GestureDetector mGestureDetector=null; private RadioB 阅读全文
posted @ 2012-02-06 13:40 轻盈 阅读(435) 评论(0) 推荐(0) 编辑
  2012年2月2日
摘要: Intent startMain = new Intent(Intent.ACTION_MAIN); startMain.addCategory(Intent.CATEGORY_HOME); startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(startMain); System.exit(0);//退出程序 阅读全文
posted @ 2012-02-02 23:11 轻盈 阅读(178) 评论(0) 推荐(0) 编辑
  2011年12月29日
摘要: 如果ListView中的单个Item的view中存在checkbox,button等view,会导致ListView.setOnItemClickListener无效,事件会被子View捕获到,ListView无法捕获处理该事件.解决方法:在checkbox、button对应的view处加android:focusable="false" android:clickable="false" android:focusableInTouchMode="false"其中focusable是关键从OnClickListener调用getSe 阅读全文
posted @ 2011-12-29 01:27 轻盈 阅读(1033) 评论(0) 推荐(0) 编辑
  2011年12月28日
摘要: ListView滚动条显示、隐藏设置:1、不活动的时候隐藏,活动的时候显示android:fadeScrollbars="true"mListView.setScrollbarFadingEnabled(true);2、活动或不活动的时候都隐藏android:scrollbars="none"mListView.setVerticalScrollBarEnabled(false);3、显示或隐藏ListView顶部和底部的过渡阴影:android:fadingEdge="none"setVerticalFadingEdgeEnable 阅读全文
posted @ 2011-12-28 10:37 轻盈 阅读(1034) 评论(0) 推荐(0) 编辑
  2011年12月21日
摘要: http://www.eoeandroid.com/forum.php?mod=viewthread&tid=848711.确定取消对话框对话框中有2个按钮 通过调用 setPositiveButton 方法 和 setNegativeButton 方法 可以设置按钮的显示内容以及按钮的监听事件。我们使用AlerDialog 创建对话框AlertDialog.Builder builder = new AlertDialog.Builder(MainDialog.this);AlertDialog.Builder builder = new AlertDialog.Builder(Ma 阅读全文
posted @ 2011-12-21 14:48 轻盈 阅读(363) 评论(0) 推荐(0) 编辑