Re: [android-developers] Button Bar

2009-12-09 Thread Julian Chu
Hi,

A Button is a Clickable-Image.

If I were you, I would draw 4 images and use ImageButton to apply those
images.

The four images are: the leftest, middle, rightest.
the last image is for situation "Only one button at the bar".

-Ju1ian

On Thu, Dec 10, 2009 at 1:56 AM, Wouter  wrote:

> Hey,
>
> I'm developping an Android application for a TV Guide for the
> Netherlands and Belgium.
> I do this for a company who already has an iphone application for this
> and I have to make the look the most as possible the same.
>
> My question is how do I make something like this?
>
> http://snapplr.com/q6cx
>
> So 2 buttons next to each other but the middle has no rounded corners!
> Do I have to get the source of Button from the android source and
> adapt it myself? or how can I do this?
>
> Thanks,
>
> Wouter
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Julian Chu.  a.k.a. WalkingIce -- 會走路的冰塊
http://walkingice.twbbs.org  只放拖鞋的鞋櫃

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to build a project in Android sources seperately?

2009-11-18 Thread Julian Chu
Hi,

Did you build the android tree first?
although it spends time but pretty easy.

http://source.android.com/download

All you have to do is follow the webpage and cross your finger
If there is no commit break your building, you will get everything you need.

of course, including acp
$ which acp
/home/walkingice/code/zeroxdroid/out/host/linux-x86/bin/acp

If you take a look of the Android.mk, you will find the file was written for
Android building system.
the android building system is under "build" directory of source code tree.

That is the only one and easier way I know to build the native library : get
the tree and build everything.
(Maybe there is another way...but I don't know  :P )

Cheers,

-Ju1ian

2009/11/18 3pei <333...@gmail.com>

> seems i need build the host tool acp , but it has a dependence of
> libhost, and libhost has a dependence of acp, tooo.
>
> how can i resolve this....
>
> On Nov 17, 11:40 am, Julian Chu  wrote:
> > checkout the android source tree, build from scratch
> > once you want to build it
> >
> > $cd /where/is/the/tree
> > $source build/envsetup.sh
> > $export TOP=`pwd`
> > $cd external/zlib
> > $mm
> >
> > -ju1ian
> >
> >
> >
> > On Tue, Nov 17, 2009 at 6:01 AM, 3pei <333...@gmail.com> wrote:
> > > for example, when i use
> >
> > > make external/zlib/android.mk
> >
> > > it tells me 'Nothing to be done for external/zlib/android.mk'
> >
> > > what should i do?
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> 
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Julian Chu.  a.k.a. WalkingIce -- 會走路的冰塊http://walkingice.twbbs.org只放拖鞋的鞋櫃
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Julian Chu.  a.k.a. WalkingIce -- 會走路的冰塊
http://walkingice.twbbs.org  只放拖鞋的鞋櫃

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Is status bar an activity?

2009-11-18 Thread Julian Chu
Home screen is just an application with some special tag in its
AndroidManifest.xml
With the tag, the application will be regarded as a Launcher.

StatusBar is a part of framework but not part of Home Screen.

Therefore, you could create an application and it do nothing but show an
image on screen.
Set it as a Launcher, restart zygote. Then you get a useless Home screen.

You can still see the Status Bar stands there and smiles to you.

-Ju1ian

On Wed, Nov 18, 2009 at 11:30 PM, pink 444  wrote:

> Does it mean that any activity other than home screen are not fully
> window occupied activities.Because status bar is belong to
>
> home screen ,it can be seen by user from any activity.That is nothing
> new activities are partially occupying the window.
>
> And one more doubt is can we update any activity's widgets status even
> though that activity is not running.
>
>
-- 
Julian Chu.  a.k.a. WalkingIce -- 會走路的冰塊
http://walkingice.twbbs.org  只放拖鞋的鞋櫃

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to build a project in Android sources seperately?

2009-11-17 Thread Julian Chu
checkout the android source tree, build from scratch
once you want to build it

$cd /where/is/the/tree
$source build/envsetup.sh
$export TOP=`pwd`
$cd external/zlib
$mm

-ju1ian

On Tue, Nov 17, 2009 at 6:01 AM, 3pei <333...@gmail.com> wrote:

> for example, when i use
>
> make external/zlib/android.mk
>
> it tells me 'Nothing to be done for external/zlib/android.mk'
>
> what should i do?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Julian Chu.  a.k.a. WalkingIce -- 會走路的冰塊
http://walkingice.twbbs.org  只放拖鞋的鞋櫃

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to handle widget's "Long Click" event on home screen?

2009-08-19 Thread Julian Chu
The code is in Launcher.java


1526 public boolean onLongClick(View v) {
1527 if (mDesktopLocked) {
1528 return false;
1529 }
1530
1531 if (!(v instanceof CellLayout)) {
1532 v = (View) v.getParent();
1533 }
1534   ...(skip)

-Ju1ian

On Wed, Aug 19, 2009 at 4:58 PM, Jimmy Huang  wrote:

>
> Anyone know this ? Thanks
>
> On Aug 10, 3:20 pm, Jimmy Huang  wrote:
> > Thanks for your quick reply.
> > But if I develop one myself's Home, then I can define the Long press
> > event on myself widget on Home?
> >
> > Thanks,
> > Jimmy
> >
> > On Aug 10, 3:01 pm, Romain Guy  wrote:
> >
> >
> >
> > > You cannot do this. Long press on Home is reserved to drag and drop.
>
-- 
Julian Chu.  a.k.a. WalkingIce -- 會走路的冰塊
http://walkingice.twbbs.org  只放拖鞋的鞋櫃

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---