<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5894166592108952616</id><updated>2011-12-09T02:36:20.821-08:00</updated><category term='dimention'/><category term='marquee'/><category term='hint'/><category term='android'/><category term='android SDK TextView Marquee'/><category term='mine'/><category term='gravity'/><category term='GitWeb'/><category term='game'/><category term='density-independent pixel'/><category term='Source Code'/><category term='android layout layout_weight'/><title type='text'>Bear Polka</title><subtitle type='html'>Here's a Chinese bear who is working on information technology for both fun and life.
He's interested in Android, Mozilla, ZK and so on.
Here's a blogger to share his ideas and technical tricks.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bear-polka.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://bear-polka.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>xiongzh</name><uri>http://www.blogger.com/profile/08881783865359525648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_YhxSdn3aBP0/SWw_hcT_d5I/AAAAAAAABxg/mITYK48jiBE/S220/bear.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5894166592108952616.post-5333796596808375860</id><published>2010-01-17T04:43:00.000-08:00</published><updated>2010-01-17T04:54:57.305-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hint'/><category scheme='http://www.blogger.com/atom/ns#' term='gravity'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Work around for an Android 2.0 bug - gravity=right make EditText hint disppears</title><summary type='text'>At lease in Vista/Android2.0/Simulator, the hint text you set for an EditText will disppear unexpected if you set the gravity=right at the same time.I searched on the web and found no solution for it. But some guys thought it's a bug of Android 1.5+.I tried and found that if the following attribute set at the same time, the hint will come back.my_edit_text.setSingleLine(false);But android:</summary><link rel='replies' type='application/atom+xml' href='http://bear-polka.blogspot.com/feeds/5333796596808375860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bear-polka.blogspot.com/2010/01/work-around-for-android-20-bug.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/5333796596808375860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/5333796596808375860'/><link rel='alternate' type='text/html' href='http://bear-polka.blogspot.com/2010/01/work-around-for-android-20-bug.html' title='Work around for an Android 2.0 bug - gravity=right make EditText hint disppears'/><author><name>xiongzh</name><uri>http://www.blogger.com/profile/08881783865359525648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_YhxSdn3aBP0/SWw_hcT_d5I/AAAAAAAABxg/mITYK48jiBE/S220/bear.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5894166592108952616.post-53779916647013204</id><published>2009-10-26T07:06:00.000-07:00</published><updated>2009-10-30T00:17:16.694-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='android layout layout_weight'/><title type='text'>Layout trick: use layout_weight to strech the view to fill up the screen</title><summary type='text'>My intent was to put a ListView in the top of the screen, 2 buttons in the bottom of the screen.I hope the 2 buttons could stay put at the bottom, no matter whether List was too short to fill the space left, or too long to have to be scrolled.The trick was to use layout_weight="1" for the ListView.&lt;linearlayout android="http://schemas.android.com/apk/res/android" layout_width="fill_parent" </summary><link rel='replies' type='application/atom+xml' href='http://bear-polka.blogspot.com/feeds/53779916647013204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bear-polka.blogspot.com/2009/10/layout-trick-use-layoutweight-to-strech.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/53779916647013204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/53779916647013204'/><link rel='alternate' type='text/html' href='http://bear-polka.blogspot.com/2009/10/layout-trick-use-layoutweight-to-strech.html' title='Layout trick: use layout_weight to strech the view to fill up the screen'/><author><name>xiongzh</name><uri>http://www.blogger.com/profile/08881783865359525648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_YhxSdn3aBP0/SWw_hcT_d5I/AAAAAAAABxg/mITYK48jiBE/S220/bear.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5894166592108952616.post-1455235034114791562</id><published>2009-03-18T22:26:00.001-07:00</published><updated>2009-03-18T23:25:45.217-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='marquee'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Marquee feature of TextView in Android 1.1R1</title><summary type='text'>In the newest release, Android 1.1 R1,  android.widget.TextView begins to support marquee feature.It provides a value, marquee, for android:ellipsize, and a new attribute, android:marqueeRepeatLimit.However you could not make the TextView scrolling if you only set these 2 attributes.According to my testing, at least the following 3 attributes shall be set:    android:ellipsize="marquee"    </summary><link rel='replies' type='application/atom+xml' href='http://bear-polka.blogspot.com/feeds/1455235034114791562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bear-polka.blogspot.com/2009/03/marquee-feature-of-textview-in-android.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/1455235034114791562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/1455235034114791562'/><link rel='alternate' type='text/html' href='http://bear-polka.blogspot.com/2009/03/marquee-feature-of-textview-in-android.html' title='Marquee feature of TextView in Android 1.1R1'/><author><name>FBear</name><uri>http://www.blogger.com/profile/03979151626570994540</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5894166592108952616.post-5587474891620817947</id><published>2009-03-11T07:36:00.000-07:00</published><updated>2009-03-11T08:09:48.796-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GitWeb'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='Source Code'/><title type='text'>Browse Android Java source codes online</title><summary type='text'>Sometimes, it's necessary for developer to check the implementation of an API when the SDK documentation is not enough for understanding.However, Android source codes are approximately 2.1G in size. It's not handy to download and browse them in local PC.Fortunately, source.android.com supports GitWeb for web browsing of the source codes though it's not intuitive to find out which git ball the </summary><link rel='replies' type='application/atom+xml' href='http://bear-polka.blogspot.com/feeds/5587474891620817947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bear-polka.blogspot.com/2009/03/sometimes-its-necessary-for-developer.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/5587474891620817947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/5587474891620817947'/><link rel='alternate' type='text/html' href='http://bear-polka.blogspot.com/2009/03/sometimes-its-necessary-for-developer.html' title='Browse Android Java source codes online'/><author><name>FBear</name><uri>http://www.blogger.com/profile/03979151626570994540</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5894166592108952616.post-1642796487257852993</id><published>2009-03-04T05:13:00.000-08:00</published><updated>2009-03-04T19:27:08.493-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mine'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='game'/><title type='text'>Technical Key Points of Androidmine Project</title><summary type='text'>Here are the techincal key points I learned from the open source project, androidmine.Its current version is 0.7.1. Customize the activity theme (window without title)AndroidManifest.xml        &lt;activity android:name=".Main"  android:theme="@style/Theme.Game"&gt;...res/values/styles.xml    &lt;style name="Theme.Game"&gt;       &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;   &lt;/style&gt;2. Set the conent view</summary><link rel='replies' type='application/atom+xml' href='http://bear-polka.blogspot.com/feeds/1642796487257852993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bear-polka.blogspot.com/2009/03/technical-key-points-of-androidmine.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/1642796487257852993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/1642796487257852993'/><link rel='alternate' type='text/html' href='http://bear-polka.blogspot.com/2009/03/technical-key-points-of-androidmine.html' title='Technical Key Points of Androidmine Project'/><author><name>FBear</name><uri>http://www.blogger.com/profile/03979151626570994540</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5894166592108952616.post-7403247485977145396</id><published>2009-02-28T06:21:00.000-08:00</published><updated>2009-03-11T08:21:47.701-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='density-independent pixel'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='dimention'/><title type='text'>Dimension Values of Android API</title><summary type='text'>The document of Android API 1.0 rc2You can create common dimensions to use for various screen elements by defining dimension values in XML. A dimension resource is a number followed by a unit of measurement. For example: 10px, 2in, 5sp. Here are the units of measurement supported by Android:px  Pixels - corresponds to actual pixels on the screen.in  Inches - based on the physical size of the </summary><link rel='replies' type='application/atom+xml' href='http://bear-polka.blogspot.com/feeds/7403247485977145396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bear-polka.blogspot.com/2009/02/dimension-values-of-android-api.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/7403247485977145396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/7403247485977145396'/><link rel='alternate' type='text/html' href='http://bear-polka.blogspot.com/2009/02/dimension-values-of-android-api.html' title='Dimension Values of Android API'/><author><name>xiongzh</name><uri>http://www.blogger.com/profile/08881783865359525648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_YhxSdn3aBP0/SWw_hcT_d5I/AAAAAAAABxg/mITYK48jiBE/S220/bear.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5894166592108952616.post-4039044563852112885</id><published>2009-01-12T23:24:00.000-08:00</published><updated>2009-01-13T00:06:50.921-08:00</updated><title type='text'>find out the version of ksh/dtksh in Solaris</title><summary type='text'>It took me quite some minutes to find out in Google how to find out the versions of ksh and dtksh in Solaris.1. Start a shell   $ ksh   or   $ dtksh2. Enter vi mod   $ set -o vi   Note: The option is letter 'o' , not number zero "0".3. Press ESC to enter command mode4. Press Ctrl-VHere are outputs in Solaris 8 &amp; 9$ Version M-11/16/88$ Version M-12/28/93</summary><link rel='replies' type='application/atom+xml' href='http://bear-polka.blogspot.com/feeds/4039044563852112885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bear-polka.blogspot.com/2009/01/find-out-version-of-kshdtksh-in-solaris.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/4039044563852112885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/4039044563852112885'/><link rel='alternate' type='text/html' href='http://bear-polka.blogspot.com/2009/01/find-out-version-of-kshdtksh-in-solaris.html' title='find out the version of ksh/dtksh in Solaris'/><author><name>xiongzh</name><uri>http://www.blogger.com/profile/08881783865359525648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_YhxSdn3aBP0/SWw_hcT_d5I/AAAAAAAABxg/mITYK48jiBE/S220/bear.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5894166592108952616.post-6504953393658100600</id><published>2009-01-06T21:55:00.000-08:00</published><updated>2010-05-17T23:22:13.675-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='android SDK TextView Marquee'/><title type='text'>ScrollTextView - scrolling TextView for Android</title><summary type='text'>I wrote a class derived from Android.Widget.TextView to customize a TextView which text can be scrolled.The derived class, named ScrollTextView, provides an effect just like the HTML marquee tag.Moreover, the scrolling can be restarted, paused and resumed.Here are the source codes.The key points are:setHorizontallyScrolling() and use android.widget.Scroller to make the text scroll;Use the </summary><link rel='replies' type='application/atom+xml' href='http://bear-polka.blogspot.com/feeds/6504953393658100600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bear-polka.blogspot.com/2009/01/scrolltextview-scrolling-textview-for.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/6504953393658100600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5894166592108952616/posts/default/6504953393658100600'/><link rel='alternate' type='text/html' href='http://bear-polka.blogspot.com/2009/01/scrolltextview-scrolling-textview-for.html' title='ScrollTextView - scrolling TextView for Android'/><author><name>xiongzh</name><uri>http://www.blogger.com/profile/08881783865359525648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_YhxSdn3aBP0/SWw_hcT_d5I/AAAAAAAABxg/mITYK48jiBE/S220/bear.png'/></author><thr:total>10</thr:total></entry></feed>
