星期五去參加 google admob 合作夥伴日,
聽到了Action Bar 這私Object,
可以解決 android 最討人驗的 mutli-screen 問題。
但台灣,
居然沒有人寫教學,
只好來開頭槍了。
but Action Bar 是從 android 3.2 開始支援,
第一個問題就是
2.3.3-2.3.7 才是目前android主力,倒~
不過有
http://actionbarsherlock.com/index.html
這個套件,
但是bug還很多,
也不是官方的.....
下載完成
置入後,
跟本就不能 working...
http://stackoverflow.com/questions/11274599/actionbarsherlock-not-working
不過我還是弄出來了,
1.解壓後,連library加範例有6個專案
2.置入至workspace後,產生error
3.將範例改 properties => Java Complier => 用1.6版
4.clean,應該就可以run demo了
參考:
Make sure you have ADT 16.0.1 and are using the JDK 1.6 compiler level. That should solve the import and override errors, respectively.
https://groups.google.com/forum/#!topic/actionbarsherlock/4RcYSvW3D3g
Having same issue importing project into eclipse in Linux and Mac. I am sure the project is perfectly fine, I downloaded using git and zip still same problem.
However I have found a workaround.
- Add project to Eclipse by going to File >> New Project >> Android Project
- Select existing project from existing source, continue and hit Finish.
- You will get errors, missing Manifest and more ...
- Now go to File >> Import and select import existing file system
- Select the same folder from step 1. Make sure your "into folder" is from Step 1
- Tick overwrite all files.
- That is it .... Thanks :P
沒有留言:
張貼留言