2010年12月6日 星期一

修正TabWidget無法顯示問題

TabWidget在eclipse/ADT中,始終無法正確顯示UI, 有討論串討論修正TabWidget無法顯示問題
http://code.google.com/p/android/issues/detail?id=2021


To applied this fix you have to build AOSP SDK and ADT plugin with changes.
You could try something like the following:
1) download android source

$ mkdir mydroid
$ cd mydroid 
$ repo init -u git://android.git.kernel.org/platform/manifest.git
$ repo sync

2) apply changes

$ repo download platform/frameworks/base 19189/2
$ repo download platform/sdk 19190/2

3) build SDK

$ . ./build/envsetup.sh
$ lunch sdk-eng
$ make -j4 sdk

You will get AOSP SDK in ./out/host/linux-x86/sdk/android-sdk_eng.snpe_linux-x86.zip
Unpack it in some directory.

4) build ADT

$ mkdir ~/adt-destionation
$ cd /sdk
 is mydroid
$ export ECLIPSE_HOME=
$ ./eclipse/scripts/build_server.sh ~/adt-destionation
You will get ADT plugins and features in ~/adt-destionation (zip archive).
$ cd $ECLIPSE_HOME/dropins
$ mkdir adt
$ cd adt
$ mkdir eclipse
$ cd eclipse
$ mkdir features plugins
Unpack ADT zip - plugin's jar in the $ECLIPSE_HOME/dropins/adt/eclipse/plugins directory, ADT features in the $ECLIPSE_HOME/dropins/adt/eclipse/features directory.

- restart Eclipse. 
- set Android AOSP using Window>Preferences>Android
- import attached HelloTabWidget project and open res/layout/main.xml.

沒有留言:

張貼留言