<?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>Code Library &#187; eclipse</title>
	<atom:link href="http://www.ucosoft.com/tag/eclipse/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ucosoft.com</link>
	<description>Free Source Code and Program Tips</description>
	<lastBuildDate>Thu, 22 Jul 2010 05:17:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Eclipse developed Android, Hello, TimePicker (study 8)</title>
		<link>http://www.ucosoft.com/eclipse-developed-android-timepicker-study-2.html</link>
		<comments>http://www.ucosoft.com/eclipse-developed-android-timepicker-study-2.html#comments</comments>
		<pubDate>Fri, 18 Dec 2009 16:50:28 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[developed]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[timepicker]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/uncategorized/eclipse-developed-android-timepicker-study-2.html</guid>
		<description><![CDATA[Hello, TimePicker A TimePicker is a Widget that allows the User to Select the time by hour, minute and AM or PM. &#160; &#160; Start a new project / Activity called HelloTimePicker. &#160; Modify HelloTimePicker.java code is as follows: &#160; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [...]]]></description>
			<content:encoded><![CDATA[<h1>Hello, TimePicker</h1>
<div>
<div class="jd-descr">
<p>A <code>TimePicker</code> is a Widget that allows the User to Select the time by hour, minute and AM or PM.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Start a new project / Activity <strong>called</strong> HelloTimePicker.</p>
<p>&nbsp;</p>
<p>Modify HelloTimePicker.java code is as follows:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.example.test</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.Calendar</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.app.Activity</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.app.Dialog</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.app.TimePickerDialog</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.os.Bundle</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.view.View</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.Button</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.TextView</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.TimePicker</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> HelloTimePicker <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">private</span> TextView mTimeDisplay<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">Button</span> mPickTime<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> mHour<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> mMinute<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> TIME_DIALOG_ID <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
@ Overrideprotected <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;">&#40;</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>
<span style="color: #339933;">/</span> <span style="color: #339933;">/</span> capture our <span style="color: #003399;">View</span> elements mTimeDisplay <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>TextView<span style="color: #009900;">&#41;</span> findViewById <span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">timeDisplay</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
mPickTime <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Button</span><span style="color: #009900;">&#41;</span> findViewById <span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">pickTime</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">/</span> <span style="color: #339933;">/</span> add a click listener to the button mPickTime.<span style="color: #006633;">setOnClickListener</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">View</span>.<span style="color: #006633;">OnClickListener</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onClick <span style="color: #009900;">&#40;</span><span style="color: #003399;">View</span> v<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span>showDialog <span style="color: #009900;">&#40;</span>TIME_DIALOG_ID<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">/</span> <span style="color: #339933;">/</span> get the current time <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #003399;">Calendar</span> c <span style="color: #339933;">=</span> <span style="color: #003399;">Calendar</span>.<span style="color: #006633;">getInstance</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
mHour <span style="color: #339933;">=</span> c.<span style="color: #006633;">get</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Calendar</span>.<span style="color: #006633;">HOUR_OF_DAY</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
mMinute <span style="color: #339933;">=</span> c.<span style="color: #006633;">get</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Calendar</span>.<span style="color: #006633;">MINUTE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">/</span> <span style="color: #339933;">/</span> display the current date updateDisplay <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
Overrideprotected <span style="color: #003399;">Dialog</span> onCreateDialog <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> id<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">switch</span> <span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">case</span> TIME_DIALOG_ID<span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000000; font-weight: bold;">new</span> TimePickerDialog <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>, mTimeSetListener, mHour, mMinute, <span style="color: #000066; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #339933;">/</span> updates the time we display in the TextViewprivate <span style="color: #000066; font-weight: bold;">void</span> updateDisplay <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span>mTimeDisplay.<span style="color: #006633;">setText</span> <span style="color: #009900;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> StringBuilder <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>. <span style="color: #006633;">append</span> <span style="color: #009900;">&#40;</span>pad <span style="color: #009900;">&#40;</span>mHour<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>. <span style="color: #006633;">append</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;:&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span>. <span style="color: #006633;">append</span> <span style="color: #009900;">&#40;</span>pad <span style="color: #009900;">&#40;</span>mMinute <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">private</span> TimePickerDialog.<span style="color: #006633;">OnTimeSetListener</span> mTimeSetListener <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> TimePickerDialog.<span style="color: #006633;">OnTimeSetListener</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onTimeSet <span style="color: #009900;">&#40;</span>TimePicker view, <span style="color: #000066; font-weight: bold;">int</span> hourOfDay, <span style="color: #000066; font-weight: bold;">int</span> minute<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span>mHour <span style="color: #339933;">=</span> hourOfDay<span style="color: #339933;">;</span>
mMinute <span style="color: #339933;">=</span> minute<span style="color: #339933;">;</span>
updateDisplay <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #003399;">String</span> pad <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> c<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>c<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">=</span> <span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #003399;">String</span>.<span style="color: #006633;">valueOf</span> <span style="color: #009900;">&#40;</span>c<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #cc66cc;">0</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;+</span> <span style="color: #003399;">String</span>.<span style="color: #006633;">valueOf</span> <span style="color: #009900;">&#40;</span>c<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>Layout-&gt; main.xml</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;?</span> xml version <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #cc66cc;">1.0</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span> encoding <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>utf<span style="color: #339933;">-</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;?&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>LinearLayout xmlns<span style="color: #339933;">:</span> android <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//schemas.android.com/apk/res/android&amp;quot; android: layout_width = &amp;quot;wrap_content&amp;quot; android: layout_height = &amp;quot;wrap_content&amp;quot; android: orientation = &amp;quot;vertical&amp;quot;&amp;gt; &amp;lt;TextView android:id=&amp;quot;@+id/timeDisplay&amp;quot; android:layout_width=&amp;quot;wrap_content&amp;quot; android:layout_height=&amp;quot;wrap_content&amp;quot; android:text=&amp;quot;&amp;quot;/&amp;gt; &amp;lt;Button android : id = &amp;quot;@ + id / pickTime&amp;quot; android: layout_width = &amp;quot;wrap_content&amp;quot; android: layout_height = &amp;quot;wrap_content&amp;quot; android: text = &amp;quot;Change the time &amp;quot;/&amp;gt;&amp;lt;/ LinearLayout&amp;gt;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>Run Now run it. Run the results are as follows:</p>
<p><img height="284" width="200" alt="" src="/images/345eb4ffa77115deb9d4fb0bef7c3ac2.png" /></p>
<p>&nbsp;</p>
<p>Source Download: HelloTimePicker.zip</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
</div>

	Tags: <strong><a href="http://www.ucosoft.com/tag/android" title="android" rel="tag">android</a>, <a href="http://www.ucosoft.com/tag/developed" title="developed" rel="tag">developed</a>, <a href="http://www.ucosoft.com/tag/eclipse" title="eclipse" rel="tag">eclipse</a>, <a href="http://www.ucosoft.com/tag/study" title="study" rel="tag">study</a>, <a href="http://www.ucosoft.com/tag/timepicker" title="timepicker" rel="tag">timepicker</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/eclipse-developed-android-timepicker-study-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse developed Android, Hello, WebView (study 6)</title>
		<link>http://www.ucosoft.com/eclipse-developed-android-webview-study-2.html</link>
		<comments>http://www.ucosoft.com/eclipse-developed-android-webview-study-2.html#comments</comments>
		<pubDate>Fri, 18 Dec 2009 14:21:54 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[developed]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[webview]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/uncategorized/eclipse-developed-android-webview-study-2.html</guid>
		<description><![CDATA[Hello, WebView A WebView allows you to Create your own Web Browser Activity. In this Tutorial, we&#39;ll Create a simple Activity that can View Web pages. Learning Address: http://androidappdocs.appspot.com/guide/tutorials/views/hello-webview.html HelloWebView.java Code 1 package com.example.test; import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; public class HelloWebView extends Activity &#40;WebView webview; / ** Called when the activity is first [...]]]></description>
			<content:encoded><![CDATA[<h1>  Hello, WebView </h1>
<div>
<div class=jd-descr>
<p> A <code>WebView</code> allows you to Create your own Web Browser Activity. In this Tutorial, we&#39;ll Create a simple Activity that can View Web pages. </p>
</p>
<p>  Learning Address: http://androidappdocs.appspot.com/guide/tutorials/views/hello-webview.html </p>
</p>
<p>  HelloWebView.java Code </p>
</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.example.test</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.app.Activity</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.os.Bundle</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.webkit.WebView</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> HelloWebView <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #009900;">&#40;</span>WebView webview<span style="color: #339933;">;</span> <span style="color: #339933;">/</span> <span style="color: #339933;">**</span> Called when the activity is first created. <span style="color: #339933;">*</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;">&#40;</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> webview <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>WebView<span style="color: #009900;">&#41;</span> findViewById <span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">webview</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> webview.<span style="color: #006633;">getSettings</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>. <span style="color: #006633;">setJavaScriptEnabled</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> webview.<span style="color: #006633;">loadUrl</span> <span style="color: #009900;">&#40;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//ditu.google.cn);))</span></pre></td></tr></table></div>

</p>
<p>  Layout-&gt; main.xml </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;?</span> xml version <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #cc66cc;">1.0</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span> encoding <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>utf<span style="color: #339933;">-</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;?&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>LinearLayout xmlns<span style="color: #339933;">:</span> android <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//schemas.android.com/apk/res/android&amp;quot; android: layout_width = &amp;quot;wrap_content&amp;quot; android: layout_height = &amp;quot;wrap_content&amp;quot; android: orientation = &amp;quot;vertical&amp;quot;&amp;gt; &amp;lt;WebView android:id=&amp;quot;@+id/webview&amp;quot; android:layout_width=&amp;quot;fill_parent&amp;quot; android:layout_height=&amp;quot;fill_parent&amp;quot; /&amp;gt; &amp;lt;/ LinearLayout&amp;gt;</span></pre></td></tr></table></div>

</p>
<p>  Implementation of the Eclipse-&gt; HelloWebViewAndroid-&gt; Android Application Show pictures are as follows: </p>
</p>
<p><img src=/images/5ab84791881f6453736271357496b644.png alt="" width=341 height=501 /></p>
</p>
<p>  Code download HelloWebView.zip </p>
</p>
</div>
</div>

	Tags: <strong><a href="http://www.ucosoft.com/tag/android" title="android" rel="tag">android</a>, <a href="http://www.ucosoft.com/tag/developed" title="developed" rel="tag">developed</a>, <a href="http://www.ucosoft.com/tag/eclipse" title="eclipse" rel="tag">eclipse</a>, <a href="http://www.ucosoft.com/tag/study" title="study" rel="tag">study</a>, <a href="http://www.ucosoft.com/tag/webview" title="webview" rel="tag">webview</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/eclipse-developed-android-webview-study-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse developed Android, RelativeLayout (study 3)</title>
		<link>http://www.ucosoft.com/eclipse-developed-android-relativelayout-study-2.html</link>
		<comments>http://www.ucosoft.com/eclipse-developed-android-relativelayout-study-2.html#comments</comments>
		<pubDate>Fri, 18 Dec 2009 10:15:06 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[developed]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[relativelayout]]></category>
		<category><![CDATA[study]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/uncategorized/eclipse-developed-android-relativelayout-study-2.html</guid>
		<description><![CDATA[Hello, RelativeLayout A RelativeLayout is a ViewGroup that allows you to layout child elements in positions relative to the parent or siblings elements. Start a new project / Activity called HelloRelativeLayout. Open the layout file. Make it like so: 1 &#38;lt;? xml version = &#38;quot;1.0&#38;quot; encoding = &#38;quot;utf-8&#38;quot;?&#38;gt; &#38;lt;RelativeLayout xmlns: android = &#38;quot;http://schemas.android.com/apk/res/android&#38;quot; android: layout_width [...]]]></description>
			<content:encoded><![CDATA[<h1>  Hello, RelativeLayout </h1>
<div>
<p class=jd-descr> A <code>RelativeLayout</code> is a ViewGroup that allows you to layout child elements in positions relative to the parent or siblings elements. </p>
<div class=jd-descr>
<ol>
<li>  Start a new project / Activity called HelloRelativeLayout. </li>
<li>  Open the layout file. Make it like so:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;?</span> xml version <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #cc66cc;">1.0</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span> encoding <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>utf<span style="color: #339933;">-</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;?&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>RelativeLayout xmlns<span style="color: #339933;">:</span> android <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//schemas.android.com/apk/res/android&amp;quot; android: layout_width = &amp;quot;fill_parent&amp;quot; android: layout_height = &amp;quot;fill_parent&amp;quot;&amp;gt; &amp;lt;TextView android:id=&amp;quot;@+id/label&amp;quot; android:layout_width=&amp;quot;fill_parent&amp;quot; android:layout_height=&amp;quot;wrap_content&amp;quot; android:text=&amp;quot;Type here:&amp;quot;/&amp;gt; &amp;lt;EditText android: id = &amp;quot; @ + id / entry &amp;quot;android: layout_width =&amp;quot; fill_parent &amp;quot;android: layout_height =&amp;quot; wrap_content &amp;quot;android: background =&amp;quot; @ android: drawable / editbox_background &amp;quot;android: layout_below =&amp;quot; @ id / label &amp;quot;/&amp;gt; &amp;lt;Button android: id = &amp;quot;@ + id / ok&amp;quot; android: layout_width = &amp;quot;wrap_content&amp;quot; android: layout_height = &amp;quot;wrap_content&amp;quot; android: layout_below = &amp;quot;@ id / entry&amp;quot; android: layout_alignParentRight = &amp;quot;true&amp;quot; android: layout_marginLeft = &amp;quot;10dip&amp;quot; android: text = &amp;quot; OK &amp;quot;/&amp;gt; &amp;lt;Button android:layout_width=&amp;quot;wrap_content&amp;quot; android:layout_height=&amp;quot;wrap_content&amp;quot; android:layout_toLeftOf=&amp;quot;@id/ok&amp;quot; android:layout_alignTop=&amp;quot;@id/ok&amp;quot; android:text=&amp;quot;Cancel&amp;quot; /&amp;gt; &amp;lt; / RelativeLayout&amp;gt;</span></pre></td></tr></table></div>

<p>  Pay attention to each of the additional <code>layout_*</code> attributes (besides the usual width and height, which are required for all elements). When using relative layout, we use attributes like <code>layout_below</code> and <code>layout_toLeftOf</code> to describe How we&#39;d like to position each View. Naturally, these are different relative positions, and the value of the attribute is the id of the element we want the position relative to. </p>
</li>
<li>  Make sure your Activity loads this layout in the <code>onCreate()</code> method:
</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <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;">&#40;</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><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>  <code>R.layout.main</code> refers to the <code>main.xml</code> layout file. </p>
</li>
<li>  Run it. </li>
</ol>
</div>
</div>

	Tags: <strong><a href="http://www.ucosoft.com/tag/android" title="android" rel="tag">android</a>, <a href="http://www.ucosoft.com/tag/developed" title="developed" rel="tag">developed</a>, <a href="http://www.ucosoft.com/tag/eclipse" title="eclipse" rel="tag">eclipse</a>, <a href="http://www.ucosoft.com/tag/relativelayout" title="relativelayout" rel="tag">relativelayout</a>, <a href="http://www.ucosoft.com/tag/study" title="study" rel="tag">study</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/eclipse-developed-android-relativelayout-study-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse developed Android, Hello Spinner (Study 10)</title>
		<link>http://www.ucosoft.com/eclipse-developed-android-spinner-study-2.html</link>
		<comments>http://www.ucosoft.com/eclipse-developed-android-spinner-study-2.html#comments</comments>
		<pubDate>Fri, 18 Dec 2009 07:51:34 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[developed]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[spinner]]></category>
		<category><![CDATA[study]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/uncategorized/eclipse-developed-android-spinner-study-2.html</guid>
		<description><![CDATA[HelloSpinner.java Source 1 package com.example.test; import android.app.Activity; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.Spinner; public class HelloSpinner extends Activity &#40;@ Overridepublic void onCreate &#40;Bundle savedInstanceState&#41; &#40; super.onCreate &#40;savedInstanceState&#41;; setContentView &#40;R.layout.main&#41;; Spinner s = &#40;Spinner&#41; findViewById &#40;R.id.spinner&#41;; ArrayAdapter adapter = ArrayAdapter.createFromResource &#40;this, R.array.planets, android.R. layout.simple_spinner_item&#41;; adapter.setDropDownViewResource &#40;android.R.layout.simple_spinner_dropdown_item&#41;; s.setAdapter &#40;adapter&#41;;&#41;&#41; layout-&#62; main.xml 1 &#38;lt;? xml version = &#38;quot;1.0&#38;quot; [...]]]></description>
			<content:encoded><![CDATA[<p>  HelloSpinner.java Source </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.example.test</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.app.Activity</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.os.Bundle</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.ArrayAdapter</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.Spinner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> HelloSpinner <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #009900;">&#40;</span>@ Overridepublic <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;">&#40;</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> 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;">spinner</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> ArrayAdapter adapter <span style="color: #339933;">=</span> ArrayAdapter.<span style="color: #006633;">createFromResource</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>, R.<span style="color: #006633;">array</span>.<span style="color: #006633;">planets</span>, android.<span style="color: #006633;">R</span>. <span style="color: #006633;">layout</span>.<span style="color: #006633;">simple_spinner_item</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> adapter.<span style="color: #006633;">setDropDownViewResource</span> <span style="color: #009900;">&#40;</span>android.<span style="color: #006633;">R</span>.<span style="color: #006633;">layout</span>.<span style="color: #006633;">simple_spinner_dropdown_item</span><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;">&#41;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>  layout-&gt; main.xml </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;?</span> xml version <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #cc66cc;">1.0</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span> encoding <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>utf<span style="color: #339933;">-</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;?&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>LinearLayout xmlns<span style="color: #339933;">:</span> android <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//schemas.android.com/apk/res/android&amp;quot; android: orientation = &amp;quot;vertical&amp;quot; android: padding = &amp;quot;10dip&amp;quot; android: layout_width = &amp;quot;fill_parent&amp;quot; android: layout_height = &amp;quot;wrap_content&amp;quot;&amp;gt; &amp;lt;TextView android: layout_width = &amp;quot;fill_parent&amp;quot; android: layout_height = &amp;quot;wrap_content&amp;quot; android: layout_marginTop = &amp;quot;10dip&amp;quot; android: text = &amp;quot;Please select a planet: &amp;quot;/&amp;gt; &amp;lt;Spinner android: id =&amp;quot; @ + id / spinner &amp;quot;android: layout_width =&amp;quot; fill_parent &amp;quot;android: layout_height =&amp;quot; wrap_content &amp;quot;android: drawSelectorOnTop =&amp;quot; true &amp;quot;android: prompt =&amp;quot; @ string / planet_prompt &amp;quot;/ &amp;gt; &amp;lt;/ LinearLayout&amp;gt;</span></pre></td></tr></table></div>

<p>  values-&gt; arrays.xml </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>resources<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>string<span style="color: #339933;">-</span>array name<span style="color: #339933;">=&amp;</span>quot<span style="color: #339933;">;</span>planets<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Mercury <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Venus <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Earth <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Mars <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Jupiter <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #339933;">/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Saturn <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Uranus <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Neptune <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> string<span style="color: #339933;">-</span>array<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> resources<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>  value-&gt; strings.xml </p>
</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;?</span> xml version <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #cc66cc;">1.0</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span> encoding <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>utf<span style="color: #339933;">-</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;?&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>resources<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>string name<span style="color: #339933;">=&amp;</span>quot<span style="color: #339933;">;</span>hello<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span> Hello World, HelloSpinner<span style="color: #339933;">!</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> string<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>string name<span style="color: #339933;">=&amp;</span>quot<span style="color: #339933;">;</span>app_name<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span> HelloSpinner <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> string<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>string name<span style="color: #339933;">=&amp;</span>quot<span style="color: #339933;">;</span>planet_prompt<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span> Choose a planet <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> string<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> resources<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span></pre></td></tr></table></div>

</p>
<p>  run it <img src=/images/2a6d1cb47d7db3e832cd4b13bd065d1c.png alt="" /></p></p>

	Tags: <strong><a href="http://www.ucosoft.com/tag/android" title="android" rel="tag">android</a>, <a href="http://www.ucosoft.com/tag/developed" title="developed" rel="tag">developed</a>, <a href="http://www.ucosoft.com/tag/eclipse" title="eclipse" rel="tag">eclipse</a>, <a href="http://www.ucosoft.com/tag/spinner" title="spinner" rel="tag">spinner</a>, <a href="http://www.ucosoft.com/tag/study" title="study" rel="tag">study</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/eclipse-developed-android-spinner-study-2.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eclipse developed Android, Hello, MapView (study 5)</title>
		<link>http://www.ucosoft.com/eclipse-developed-android-mapview-study-2.html</link>
		<comments>http://www.ucosoft.com/eclipse-developed-android-mapview-study-2.html#comments</comments>
		<pubDate>Fri, 18 Dec 2009 01:01:06 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[developed]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[mapview]]></category>
		<category><![CDATA[study]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/uncategorized/eclipse-developed-android-mapview-study-2.html</guid>
		<description><![CDATA[Hello, MapView Learning Address: http://androidappdocs.appspot.com/guide/tutorials/views/hello-mapview.html HelloItemizedOverlay.java Code 1 package com.example.test; import java.util.ArrayList; import android.graphics.drawable.Drawable; import com.google.android.maps.ItemizedOverlay; import com.google.android.maps.OverlayItem; public class HelloItemizedOverlay extends ItemizedOverlay &#40;private ArrayList &#38;lt;OverlayItem&#38;gt; mOverlays = new ArrayList &#38;lt;OverlayItem&#38;gt; &#40;&#41;; public HelloItemizedOverlay &#40;Drawable defaultMarker&#41; &#40;super &#40;boundCenterBottom &#40;defaultMarker &#41;&#41;;// TODO Auto-generated constructor stub) @ Overridepublic int size () (return mOverlays. size ();) public void [...]]]></description>
			<content:encoded><![CDATA[<h1>  Hello, MapView </h1>
<p>  Learning Address: http://androidappdocs.appspot.com/guide/tutorials/views/hello-mapview.html </p>
</p>
<p>  HelloItemizedOverlay.java Code </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.example.test</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.ArrayList</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.graphics.drawable.Drawable</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.google.android.maps.ItemizedOverlay</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.google.android.maps.OverlayItem</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> HelloItemizedOverlay <span style="color: #000000; font-weight: bold;">extends</span> ItemizedOverlay <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">ArrayList</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>OverlayItem<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> mOverlays <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">ArrayList</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>OverlayItem<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</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;">public</span> HelloItemizedOverlay <span style="color: #009900;">&#40;</span>Drawable defaultMarker<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">super</span> <span style="color: #009900;">&#40;</span>boundCenterBottom <span style="color: #009900;">&#40;</span>defaultMarker <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">// TODO Auto-generated constructor stub) @ Overridepublic int size () (return mOverlays. size ();) public void addOverlay (OverlayItem overlay) (mOverlays.add (overlay); populate ();}Overrideprotected OverlayItem createItem (int i) (return mOverlays.get (i);))</span></pre></td></tr></table></div>

</p>
<p>  HelloMapView1.java Code </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.example.test</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.List</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.graphics.drawable.Drawable</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.os.Bundle</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.LinearLayout</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.ZoomControls</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.google.android</span> . <span style="color: #006633;">maps</span>.<span style="color: #006633;">GeoPoint</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.google.android.maps.MapActivity</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.google.android.maps.MapView</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.google.android.maps.Overlay</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.google.android.maps.OverlayItem</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> HelloMapView1 <span style="color: #000000; font-weight: bold;">extends</span> MapActivity <span style="color: #009900;">&#40;</span>LinearLayout linearLayout<span style="color: #339933;">;</span> MapView mapView<span style="color: #339933;">;</span> ZoomControls mZoom<span style="color: #339933;">;</span> <span style="color: #003399;">List</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>Overlay<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> mapOverlays<span style="color: #339933;">;</span> Drawable drawable<span style="color: #339933;">;</span> HelloItemizedOverlay itemizedOverlay<span style="color: #339933;">;</span> <span style="color: #339933;">/</span> <span style="color: #339933;">**</span> Called when the activity is first created. <span style="color: #339933;">*</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;">&#40;</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> mapView <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>MapView<span style="color: #009900;">&#41;</span> findViewById <span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">mapview</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> mapView.<span style="color: #006633;">setBuiltInZoomControls</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> mapOverlays <span style="color: #339933;">=</span> mapView.<span style="color: #006633;">getOverlays</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> drawable <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">getResources</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span>. <span style="color: #006633;">getDrawable</span> <span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">drawable</span>.<span style="color: #006633;">androidmarker</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> itemizedOverlay <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> HelloItemizedOverlay <span style="color: #009900;">&#40;</span>drawable<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> GeoPoint point <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GeoPoint <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">19240000</span>, <span style="color: #339933;">-</span><span style="color: #cc66cc;">99120000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> OverlayItem overlayitem <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> OverlayItem <span style="color: #009900;">&#40;</span>point, <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;&amp;</span>quot<span style="color: #339933;">;</span>, <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> itemizedOverlay.<span style="color: #006633;">addOverlay</span> <span style="color: #009900;">&#40;</span> overlayitem<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> mapOverlays.<span style="color: #006633;">add</span> <span style="color: #009900;">&#40;</span>itemizedOverlay<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span> @ Override <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">boolean</span> isRouteDisplayed <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>  Layout-&gt; mail.xml </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;?</span> xml version <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #cc66cc;">1.0</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span> encoding <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>utf<span style="color: #339933;">-</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;?&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>RelativeLayout xmlns<span style="color: #339933;">:</span> android <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//schemas.android.com/apk/res/android&amp;quot; android: id = &amp;quot;@ + id / mainlayout &amp;quot;android: orientation =&amp;quot; vertical &amp;quot;android: layout_width =&amp;quot; fill_parent &amp;quot;android: layout_height =&amp;quot; fill_parent &amp;quot;&amp;gt; &amp;lt;com.google.android.maps.MapView android: id =&amp;quot; @ + id / mapview &amp;quot;android: layout_width =&amp;quot; fill_parent &amp;quot;android: layout_height =&amp;quot; fill_parent &amp;quot;android: clickable =&amp;quot; true &amp;quot;android: apiKey =&amp;quot; Your Maps API Key &amp;quot;/&amp;gt; &amp;lt;LinearLayout android: id =&amp;quot; @ + id / zoomview &amp;quot;android: layout_width =&amp;quot; wrap_content &amp;quot;android: layout_height = &amp;quot;wrap_content&amp;quot; android: layout_alignBottom = &amp;quot;@ id / mapview&amp;quot; android: layout_centerHorizontal = &amp;quot;true &amp;quot;/&amp;gt;&amp;lt;/ RelativeLayout&amp;gt;</span></pre></td></tr></table></div>

</p>
<p>  Implementation of the android Application, found that google maps can not be displayed, please know the cause of the friend told my, thank you. </p>

	Tags: <strong><a href="http://www.ucosoft.com/tag/android" title="android" rel="tag">android</a>, <a href="http://www.ucosoft.com/tag/developed" title="developed" rel="tag">developed</a>, <a href="http://www.ucosoft.com/tag/eclipse" title="eclipse" rel="tag">eclipse</a>, <a href="http://www.ucosoft.com/tag/mapview" title="mapview" rel="tag">mapview</a>, <a href="http://www.ucosoft.com/tag/study" title="study" rel="tag">study</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/eclipse-developed-android-mapview-study-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse developed Android, TableLayout (study 4)</title>
		<link>http://www.ucosoft.com/eclipse-developed-android-tablelayout-study-2.html</link>
		<comments>http://www.ucosoft.com/eclipse-developed-android-tablelayout-study-2.html#comments</comments>
		<pubDate>Thu, 17 Dec 2009 23:52:30 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[developed]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[tablelayout]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/uncategorized/eclipse-developed-android-tablelayout-study-2.html</guid>
		<description><![CDATA[Hello, TableLayout A TableLayout is a ViewGroup that will Lay child View elements into rows and columns. Start a new project / Activity called HelloTableLayout. Open the layout file. Make it like so: 1 &#38;lt;? xml version = &#38;quot;1.0&#38;quot; encoding = &#38;quot;utf-8&#38;quot;?&#38;gt; &#38;lt;TableLayout xmlns: android = &#38;quot;http://schemas.android.com/apk/res/android&#38;quot; android: layout_width = &#38;quot;fill_parent&#38;quot; android: layout_height = &#38;quot;fill_parent&#38;quot; [...]]]></description>
			<content:encoded><![CDATA[<h1>  Hello, TableLayout </h1>
<div>
<div class="jd-descr">
<p> A <code>TableLayout</code> is a ViewGroup that will Lay child View elements into rows and columns. </p>
<ol>
<li>  Start a new project / Activity called HelloTableLayout. </li>
<li>  Open the layout file. Make it like so:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;?</span> xml version <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #cc66cc;">1.0</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span> encoding <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>utf<span style="color: #339933;">-</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;?&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>TableLayout xmlns<span style="color: #339933;">:</span> android <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//schemas.android.com/apk/res/android&amp;quot; android: layout_width = &amp;quot;fill_parent&amp;quot; android: layout_height = &amp;quot;fill_parent&amp;quot; android: stretchColumns = &amp;quot;1&amp;quot;&amp;gt; &amp;lt;TableRow&amp;gt; &amp;lt;TextView android:layout_column=&amp;quot;1&amp;quot; android:text=&amp;quot;Open...&amp;quot; android:padding=&amp;quot;3dip&amp;quot; /&amp;gt; &amp;lt;TextView android: text = &amp;quot; Ctrl-O &amp;quot;android: gravity =&amp;quot; right &amp;quot;android: padding =&amp;quot; 3dip &amp;quot;/&amp;gt; &amp;lt;/ TableRow&amp;gt; &amp;lt;TableRow&amp;gt; &amp;lt;TextView android: layout_column =&amp;quot; 1 &amp;quot;android: text =&amp;quot; Save ... &amp;quot;android: padding = &amp;quot;3dip&amp;quot; /&amp;gt; &amp;lt;TextView android:text=&amp;quot;Ctrl-S&amp;quot; android:gravity=&amp;quot;right&amp;quot; android:padding=&amp;quot;3dip&amp;quot; /&amp;gt; &amp;lt;/ TableRow&amp;gt; &amp;lt;TableRow&amp;gt; &amp;lt;TextView android: layout_column = &amp;quot;1&amp;quot; android: text = &amp;quot;Save As ...&amp;quot; android: padding = &amp;quot;3dip&amp;quot; /&amp;gt; &amp;lt;TextView android:text=&amp;quot;Ctrl-Shift-S&amp;quot; android:gravity=&amp;quot;right&amp;quot; android:padding=&amp;quot;3dip&amp;quot; /&amp;gt; &amp;lt;/ TableRow &amp;gt; &amp;lt;View android:layout_height=&amp;quot;2dip&amp;quot; android:background=&amp;quot;#FF909090&amp;quot; /&amp;gt; &amp;lt;TableRow&amp;gt; &amp;lt;TextView android:text=&amp;quot;X&amp;quot; android:padding=&amp;quot;3dip&amp;quot; /&amp;gt; &amp;lt;TextView android: text = &amp;quot;Import. .. &amp;quot;android: padding =&amp;quot; 3dip &amp;quot;/&amp;gt; &amp;lt;/ TableRow&amp;gt; &amp;lt;TableRow&amp;gt; &amp;lt;TextView android:text=&amp;quot;X&amp;quot; android:padding=&amp;quot;3dip&amp;quot; /&amp;gt; &amp;lt;TextView android: text =&amp;quot; Export ... &amp;quot;android : padding = &amp;quot;3dip&amp;quot; /&amp;gt; &amp;lt;TextView android:text=&amp;quot;Ctrl-E&amp;quot; android:gravity=&amp;quot;right&amp;quot; android:padding=&amp;quot;3dip&amp;quot; /&amp;gt; &amp;lt;/ TableRow&amp;gt; &amp;lt;View android: layout_height = &amp;quot;2dip&amp;quot; android: background = &amp;quot;# FF909090&amp;quot; /&amp;gt; &amp;lt;TableRow&amp;gt; &amp;lt;TextView android:layout_column=&amp;quot;1&amp;quot; android:text=&amp;quot;Quit&amp;quot; android:padding=&amp;quot;3dip&amp;quot; /&amp;gt; &amp;lt;/ TableRow&amp;gt; &amp;lt;/ TableLayout&amp;gt;</span></pre></td></tr></table></div>

<p>  Notice How this resembles the structure of an HTML Table. <code>TableLayout</code> is like the <code>table</code> element; <code>TableRow</code> is like a <code>tr</code> element; but for our cells like the HTML <code>td</code> element, we can use any kind of View. Here, we use <code>TextView</code> for the cells. </p>
</li>
<li>  Make sure your Activity loads this layout in the <code>onCreate()</code> method:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <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;">&#40;</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><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>  <code>R.layout.main</code> refers to the <code>main.xml</code> layout file. </p>
</li>
<li>  Run it. </li>
</ol>
<p>  You should see the following: </p>
<p><img src="/images/a4f09f3d8bb6b82fc61491b306284d39.png" alt="" width="150" height="171" /></div>
</div>

	Tags: <strong><a href="http://www.ucosoft.com/tag/android" title="android" rel="tag">android</a>, <a href="http://www.ucosoft.com/tag/developed" title="developed" rel="tag">developed</a>, <a href="http://www.ucosoft.com/tag/eclipse" title="eclipse" rel="tag">eclipse</a>, <a href="http://www.ucosoft.com/tag/study" title="study" rel="tag">study</a>, <a href="http://www.ucosoft.com/tag/tablelayout" title="tablelayout" rel="tag">tablelayout</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/eclipse-developed-android-tablelayout-study-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse developed Android, Hello FormStuff (study 9)</title>
		<link>http://www.ucosoft.com/eclipse-developed-android-formstuff-study-2.html</link>
		<comments>http://www.ucosoft.com/eclipse-developed-android-formstuff-study-2.html#comments</comments>
		<pubDate>Thu, 17 Dec 2009 15:57:10 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[developed]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[formstuff]]></category>
		<category><![CDATA[study]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/uncategorized/eclipse-developed-android-formstuff-study-2.html</guid>
		<description><![CDATA[1 HelloFormStuff. Java code is as follows 1 package com.example.test; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.widget.CheckBox; import android.widget.EditText; import android.widget.ImageButton; import android.widget.RadioButton; import android.widget.Toast; import android.widget.ToggleButton; public class HelloFormStuff extends Activity &#40;/ ** Called when the activity is first created. * / @ Override public void onCreate &#40;Bundle savedInstanceState&#41; &#40;super.onCreate &#40;savedInstanceState&#41;; [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  HelloFormStuff. <span style="color: #006633;">Java</span> code is as follows</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.example.test</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.app.Activity</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.os.Bundle</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.view.KeyEvent</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.view.View</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.CheckBox</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.EditText</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.ImageButton</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.RadioButton</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.Toast</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.ToggleButton</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> HelloFormStuff <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span> <span style="color: #339933;">**</span> Called when the activity is first created. <span style="color: #339933;">*</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;">&#40;</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> <span style="color: #000000; font-weight: bold;">final</span> ImageButton button <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>ImageButton<span style="color: #009900;">&#41;</span> findViewById <span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">android_button</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> button.<span style="color: #006633;">setOnClickListener</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">View</span>.<span style="color: #006633;">OnClickListener</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onClick <span style="color: #009900;">&#40;</span><span style="color: #003399;">View</span> v<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span> <span style="color: #339933;">/</span> Perform action on clicks Toast.<span style="color: #006633;">makeText</span> <span style="color: #009900;">&#40;</span>HelloFormStuff.<span style="color: #000000; font-weight: bold;">this</span>, <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>Beep Bop<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</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: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">final</span> EditText edittext <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>EditText<span style="color: #009900;">&#41;</span> findViewById <span style="color: #009900;">&#40;</span>R. <span style="color: #006633;">id</span>.<span style="color: #006633;">edittext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> edittext.<span style="color: #006633;">setOnKeyListener</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">View</span>.<span style="color: #006633;">OnKeyListener</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> onKey <span style="color: #009900;">&#40;</span><span style="color: #003399;">View</span> v, <span style="color: #000066; font-weight: bold;">int</span> keyCode, <span style="color: #003399;">KeyEvent</span> event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>event.<span style="color: #006633;">getAction</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003399;">KeyEvent</span>.<span style="color: #006633;">ACTION_DOWN</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #009900;">&#40;</span>keyCode <span style="color: #339933;">==</span> <span style="color: #003399;">KeyEvent</span> . <span style="color: #006633;">KEYCODE_ENTER</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span> <span style="color: #339933;">/</span> Perform action on key press Toast.<span style="color: #006633;">makeText</span> <span style="color: #009900;">&#40;</span>HelloFormStuff.<span style="color: #000000; font-weight: bold;">this</span>, edittext.<span style="color: #006633;">getText</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</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: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">final</span> CheckBox checkbox <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>CheckBox<span style="color: #009900;">&#41;</span> findViewById <span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">checkbox</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> checkbox.<span style="color: #006633;">setOnClickListener</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">View</span>.<span style="color: #006633;">OnClickListener</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onClick <span style="color: #009900;">&#40;</span><span style="color: #003399;">View</span> v<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span> <span style="color: #339933;">/</span> Perform action on clicks <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>checkbox.<span style="color: #006633;">isChecked</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span>Toast.<span style="color: #006633;">makeText</span> <span style="color: #009900;">&#40;</span> HelloFormStuff.<span style="color: #000000; font-weight: bold;">this</span>, <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>Selected<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</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: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#40;</span>Toast.<span style="color: #006633;">makeText</span> <span style="color: #009900;">&#40;</span>HelloFormStuff.<span style="color: #000000; font-weight: bold;">this</span>, <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>Not selected<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</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: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #003399;">View</span>.<span style="color: #006633;">OnClickListener</span> radio_listener <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">View</span>.<span style="color: #006633;">OnClickListener</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onClick <span style="color: #009900;">&#40;</span><span style="color: #003399;">View</span> v<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span> <span style="color: #339933;">/</span> Perform action on clicks RadioButton rb <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>RadioButton<span style="color: #009900;">&#41;</span> v<span style="color: #339933;">;</span> Toast.<span style="color: #006633;">makeText</span> <span style="color: #009900;">&#40;</span>HelloFormStuff.<span style="color: #000000; font-weight: bold;">this</span>, rb.<span style="color: #006633;">getText</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</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: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">final</span> RadioButton radio_red <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>RadioButton<span style="color: #009900;">&#41;</span> findViewById <span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">radio_red</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">final</span> RadioButton radio_blue <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>RadioButton<span style="color: #009900;">&#41;</span> findViewById <span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">radio_blue</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> radio_red.<span style="color: #006633;">setOnClickListener</span> <span style="color: #009900;">&#40;</span>radio_listener<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> radio_blue.<span style="color: #006633;">setOnClickListener</span> <span style="color: #009900;">&#40;</span> radio_listener<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">final</span> ToggleButton togglebutton <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>ToggleButton<span style="color: #009900;">&#41;</span> findViewById <span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">togglebutton</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> togglebutton.<span style="color: #006633;">setOnClickListener</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">View</span>.<span style="color: #006633;">OnClickListener</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onClick <span style="color: #009900;">&#40;</span><span style="color: #003399;">View</span> v<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span> <span style="color: #339933;">/</span> Perform action on clicks <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>togglebutton.<span style="color: #006633;">isChecked</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span>Toast.<span style="color: #006633;">makeText</span> <span style="color: #009900;">&#40;</span>HelloFormStuff.<span style="color: #000000; font-weight: bold;">this</span>, <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>ON<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</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: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#40;</span>Toast.<span style="color: #006633;">makeText</span> <span style="color: #009900;">&#40;</span>HelloFormStuff.<span style="color: #000000; font-weight: bold;">this</span>, <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>OFF<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</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: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

</p>
<p>  layout-&gt; main.xml </p>
</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;?</span> xml version <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #cc66cc;">1.0</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span> encoding <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>utf<span style="color: #339933;">-</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;?&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>LinearLayout xmlns<span style="color: #339933;">:</span> android <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//schemas.android.com/apk/res/android&amp;quot; android: orientation = &amp;quot;vertical&amp;quot; android: layout_width = &amp;quot;fill_parent&amp;quot; android: layout_height = &amp;quot;fill_parent&amp;quot;&amp;gt; &amp;lt;ImageButton android: id = &amp;quot;@ + id / android_button&amp;quot; android: layout_width = &amp;quot;100dip&amp;quot; android: layout_height = &amp;quot;wrap_content&amp;quot; android: src = &amp;quot;@ drawable / android&amp;quot; / &amp;gt; &amp;lt;EditText android:id=&amp;quot;@+id/edittext&amp;quot; android:layout_width=&amp;quot;fill_parent&amp;quot; android:layout_height=&amp;quot;wrap_content&amp;quot;/&amp;gt; &amp;lt;CheckBox android: id = &amp;quot;@ + id / checkbox&amp;quot; android: layout_width = &amp;quot;wrap_content&amp;quot; android: layout_height = &amp;quot;wrap_content&amp;quot; android: text = &amp;quot;check it out&amp;quot; /&amp;gt; &amp;lt;RadioGroup android:layout_width=&amp;quot;fill_parent&amp;quot; android:layout_height=&amp;quot;wrap_content&amp;quot; android:orientation=&amp;quot;vertical&amp;quot;&amp;gt; &amp;lt;RadioButton android: id = &amp;quot;@ + id / radio_red &amp;quot;android: layout_width =&amp;quot; wrap_content &amp;quot;android: layout_height =&amp;quot; wrap_content &amp;quot;android: text =&amp;quot; Red &amp;quot;/&amp;gt; &amp;lt;RadioButton android: id =&amp;quot; @ + id / radio_blue &amp;quot;android: layout_width =&amp;quot; wrap_content &amp;quot;android: layout_height = &amp;quot;wrap_content&amp;quot; android: text = &amp;quot;Blue&amp;quot; /&amp;gt; &amp;lt;/ RadioGroup&amp;gt; &amp;lt;ToggleButton android:id=&amp;quot;@+id/togglebutton&amp;quot; android:layout_width=&amp;quot;wrap_content&amp;quot; android:layout_height=&amp;quot;wrap_content&amp;quot; /&amp;gt; &amp;lt;/ LinearLayout &amp;quot;</span></pre></td></tr></table></div>

</p>
<p>  run it as follows: </p>
<p><img src="/images/17560203d400e504d9308ef0bd1da114.png" alt="" /></p>

	Tags: <strong><a href="http://www.ucosoft.com/tag/android" title="android" rel="tag">android</a>, <a href="http://www.ucosoft.com/tag/developed" title="developed" rel="tag">developed</a>, <a href="http://www.ucosoft.com/tag/eclipse" title="eclipse" rel="tag">eclipse</a>, <a href="http://www.ucosoft.com/tag/formstuff" title="formstuff" rel="tag">formstuff</a>, <a href="http://www.ucosoft.com/tag/study" title="study" rel="tag">study</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/eclipse-developed-android-formstuff-study-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse developed Android, LinearLayout (study 2)</title>
		<link>http://www.ucosoft.com/eclipse-developed-android-linearlayout-study-2.html</link>
		<comments>http://www.ucosoft.com/eclipse-developed-android-linearlayout-study-2.html#comments</comments>
		<pubDate>Thu, 17 Dec 2009 09:59:38 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[developed]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[linearlayout]]></category>
		<category><![CDATA[study]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/uncategorized/eclipse-developed-android-linearlayout-study-2.html</guid>
		<description><![CDATA[A LinearLayout is a GroupView that will Lay child View elements vertically or horizontally. Start a new project / Activity called HelloLinearLayout. Open the layout file. Make it like so: 1 &#38;lt;? xml version = &#38;quot;1.0&#38;quot; encoding = &#38;quot;utf-8&#38;quot;?&#38;gt; &#38;lt;LinearLayout xmlns: android = &#38;quot;http://schemas.android.com/apk/res/android&#38;quot; android: orientation = &#38;quot;vertical&#38;quot; android: layout_width = &#38;quot;fill_parent&#38;quot; android: layout_height = [...]]]></description>
			<content:encoded><![CDATA[<p> A <code>LinearLayout</code> is a GroupView that will Lay child View elements vertically or horizontally. </p>
<ol>
<li>  Start a new project / Activity called HelloLinearLayout. </li>
<li>  Open the layout file. Make it like so:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;?</span> xml version <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #cc66cc;">1.0</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span> encoding <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>utf<span style="color: #339933;">-</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;?&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>LinearLayout xmlns<span style="color: #339933;">:</span> android <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//schemas.android.com/apk/res/android&amp;quot; android: orientation = &amp;quot;vertical&amp;quot; android: layout_width = &amp;quot;fill_parent&amp;quot; android: layout_height = &amp;quot;fill_parent&amp;quot;&amp;gt; &amp;lt;LinearLayoutandroid:orientation=&amp;quot;horizontal&amp;quot;android:layout_width=&amp;quot;fill_parent&amp;quot;android:layout_height=&amp;quot;fill_parent&amp;quot;android:layout_weight=&amp;quot;1&amp;quot;&amp;gt; &amp;lt;TextView android: text = &amp;quot;red &amp;quot;android: gravity =&amp;quot; center_horizontal &amp;quot;android: background =&amp;quot; # aa0000 &amp;quot;android: layout_width =&amp;quot; wrap_content &amp;quot;android: layout_height =&amp;quot; fill_parent &amp;quot;android: layout_weight =&amp;quot; 1 &amp;quot;/&amp;gt; &amp;lt;TextView android: text =&amp;quot; green &amp;quot;android: gravity = &amp;quot;center_horizontal&amp;quot; android: background = &amp;quot;# 00aa00&amp;quot; android: layout_width = &amp;quot;wrap_content&amp;quot; android: layout_height = &amp;quot;fill_parent&amp;quot; android: layout_weight = &amp;quot;1&amp;quot; /&amp;gt; &amp;lt;TextView android: text = &amp;quot;blue&amp;quot; android: gravity = &amp;quot; center_horizontal &amp;quot;android: background =&amp;quot; # 0000aa &amp;quot;android: layout_width =&amp;quot; wrap_content &amp;quot;android: layout_height =&amp;quot; fill_parent &amp;quot;android: layout_weight =&amp;quot; 1 &amp;quot;/&amp;gt; &amp;lt;TextView android: text =&amp;quot; yellow &amp;quot;android: gravity =&amp;quot; center_horizontal &amp;quot;android : background = &amp;quot;# aaaa00&amp;quot; android: layout_width = &amp;quot;wrap_content&amp;quot; android: layout_height = &amp;quot;fill_parent&amp;quot; android: layout_weight = &amp;quot;1&amp;quot; /&amp;gt; &amp;lt;/ LinearLayout&amp;gt; &amp;lt;LinearLayoutandroid: orientation = &amp;quot;vertical&amp;quot; android: layout_width = &amp;quot;fill_parent&amp;quot; android : layout_height = &amp;quot;fill_parent&amp;quot; android: layout_weight = &amp;quot;1&amp;quot;&amp;gt; &amp;lt;TextView android: text = &amp;quot;row one&amp;quot; android: textSize = &amp;quot;15pt&amp;quot; android: layout_width = &amp;quot;fill_parent&amp;quot; android: layout_height = &amp;quot;wrap_content&amp;quot; android: layout_weight = &amp;quot; 1 &amp;quot;/&amp;gt; &amp;lt;TextView android:text=&amp;quot;row two&amp;quot; android:textSize=&amp;quot;15pt&amp;quot; android:layout_width=&amp;quot;fill_parent&amp;quot; android:layout_height=&amp;quot;wrap_content&amp;quot; android:layout_weight=&amp;quot;1&amp;quot;/&amp;gt; &amp;lt;TextView android: text = &amp;quot;row three&amp;quot; android: textSize = &amp;quot;15pt&amp;quot; android: layout_width = &amp;quot;fill_parent&amp;quot; android: layout_height = &amp;quot;wrap_content&amp;quot; android: layout_weight = &amp;quot;1&amp;quot; /&amp;gt; &amp;lt;TextView android: text = &amp;quot;row four&amp;quot; android: textSize = &amp;quot;15pt &amp;quot;android: layout_width =&amp;quot; fill_parent &amp;quot;android: layout_height =&amp;quot; wrap_content &amp;quot;android: layout_weight =&amp;quot; 1 &amp;quot;/&amp;gt; &amp;lt;/ LinearLayout&amp;gt; &amp;lt;/ LinearLayout&amp;gt;</span></pre></td></tr></table></div>

<p>  Carefully inspect the XML. You&#39;ll notice how this layout works a lot like an HTML layout. There is one parent LinearLayout that is defined to lay its child elements vertically. The first child is another LinearLayout that uses a horizontal layout and the second uses a Vertical layout. Each LinearLayout contains several <code>TextView</code> elements. </p>
</li>
<li>  Now Open the HelloLinearLayout Activity and be sure it loads this layout in the <code>onCreate()</code> method:
</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <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;">&#40;</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><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>  <code>R.layout.main</code> refers to the <code>main.xml</code> layout file. </p>
</li>
<li>  Run it. </li>
</ol>
<p>  You should see the following: </p>
<p><img src="/images/78abd225bfab40fbcfb4b126e487d10e.png" alt="" /></p>
</p>
<p>  Link Address: http://androidappdocs.appspot.com/guide/tutorials/views/hello-linearlayout.html </p>
</p>
<p>  Note: LinearLayout is the line of the layout, orientation = &quot;horizontal&quot;: horizontally; orientation = &quot;vertical&quot;: vertical alignment </p>
</p>
<p>  To understand: the concept of the layout is similar to the framework, if the custom layout style, then any component inside, all will be arranged in the style.  For example: horizontally, then the </p>
</p>
<p>  Component will be placed side by side a line at a certain level.  (Personal understanding) </p>
</p>
</p>
</p>
</p>
</p>
</p>
</p>
</p>
</p>
</p></p>

	Tags: <strong><a href="http://www.ucosoft.com/tag/android" title="android" rel="tag">android</a>, <a href="http://www.ucosoft.com/tag/developed" title="developed" rel="tag">developed</a>, <a href="http://www.ucosoft.com/tag/eclipse" title="eclipse" rel="tag">eclipse</a>, <a href="http://www.ucosoft.com/tag/linearlayout" title="linearlayout" rel="tag">linearlayout</a>, <a href="http://www.ucosoft.com/tag/study" title="study" rel="tag">study</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/eclipse-developed-android-linearlayout-study-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse Development Android, the first one HelloWord program (study 1)</title>
		<link>http://www.ucosoft.com/eclipse-development-android-helloword-program-2.html</link>
		<comments>http://www.ucosoft.com/eclipse-development-android-helloword-program-2.html#comments</comments>
		<pubDate>Thu, 17 Dec 2009 07:27:54 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[helloword]]></category>
		<category><![CDATA[Program]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/uncategorized/eclipse-development-android-helloword-program-2.html</guid>
		<description><![CDATA[Glossary: SDK: Software Development Kit AVD: Android Virtual Devices ADT: Android Development Tools 1. Installing Android SDK Download windows android sdk link: http://androidappdocs.appspot.com/sdk/download.html?v=android-sdk_r3-windows.zip Details Address: http://androidappdocs.appspot.com/sdk/index.html Note: I downloaded to D: Android 2. Installing the ADT Plugin Eclipse -&#62; Help&#62; Software Updates &#8230;. In the dialog that appears, click the Available Software tab. Click Add [...]]]></description>
			<content:encoded><![CDATA[</p>
<p>  Glossary: </p>
<p><strong></strong></p>
<p>  <strong>SDK:</strong> Software Development Kit </p>
<p>  <strong>AVD:</strong> Android Virtual Devices </p>
<p>  <strong>ADT:</strong> Android Development Tools </p>
</p>
<p>  1. Installing Android SDK </p>
</p>
<p>  Download windows android sdk link: http://androidappdocs.appspot.com/sdk/download.html?v=android-sdk_r3-windows.zip </p>
</p>
<p>  Details Address: http://androidappdocs.appspot.com/sdk/index.html </p>
</p>
<p>  Note: I downloaded to D:  Android  </p>
</p>
<p>  2. Installing the ADT Plugin </p>
<ol>
<li>  <strong>Eclipse -&gt; Help&gt; Software Updates &#8230;.</strong> In the dialog that appears, click the <strong>Available Software</strong> tab. </li>
<li>  Click <strong>Add Site &#8230;</strong> url https: / / dl-ssl.google.com/android/eclipse </li>
<li>  Set Windows-&gt; Preferences-&gt; Android-&gt; SDK Location set path &quot;D:  Android  android-sdk_r3-windows  android-sdk-windows&quot; </li>
<li>  <strong>Window-&gt; Android SDK and Android Manager -&gt; Installed Packages Choose Update All button, download SDK package, otherwise it is impossible to run projects.</strong> </li>
<li>  Creating an AVD: <strong>Eclipse-&gt;</strong> Window-&gt; <strong>Android SDK and Android Manager -&gt; Virtual Devices Select New button to create an AVD, note that SD Card for at least more than 8M.</strong> </li>
</ol>
<p>     Details Address: http://androidappdocs.appspot.com/sdk/eclipse-adt.html # installing </p>
</p>
<p>  3. Creating an Android Project </p>
</p>
<div>  Eclipse create project </div>

	Tags: <strong><a href="http://www.ucosoft.com/tag/android" title="android" rel="tag">android</a>, <a href="http://www.ucosoft.com/tag/development" title="development" rel="tag">development</a>, <a href="http://www.ucosoft.com/tag/eclipse" title="eclipse" rel="tag">eclipse</a>, <a href="http://www.ucosoft.com/tag/helloword" title="helloword" rel="tag">helloword</a>, <a href="http://www.ucosoft.com/tag/program" title="Program" rel="tag">Program</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/eclipse-development-android-helloword-program-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse developed Android, Hello Spinner (Study 10)</title>
		<link>http://www.ucosoft.com/eclipse-developed-android-spinner-study.html</link>
		<comments>http://www.ucosoft.com/eclipse-developed-android-spinner-study.html#comments</comments>
		<pubDate>Thu, 10 Dec 2009 00:19:32 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[developed]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[spinner]]></category>
		<category><![CDATA[study]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/uncategorized/eclipse-developed-android-spinner-study.html</guid>
		<description><![CDATA[HelloSpinner.java Source 1 package com.example.test; import android.app.Activity; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.Spinner; public class HelloSpinner extends Activity &#40;@ Overridepublic void onCreate &#40;Bundle savedInstanceState&#41; &#40; super.onCreate &#40;savedInstanceState&#41;; setContentView &#40;R.layout.main&#41;; Spinner s = &#40;Spinner&#41; findViewById &#40;R.id.spinner&#41;; ArrayAdapter adapter = ArrayAdapter.createFromResource &#40;this, R.array.planets, android.R. layout.simple_spinner_item&#41;; adapter.setDropDownViewResource &#40;android.R.layout.simple_spinner_dropdown_item&#41;; s.setAdapter &#40;adapter&#41;;&#41;&#41; layout-&#62; main.xml 1 &#38;lt;? xml version = &#38;quot;1.0&#38;quot; [...]]]></description>
			<content:encoded><![CDATA[<p>  HelloSpinner.java Source </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.example.test</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.app.Activity</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.os.Bundle</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.ArrayAdapter</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.Spinner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> HelloSpinner <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #009900;">&#40;</span>@ Overridepublic <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;">&#40;</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> 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;">spinner</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> ArrayAdapter adapter <span style="color: #339933;">=</span> ArrayAdapter.<span style="color: #006633;">createFromResource</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>, R.<span style="color: #006633;">array</span>.<span style="color: #006633;">planets</span>, android.<span style="color: #006633;">R</span>. <span style="color: #006633;">layout</span>.<span style="color: #006633;">simple_spinner_item</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> adapter.<span style="color: #006633;">setDropDownViewResource</span> <span style="color: #009900;">&#40;</span>android.<span style="color: #006633;">R</span>.<span style="color: #006633;">layout</span>.<span style="color: #006633;">simple_spinner_dropdown_item</span><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;">&#41;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>  layout-&gt; main.xml </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;?</span> xml version <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #cc66cc;">1.0</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span> encoding <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>utf<span style="color: #339933;">-</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;?&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>LinearLayout xmlns<span style="color: #339933;">:</span> android <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//schemas.android.com/apk/res/android&amp;quot; android: orientation = &amp;quot;vertical&amp;quot; android: padding = &amp;quot;10dip&amp;quot; android: layout_width = &amp;quot;fill_parent&amp;quot; android: layout_height = &amp;quot;wrap_content&amp;quot;&amp;gt; &amp;lt;TextView android: layout_width = &amp;quot;fill_parent&amp;quot; android: layout_height = &amp;quot;wrap_content&amp;quot; android: layout_marginTop = &amp;quot;10dip&amp;quot; android: text = &amp;quot;Please select a planet: &amp;quot;/&amp;gt; &amp;lt;Spinner android: id =&amp;quot; @ + id / spinner &amp;quot;android: layout_width =&amp;quot; fill_parent &amp;quot;android: layout_height =&amp;quot; wrap_content &amp;quot;android: drawSelectorOnTop =&amp;quot; true &amp;quot;android: prompt =&amp;quot; @ string / planet_prompt &amp;quot;/ &amp;gt; &amp;lt;/ LinearLayout&amp;gt;</span></pre></td></tr></table></div>

<p>  values-&gt; arrays.xml </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>resources<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>string<span style="color: #339933;">-</span>array name<span style="color: #339933;">=&amp;</span>quot<span style="color: #339933;">;</span>planets<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Mercury <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Venus <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Earth <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Mars <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Jupiter <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #339933;">/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Saturn <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Uranus <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> Neptune <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> item<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> string<span style="color: #339933;">-</span>array<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> resources<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>  value-&gt; strings.xml </p>
</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;?</span> xml version <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #cc66cc;">1.0</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span> encoding <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>utf<span style="color: #339933;">-</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;?&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>resources<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>string name<span style="color: #339933;">=&amp;</span>quot<span style="color: #339933;">;</span>hello<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span> Hello World, HelloSpinner<span style="color: #339933;">!</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> string<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>string name<span style="color: #339933;">=&amp;</span>quot<span style="color: #339933;">;</span>app_name<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span> HelloSpinner <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> string<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>string name<span style="color: #339933;">=&amp;</span>quot<span style="color: #339933;">;</span>planet_prompt<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span> Choose a planet <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> string<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span> resources<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span></pre></td></tr></table></div>

</p>
<p>  run it <img src="/images/2a6d1cb47d7db3e832cd4b13bd065d1c.png" alt="" /></p></p>

	Tags: <strong><a href="http://www.ucosoft.com/tag/android" title="android" rel="tag">android</a>, <a href="http://www.ucosoft.com/tag/developed" title="developed" rel="tag">developed</a>, <a href="http://www.ucosoft.com/tag/eclipse" title="eclipse" rel="tag">eclipse</a>, <a href="http://www.ucosoft.com/tag/spinner" title="spinner" rel="tag">spinner</a>, <a href="http://www.ucosoft.com/tag/study" title="study" rel="tag">study</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/eclipse-developed-android-spinner-study.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

