Android基本的Layout屬性很多,其中最常看到的是UI元素長寬之fill_parent與wrap_content,但有時還是搞不懂是UI元素的屬性,還是元素中文字的屬性。以android:layout_gravity與android:gravity來看,有加layout是指元素本身相對於它的父元素而言,它顯示的位置:
android:layout_gravity="left"
2011年5月26日
2011年5月22日
【Blogger】Use SyntaxHighlighter for Blogger
想要讓Source Code快速且美觀地呈現在Blogger上,就非「SyntaxHighlighter」莫屬了,去官網發現已經更新到 3.083了,裡面也有詳細說明SyntaxHightlighter安裝的步驟,一般都而言都是先下載套件,再上傳到WebSite上,但Blogger使用者有福了,SyntaxHighlighter有「Blogger教學手冊」並提供Link可以直接用,省去下載&上傳的步驟。
- Go to Blogger Dashboard > Design > Edit HTML.
- Press CTRL+F to find the code
- Copy the below code
標籤:
Blogger
2011年5月11日
2011年4月28日
【Android】A notice about AndroidManifest.xml
Any tag in AndroidManifest.xml should be lowercase!
<service android:name = ".counterService"
android.enabled = "true">
</service>
標籤:
Android
【Android】Android Emulater can't be started
After not normally closing Eclipse & AVD, I restart Eclipse & AVD then got an emulator error "emulator: ERROR: the user data image is used by another emulator. aborting".
Survey some solutions:
Survey some solutions:
- Use "adb kill-server && adb-restart-server" (Not work)
- Delete C:\Documents and Settings\@USER@\.android\avd .lock files (Work)
標籤:
Android
2011年4月26日
【Android】Android Debug certificate expired
I just Run first Project then get a error: Debug Certificate expired on 2010/12/14 下午 2:13
- Q:After installation, the android SDK wil generate a "Debug" signing certificate in a keystore called debug.keystore. The Eclipse plug-in uses this certificate to sign each application build that is generated. But, a debug certicate is onle valid for 365 days. To generate a new one you must delete the existing debug.keystore file. Its location is platform dependent - you can find it in Preferences - Android - Build - Default debug keystore.
標籤:
Android
訂閱:
文章 (Atom)



