<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>keeper - 分享知识、分享快乐</title>
	<atom:link href="http://www.8qiu.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://www.8qiu.cn</link>
	<description>心灵的成长</description>
	<lastBuildDate>Fri, 03 Feb 2012 01:36:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>#English Club#第四期——At the airport</title>
		<link>http://www.8qiu.cn/archives/922</link>
		<comments>http://www.8qiu.cn/archives/922#comments</comments>
		<pubDate>Fri, 03 Feb 2012 01:35:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[英语学习]]></category>

		<guid isPermaLink="false">http://www.8qiu.cn/?p=922</guid>
		<description><![CDATA[大家经常在机场出入，行李的重量，能带什么不能带什么应该是大家考虑的最多的问题。今天我们来看看机场发生了什么事。 Dialogue&#8212;-At the airport A: Next please! Hello sir, may I see your passport please? B: Yes, here you go. A: Will you be checking any bags. B: Yes, I’d like to check three pieces. A: I’m sorry, sir. Airline &#8230; <a href="http://www.8qiu.cn/archives/922">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>大家经常在机场出入，行李的重量，能带什么不能带什么应该是大家考虑的最多的问题。今天我们来看看机场发生了什么事。<br />
Dialogue&#8212;-At the airport<br />
A: Next please! Hello sir, may I see your passport please?</p>
<p>B: Yes, here you go.</p>
<p>A: Will you be checking any bags.</p>
<p>B: Yes, I’d like to check three pieces.</p>
<p>A: I’m sorry, sir. Airline policy allows only two pieces of checked luggage, at twenty kilograms each, plus one piece of carry-on luggage. I will have to charge you extra for the additional suitcase.</p>
<p>B: What? Why! I am taking an intercontinental flight! I’m flying sixteen thousand KMs! How am I supposed to only take two, twenty kilo bags? That’s absurd!</p>
<p>A: I am sorry, sir, there’s nothing I can do. You cannot board the flight with that large bag either. Carry-on bags must fit in the over-head compartment or under your seat. That bag is clearly too big.</p>
<p>B: Now I see. You charge next to nothing for an international ticket, but when it comes to charging for any other small thing, you charge an arm and a leg! So tell me, miss, how much will I have to pay for all of this.</p>
<p>A: Let’s see&#8230; six hundred and twenty-five US dollars.</p>
<p>B: That’s more than my round-trip ticket!</p>
<p>Language take-away<br />
1. 3 pieces of luggage, luggage(non-countable), so “2 luggages” is wrong ;</p>
<p>2. Carry-on luggage 可以带上飞机的行李</p>
<p>3. board the ship/train/flight, but “board a car” is wrong</p>
<p>4. intercontinental 洲际的</p>
<p>5. over-head compartment 座位上方放行李的地方</p>
<p>Put it together<br />
1. How am I supposed to do……. = How can I do……. = How was it possible for me to do …… 是一种不太礼貌的表达方式，当有人让你做一些不太靠谱的事情时，可以用这个句式来表达抱怨或反驳。</p>
<p>2. There’s nothing I can do 当有人要求你用一种违反规定的solution来解决问题时，可以用， 同样也是一种不太友好的表达方式。一般前面会加“I’m really sorry, but……”</p>
<p>3. You charge next to nothing /It cost(s) next to nothing 东西很便宜(一般现在时要加S，过去时不用)。 例：这些苹果很便宜 These apples cost next to nothing.</p>
<p>4. You charge an arm and a leg/It cost(s) an arm and a leg 东西很贵(一般现在时要加S，过去时不用)。 例：这些苹果很贵 These apples cost an arm and a leg.<br />
Next to nothing 和an arm and a leg 这两个词组在句子中当做一个整体。</p>
<p>5. Round-trip tickets 双程机票</p>
<p>6. Here you go. 给你。 在表达“给你”这个意思时， 第一反应我们会说 “Here you are”. 这里Here you go 是同义的。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.8qiu.cn/archives/922/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>#English Club#Proper sentences for E-mail Writing Part I</title>
		<link>http://www.8qiu.cn/archives/912</link>
		<comments>http://www.8qiu.cn/archives/912#comments</comments>
		<pubDate>Mon, 30 Jan 2012 01:13:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[英语学习]]></category>

		<guid isPermaLink="false">http://www.8qiu.cn/?p=912</guid>
		<description><![CDATA[1. Initiate a meeting 发起会议I would like to hold a meeting in the afternoon about our development planning for the project A。 今天下午我建议我们就A项目的发展计划开会讨论一下。 I suggest we have a call tonight at 9:30pm (China Time) with you and Brown. Please let &#8230; <a href="http://www.8qiu.cn/archives/912">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="707"><strong>1. Initiate a meeting</strong> <strong>发起会议</strong>I would like to hold a meeting in the afternoon about our development planning for the project A。</p>
<p>今天下午我建议我们就A项目的发展计划开会讨论一下。</p>
<p>I suggest we have a call tonight at 9:30pm (China Time) with you and Brown. Please let me know if the time is okay for you and Ben。</p>
<p>我建议我们今晚九点半和Brown小聚一下，你和Ben有没有空？</p>
<p>We’d like to have the meeting on Thu Oct 30. Same time。</p>
<p>十月三十号(周四)，老时间，开会。</p>
<p>Let’s make a meeting next Monday at 5:30 PM SLC time。</p>
<p>下周一盐湖城时区下午五点半开会。</p>
<p>I want to talk to you over the phone regarding issues about report development and the XX project。</p>
<p>我想跟你电话讨论下报告进展和XXX项目的情况。</p>
<p><strong> </strong></td>
</tr>
<tr>
<td valign="top" width="707"><strong> </strong></td>
</tr>
<tr>
<td valign="top" width="707"><strong>2. Seeking for more information/feedbacks/suggestions</strong> <strong>咨询信息</strong><strong>/</strong><strong>反馈</strong><strong>/</strong><strong>建议</strong>Shall you have any problem accessing the folders, please let me know。</p>
<p>如果存取文件有任何问题请和我联系。</p>
<p>Thank you and look forward to having your opinion on the estimation and schedule。</p>
<p>谢谢你，希望能听到更多你对评估和日程计划的建议。</p>
<p>Look forward to your feedbacks and suggestions soon。 期待您的反馈建议！</p>
<p>What is your opinion on the schedule and next steps we proposed?</p>
<p>你对计划方面有什么想法？下一步我们应该怎么做？</p>
<p>What do you think about this? 这个你怎么想？</p>
<p>Feel free to give your comments。 请随意提出您的建议。</p>
<p>Any question, please don’t hesitate to let me know。 有任何问题，欢迎和我们联系。</p>
<p>Any question, please let me know。 有任何问题，欢迎和我们联系。</p>
<p>Please contact me if you have any questions。 有任何问题，欢迎和我们联系。</p>
<p>Your comments and suggestions are welcome! 欢迎您的评论和建议！</p>
<p>Please let me know what you think? 欢迎您的评论和建议！</p>
<p>Do you have any idea about this? 对于这个您有什么建议吗？</p>
<p>It would be nice if you could provide a bit more information on the user’s behavior。</p>
<p>您若是能够就用户行为方面提供更多的信息就太感激了！</p>
<p>At your convenience, I would really appreciate you looking into this matter/issue。</p>
<p>如果可以，我希望你能负责这件事情。</p>
<p><strong> </strong></td>
</tr>
<tr>
<td valign="top" width="707"><strong> </strong></td>
</tr>
<tr>
<td valign="top" width="707"><strong>3. Give feedback</strong> <strong>意见反馈</strong><strong></strong>Please see comments below。 请看下面的评论。</p>
<p>My answers are in blue below。 我的回答已标蓝。</p>
<p>I add some comments to the document for your reference。</p>
<p>我就文档添加了一些备注，仅供参考。</p>
<p><strong> </strong></td>
</tr>
<tr>
<td valign="top" width="707"><strong> </strong></td>
</tr>
<tr>
<td valign="top" width="707"><strong>4. Attachment</strong> <strong>附件</strong><strong></strong>I enclose the evaluation report for your reference。我附加了评估报告供您阅读。</p>
<p>Please check the attached file for today’s meeting notes。 今天的会议记录在附件里查收。</p>
<p>The attachment is the design document, please review it。 设计文档在附件里，请评阅。</p>
<p>For other known issues related to individual features, please see attached release notes。</p>
<p>其他个人特征方面的信息请见附件。</p>
<p><strong> </strong></td>
</tr>
<tr>
<td valign="top" width="707"><strong> </strong></td>
</tr>
<tr>
<td valign="top" width="707"><strong>5. Point listing</strong> <strong>列表</strong>Today we would like to finish following tasks by the end of today: 1…….2……。</p>
<p>今天我们要完成的任务：1…….2……。</p>
<p>Some known issues in this release: 1…….2……。</p>
<p>声明中涉及的一些问题：1…….2……。</p>
<p>Our team here reviewed the newest SCM policy and has following concerns: 1…….2……。</p>
<p>我们阅读了最新的供应链管理政策，做出如下考虑：1…….2……。</p>
<p>Here are some more questions/issues for your team: 1…….2……。</p>
<p>以下是对你们团队的一些问题：1…….2……。</p>
<p>The current status is as following: 1……2……</p>
<p>目前数据如下：1……2……</p>
<p>Some items need your attention: 1…….2……。</p>
<p>以下方面需提请注意：1…….2……。</p>
<p><strong> </strong></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.8qiu.cn/archives/912/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse的HTML/JSP/XML/CSS/DTD/JavaScript的插件</title>
		<link>http://www.8qiu.cn/archives/908</link>
		<comments>http://www.8qiu.cn/archives/908#comments</comments>
		<pubDate>Thu, 19 Jan 2012 03:09:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程开发]]></category>

		<guid isPermaLink="false">http://www.8qiu.cn/?p=908</guid>
		<description><![CDATA[我习惯偏好于Eclipse的最精简版&#8211;Eclipse IDE for Java Developers，它本省只带了很少的插件，当用到某些新技术的时候，我再去安装相关的插件，选择插件的首选原则也是实用、简洁。其实Eclipse有很多非常优秀的Plug-ins. 如，tomcat-plugin、Easyexplore、Eclipse HTML Editor等。 其中Eclipse HTML Editor就是一个优秀的Plug-in。 Eclipse HTML Editor is an Eclipse plugin for HTML/JSP/XML Editing. It works on Eclipse 3.0 (or higher), JDT and GEF. It has following features. HTML/JSP/XML/CSS/DTD/JavaScript语法高亮 HTML/JSP预览 JSP/XML验证 内容提示 (HTML标签/属性, &#8230; <a href="http://www.8qiu.cn/archives/908">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>我习惯偏好于Eclipse的最精简版&#8211;Eclipse IDE for Java Developers，它本省只带了很少的插件，当用到某些新技术的时候，我再去安装相关的插件，选择插件的首选原则也是实用、简洁。其实Eclipse有很多非常优秀的Plug-ins. 如，tomcat-plugin、Easyexplore、Eclipse HTML Editor等。</p>
<p>其中Eclipse HTML Editor就是一个优秀的Plug-in。</p>
<p>Eclipse HTML Editor is an Eclipse plugin for HTML/JSP/XML Editing. It works on Eclipse 3.0 (or higher), JDT and GEF. It has following features.</p>
<ul>
<li>HTML/JSP/XML/CSS/DTD/JavaScript语法高亮</li>
<li>HTML/JSP预览</li>
<li>JSP/XML验证</li>
<li>内容提示 (HTML标签/属性, XML based on DTD和JSP标签库等)</li>
<li>HTML/JSP/XML文件创建向导</li>
<li>大纲视图</li>
<li>Editor Preferences</li>
<li>Editor Folding</li>
<li>Web Browser (It works as an Eclipse&#8217;s editor)</li>
<li>Image Viewer</li>
<li>Tag Palette</li>
<li>CSS code completion and outline</li>
<li>DTD code completion, outline and validation</li>
<li>JavaScript code completion, outline and validation</li>
</ul>
<div><span style="font-size: small;"><span style="line-height: 24px;">More information see <a href="http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor">http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor</a></span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.8qiu.cn/archives/908/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Discuz! X2设置禁止游客访问所有页面</title>
		<link>http://www.8qiu.cn/archives/903</link>
		<comments>http://www.8qiu.cn/archives/903#comments</comments>
		<pubDate>Mon, 09 Jan 2012 13:51:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[生活笔记]]></category>

		<guid isPermaLink="false">http://www.8qiu.cn/?p=903</guid>
		<description><![CDATA[Discuz! X2如何设置禁止游客访问所有页面？ 管理员进入管理中心，选中“用户”tab，选中左边类目的“用户组”，然后选中子tab“系统用户组”，在页面上找到游客组，点击编辑！ 如图 最后做如下设置]]></description>
			<content:encoded><![CDATA[<p><strong>Discuz! X2如何设置禁止游客访问所有页面？</strong></p>
<p>管理员进入管理中心，选中“用户”tab，选中左边类目的“用户组”，然后选中子tab“系统用户组”，在页面上找到游客组，点击编辑！<br />
如图<br />
<a href="http://www.8qiu.cn/wp-content/uploads/2012/01/setting.jpg"><img src="http://www.8qiu.cn/wp-content/uploads/2012/01/setting.jpg" alt="" title="setting" width="1440" height="686" class="alignnone size-full wp-image-904" /></a><br />
<a href="http://www.8qiu.cn/wp-content/uploads/2012/01/nologin_setting.jpg"><br />
最后做如下设置<br />
<img src="http://www.8qiu.cn/wp-content/uploads/2012/01/nologin_setting.jpg" alt="" title="nologin_setting" width="1433" height="755" class="alignnone size-full wp-image-905" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.8qiu.cn/archives/903/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[android]设置Spinner弹出框/下拉框的样式</title>
		<link>http://www.8qiu.cn/archives/894</link>
		<comments>http://www.8qiu.cn/archives/894#comments</comments>
		<pubDate>Fri, 16 Dec 2011 08:44:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[编程开发]]></category>
		<category><![CDATA[Andorid]]></category>
		<category><![CDATA[dropdown]]></category>
		<category><![CDATA[popup]]></category>
		<category><![CDATA[Spinner]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://www.8qiu.cn/?p=894</guid>
		<description><![CDATA[Spinner drop-down list 默认的样式比较丑陋的，默认效果图见上一篇文章Android Spinner例子。 所以我们要自定义dropdown list的样式，下拉框的样式不能直接在Spinner标签里定义的，但也非常简单。 如下所以： 1. Define layout XML 在res/layout/下新建一个XML文件-drop_down_item.xml ?View Code XML&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;TextView xmlns:android=&#34;http://schemas.android.com/apk/res/android&#34; android:textColor=&#34;#000000&#34; android:layout_width=&#34;match_parent&#34; android:layout_height=&#34;wrap_content&#34; android:padding=&#34;12dip&#34;&#62; &#60;/TextView&#62; 此layout XML是作用于下拉列表中一项的样式。 2. setDropDownViewResource ?View Code JAVAArrayAdapter&#60;String&#62; accountTypesAdapter = new ArrayAdapter&#60;String&#62;&#40;this, android.R.layout.simple_spinner_item, array_type&#41;; accountTypesAdapter.setDropDownViewResource&#40;R.layout.account_type_drop_down_item&#41;; spinner.setAdapter&#40;accountTypesAdapter&#41;; &#8230; <a href="http://www.8qiu.cn/archives/894">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Spinner drop-down list 默认的样式比较丑陋的，默认效果图见上一篇文章<a title="Android Spinner例子" href="http://www.8qiu.cn/archives/881">Android Spinner例子</a>。</p>
<div style="margin-top:80px;"></div>
<p>所以我们要自定义dropdown list的样式，下拉框的样式不能直接在Spinner标签里定义的，但也非常简单。<br />
如下所以：</p>
<p>
1. <strong>Define layout XML</strong><br />
在res/layout/下新建一个XML文件-drop_down_item.xml</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p894code3'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8943"><td class="code" id="p894code3"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TextView</span> <span style="color: #000066;">xmlns:android</span>=<span style="color: #ff0000;">&quot;http://schemas.android.com/apk/res/android&quot;</span></span>
<span style="color: #009900;">	<span style="color: #000066;">android:textColor</span>=<span style="color: #ff0000;">&quot;#000000&quot;</span> <span style="color: #000066;">android:layout_width</span>=<span style="color: #ff0000;">&quot;match_parent&quot;</span></span>
<span style="color: #009900;">	<span style="color: #000066;">android:layout_height</span>=<span style="color: #ff0000;">&quot;wrap_content&quot;</span> <span style="color: #000066;">android:padding</span>=<span style="color: #ff0000;">&quot;12dip&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/TextView<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>此layout XML是作用于下拉列表中一项的样式。
</p>
<p>
2. <strong>setDropDownViewResource</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p894code4'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8944"><td class="code" id="p894code4"><pre class="java" style="font-family:monospace;">ArrayAdapter<span style="color: #339933;">&lt;</span>String<span style="color: #339933;">&gt;</span> accountTypesAdapter <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ArrayAdapter<span style="color: #339933;">&lt;</span>String<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>, android.<span style="color: #006633;">R</span>.<span style="color: #006633;">layout</span>.<span style="color: #006633;">simple_spinner_item</span>,	array_type<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
accountTypesAdapter.<span style="color: #006633;">setDropDownViewResource</span><span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">layout</span>.<span style="color: #006633;">account_type_drop_down_item</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
spinner.<span style="color: #006633;">setAdapter</span><span style="color: #009900;">&#40;</span>accountTypesAdapter<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</p>
<p>
最终的效果<br />
<a href="http://www.8qiu.cn/wp-content/uploads/2011/12/custom_drop_down_list.jpg"><img src="http://www.8qiu.cn/wp-content/uploads/2011/12/custom_drop_down_list.jpg" alt="" title="custom_drop_down_list" width="444" height="422" class="alignnone size-full wp-image-895" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.8qiu.cn/archives/894/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Android的沙箱模式</title>
		<link>http://www.8qiu.cn/archives/890</link>
		<comments>http://www.8qiu.cn/archives/890#comments</comments>
		<pubDate>Fri, 16 Dec 2011 05:54:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[编程开发]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[SandBox]]></category>

		<guid isPermaLink="false">http://www.8qiu.cn/?p=890</guid>
		<description><![CDATA[一旦安装到设备上，每个Android应用都存活在各自的安全沙箱中： Android OS是多用户的Linux系统，每个应用都被分配给不同用户。 默认情况下，系统给每个应用分配唯一的Linux user ID（User ID只给系统使用，应用本身是不知道的）。系统为每一个应用下所有的文件都设置正确的权限，只有属于该应用的user ID才能访问它们。 每个进程都拥有专属的虚拟机，所以应用代码的运行跟另外的应用都是独立开来的。 默认下，每个应用都运行在自己专属的Linux进程。当一个应用中的任何一个组件要执行的时，Android会先为它启动进程；当应用不用的时或者必须要为其他应用腾出内存时，Android会关闭该进程。]]></description>
			<content:encoded><![CDATA[<p>一旦安装到设备上，每个Android应用都存活在各自的安全沙箱中：</p>
<ul>
<li>Android OS是多用户的Linux系统，每个应用都被分配给不同用户。</li>
<li>默认情况下，系统给每个应用分配唯一的Linux user ID（User ID只给系统使用，应用本身是不知道的）。系统为每一个应用下所有的文件都设置正确的权限，只有属于该应用的user ID才能访问它们。</li>
<li>每个进程都拥有专属的虚拟机，所以应用代码的运行跟另外的应用都是独立开来的。</li>
<li>默认下，每个应用都运行在自己专属的Linux进程。当一个应用中的任何一个组件要执行的时，Android会先为它启动进程；当应用不用的时或者必须要为其他应用腾出内存时，Android会关闭该进程。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.8qiu.cn/archives/890/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Spinner例子</title>
		<link>http://www.8qiu.cn/archives/881</link>
		<comments>http://www.8qiu.cn/archives/881#comments</comments>
		<pubDate>Thu, 08 Dec 2011 03:04:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[编程开发]]></category>

		<guid isPermaLink="false">http://www.8qiu.cn/?p=881</guid>
		<description><![CDATA[在Android中, Spinner组件就是下拉列表. 弹出一个选项列表，允许你从列表中选择一项。 布局的XML文件如下 ?View Code XML&#60;Spinner android:id=&#34;@+id/Spinner01&#34; android:layout_width=&#34;wrap_content&#34; android:layout_height=&#34;wrap_content&#34; /&#62; Activity ?View Code JAVA1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 public class SpinnerExample extends Activity &#123; private String &#8230; <a href="http://www.8qiu.cn/archives/881">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>在Android中, Spinner组件就是下拉列表. 弹出一个选项列表，允许你从列表中选择一项。</p>
<p>布局的XML文件如下</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p881code8'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8818"><td class="code" id="p881code8"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Spinner</span> <span style="color: #000066;">android:id</span>=<span style="color: #ff0000;">&quot;@+id/Spinner01&quot;</span></span>
<span style="color: #009900;"><span style="color: #000066;">android:layout_width</span>=<span style="color: #ff0000;">&quot;wrap_content&quot;</span></span>
<span style="color: #009900;"><span style="color: #000066;">android:layout_height</span>=<span style="color: #ff0000;">&quot;wrap_content&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></td></tr></table></div>

<p><strong>Activity</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p881code9'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8819"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code" id="p881code9"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> SpinnerExample <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">String</span> array_spinner<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
@Override
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onCreate<span style="color: #009900;">&#40;</span>Bundle savedInstanceState<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onCreate</span><span style="color: #009900;">&#40;</span>savedInstanceState<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
setContentView<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">layout</span>.<span style="color: #006633;">main</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
array_spinner<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
array_spinner<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #339933;">;</span>
array_spinner<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;2&quot;</span><span style="color: #339933;">;</span>
array_spinner<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;3&quot;</span><span style="color: #339933;">;</span>
array_spinner<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;4&quot;</span><span style="color: #339933;">;</span>
array_spinner<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;5&quot;</span><span style="color: #339933;">;</span>
Spinner s <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>Spinner<span style="color: #009900;">&#41;</span> findViewById<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">Spinner01</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
ArrayAdapter adapter <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ArrayAdapter<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>,
android.<span style="color: #006633;">R</span>.<span style="color: #006633;">layout</span>.<span style="color: #006633;">simple_spinner_item</span>, array_spinner<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
s.<span style="color: #006633;">setAdapter</span><span style="color: #009900;">&#40;</span>adapter<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>根据value设置Spinner,当然用position设置Spinner会更好，但是有些场景下只能用value来设置。</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p881code10'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p88110"><td class="code" id="p881code10"><pre class="java" style="font-family:monospace;">spinner.<span style="color: #006633;">setSelection</span><span style="color: #009900;">&#40;</span>adapter.<span style="color: #006633;">getPosition</span><span style="color: #009900;">&#40;</span>account.<span style="color: #006633;">type</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>The Output will look like<br />
<a href="http://www.8qiu.cn/wp-content/uploads/2011/12/spinnerexample.png"><img src="http://www.8qiu.cn/wp-content/uploads/2011/12/spinnerexample.png" alt="" title="spinnerexample" width="333" height="372" class="alignnone size-full wp-image-882" /></a></p>
<p>设置弹出下拉列表的样式见<a href="http://www.8qiu.cn/archives/894">设置Spinner弹出框/下拉框的样式</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.8qiu.cn/archives/881/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>android自动关闭(隐藏)提示框(对话框)</title>
		<link>http://www.8qiu.cn/archives/876</link>
		<comments>http://www.8qiu.cn/archives/876#comments</comments>
		<pubDate>Mon, 28 Nov 2011 06:29:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[编程开发]]></category>

		<guid isPermaLink="false">http://www.8qiu.cn/?p=876</guid>
		<description><![CDATA[正在做一个小项目，实现修改密码的功能，当输入的旧密码不正确时，弹出一个提示然后自动消失。 代码如下： ?View Code JAVAif &#40;!settingInfo.getString&#40;KEY_PWD, &#34;132465&#34;&#41;.equals&#40;oldPwd&#41;&#41; &#123; Toast.makeText&#40;getApplicationContext&#40;&#41;, &#34;Old password is wrong&#34;, Toast.LENGTH_SHORT&#41;.show&#40;&#41;; return; &#125; A toast notification is a message that pops up on the surface of the window. It only fills the amount of space required for &#8230; <a href="http://www.8qiu.cn/archives/876">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>正在做一个小项目，实现修改密码的功能，当输入的旧密码不正确时，弹出一个提示然后自动消失。</p>
<p>代码如下：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p876code12'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p87612"><td class="code" id="p876code12"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>settingInfo.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span>KEY_PWD, <span style="color: #0000ff;">&quot;132465&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span>oldPwd<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
Toast.<span style="color: #006633;">makeText</span><span style="color: #009900;">&#40;</span>getApplicationContext<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>, <span style="color: #0000ff;">&quot;Old password is wrong&quot;</span>, Toast.<span style="color: #006633;">LENGTH_SHORT</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">return</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>A toast notification is a message that pops up on the surface of the window. It only fills the amount of space required for the message and the user&#8217;s current activity remains visible and interactive. The notification automatically fades in and out, and does not accept interaction events.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.8qiu.cn/archives/876/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android的LayoutInflater</title>
		<link>http://www.8qiu.cn/archives/870</link>
		<comments>http://www.8qiu.cn/archives/870#comments</comments>
		<pubDate>Mon, 14 Nov 2011 02:54:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[编程开发]]></category>

		<guid isPermaLink="false">http://www.8qiu.cn/?p=870</guid>
		<description><![CDATA[LayoutInflater是用来把XML布局文件转换成Android的View对象。它从来不是直接实例化出来的，取而代之的是使用getLayoutInflater() or getSystemService(String)获取跟当前context绑定一起的LayoutInflater实例,这个实例跟当前运行的设备也正确的配置一起。 得到LayoutInflater实例的三个方法： LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); &#160; LayoutInflater inflater = ((Activity) this).getLayoutInflater(); &#160; LayoutInflater inflater = LayoutInflater.from(getApplicationContext()) 生成View对象 View contentView = LayoutInflater.from(getApplicationContext()).inflate(R.layout.add_account, null); &#160;]]></description>
			<content:encoded><![CDATA[<p>LayoutInflater是用来把XML布局文件转换成Android的View对象。它从来不是直接实例化出来的，取而代之的是使用<code><a href="http://developer.android.com/reference/android/app/Activity.html#getLayoutInflater%28%29">getLayoutInflater()</a></code> or <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService%28java.lang.String%29">getSystemService(String)</a></code>获取跟当前context绑定一起的LayoutInflater实例,这个实例跟当前运行的设备也正确的配置一起。<br />
<strong>得到LayoutInflater实例的三个方法：</strong></p>
<div class="quote">LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);</div>
<p>&nbsp;</p>
<div class="quote">LayoutInflater inflater = ((Activity) this).getLayoutInflater();</div>
<p>&nbsp;</p>
<div class="quote">LayoutInflater inflater = LayoutInflater.from(getApplicationContext())</div>
<p>生成View对象</p>
<div class="quote">
View contentView = LayoutInflater.from(getApplicationContext()).inflate(R.layout.add_account, null);
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.8qiu.cn/archives/870/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Android实现底部菜单栏和顶部菜单栏</title>
		<link>http://www.8qiu.cn/archives/862</link>
		<comments>http://www.8qiu.cn/archives/862#comments</comments>
		<pubDate>Tue, 18 Oct 2011 09:06:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[编程开发]]></category>

		<guid isPermaLink="false">http://www.8qiu.cn/?p=862</guid>
		<description><![CDATA[Android App的需求：同时显示顶部菜单栏和底部菜单栏，要一直显示在屏幕上，中间是一个可滚动的动态列表。 下面是实现的简单代码 main.xml包含top menu， bottom menu以及动态列表的占位符。 Main.xml &#60;?xml version=“1.0″ encoding=“utf-8″?&#62;&#60;LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”android:orientation=“vertical”android:layout_width=“fill_parent”android:layout_height=“fill_parent” &#62;&#160; &#60;!– top menu –&#62; &#60;LinearLayoutandroid:id=“@+id/top_menu” android:layout_width=“fill_parent” android:layout_height=“wrap_content” &#62; &#60;TextView android:id=“@+id/top” android:layout_width=“fill_parent” android:layout_height=“40px” android:background=“@drawable/red” android:text=“top static view” /&#62; &#60;/LinearLayout&#62; &#60;!– placeholder for list –&#62; &#60;ListView android:id=“@android:id/list” android:layout_width=“fill_parent” android:layout_height=“wrap_content” android:layout_weight=“1″ /&#62; &#60;!– bottom menu –&#62; &#60;LinearLayout android:id=“@+id/bottom_meunun” android:layout_width=“fill_parent” android:layout_height=“wrap_content” &#62; &#60;TextView android:id=“@+id/bottom” android:layout_width=“fill_parent” &#8230; <a href="http://www.8qiu.cn/archives/862">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Android App的需求：</strong>同时显示顶部菜单栏和底部菜单栏，要一直显示在屏幕上，中间是一个可滚动的动态列表。</p>
<p>下面是实现的简单代码</p>
<p>main.xml包含top menu， bottom menu以及动态列表的占位符。</p>
<div class="quote"><strong>Main.xml</strong><br />
&lt;?xml version=<em>“1.0″</em> encoding=<em>“utf-8″</em>?&gt;&lt;LinearLayout xmlns:android=<em>“http://schemas.android.com/apk/res/android”</em>android:orientation=<em>“vertical”</em>android:layout_width=<em>“fill_parent”</em>android:layout_height=<em>“fill_parent”</em> &gt;&nbsp;</p>
<p>&lt;!– top menu –&gt;</p>
<p>&lt;LinearLayoutandroid:id=<em>“@+id/top_menu”</em></p>
<p>android:layout_width=<em>“fill_parent”</em></p>
<p>android:layout_height=<em>“wrap_content”</em> &gt;</p>
<p>&lt;TextView android:id=<em>“@+id/top”</em></p>
<p>android:layout_width=<em>“fill_parent”</em></p>
<p>android:layout_height=<em>“40px”</em></p>
<p>android:background=<em>“@drawable/red”</em></p>
<p>android:text=<em>“top static view”</em> /&gt;</p>
<p>&lt;/LinearLayout&gt;</p>
<p>&lt;!– placeholder for list –&gt;<br />
&lt;ListView android:id=<em>“@android:id/list”</em></p>
<p>android:layout_width=<em>“fill_parent”</em></p>
<p>android:layout_height=<em>“wrap_content”</em></p>
<p>android:layout_weight=<em>“1″</em> /&gt;</p>
<p>&lt;!– bottom menu –&gt;</p>
<p>&lt;LinearLayout android:id=<em>“@+id/bottom_meunun”</em></p>
<p>android:layout_width=<em>“fill_parent”</em></p>
<p>android:layout_height=<em>“wrap_content”</em> &gt;</p>
<p>&lt;TextView android:id=<em>“@+id/bottom”</em></p>
<p>android:layout_width=<em>“fill_parent”</em></p>
<p>android:layout_height=<em>“40px”</em></p>
<p>android:background=<em>“@drawable/yellow”</em></p>
<p>android:text=<em>“bottom static view”</em> /&gt;</p>
<p>&lt;/LinearLayout&gt;</p>
<p>&lt;/LinearLayout&gt;</p>
</div>
<p>要达到需求中的这种效果，最关键就是weight属性，weight属性就是让控件填充parent留下的空白，LinearLayout支持weight属性。weight默认值是0，在上面的例子中，ListView有个layout_weight=<em>“1″</em> ，在屏幕上top menu和bottom menu各占40pt，ListView占余下的空白区域。假设bottom menu和ListView的layout_weight都是1，那么bottom menu和ListView会平分空白区域，top menu还是占40pt。</p>
<p>现在，有20个列表项，每个列表项的高度都是30pt，滚动视图的实际效果如下所示：</p>
<p><a href="http://www.8qiu.cn/wp-content/uploads/2011/10/020809-0243-dynamiclist1.jpg"><img class="alignnone size-full wp-image-866" title="020809-0243-dynamiclist1" src="http://www.8qiu.cn/wp-content/uploads/2011/10/020809-0243-dynamiclist1.jpg" alt="" width="413" height="662" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.8qiu.cn/archives/862/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

