[android-developers] How to implement the type-to-search UI as in the built-in contacts app

2010-05-17 Thread Kaka
In the built-in Contacts app, when you press a key to input a character in the contact list view, it will show a transparent and floating dialog about what you input. It will also filter the underlying contacts using the keyword you input. This is quite different with using quick search box. How to

[android-developers] How to implement the type-to-search UI like the Contacts App used

2010-05-14 Thread Kaka
Hi, all In the built-in Contacts app, if it's the view of contact list, when you type a keyborad, it will trigger a type-to-search. However, insteading of using the quick search box, it shows a floating and transparent dialog. How to implement this functionality? thx -- You received this messag

[android-developers] How to update an app itself?

2009-05-27 Thread Kaka
Hi, all I want to add an auto update function to an app. This app can download a new version of itself, i.e., a new apk file. After finishing downloading this apk file, how to let the app update? I'm going to try this by using PackageManager.installPackage(), but failed. The system said no one h

[android-developers] Re: ScrollView and Programmatically Scrolling

2009-05-05 Thread Kaka
any solution now? I have to implement the same function too. On Apr 20, 2:32 am, Arnaud Weber wrote: > Ok, i've found some kind of weird solution... > > It seems that fullScroll is inversed. As i wanted to go to the top of my > view i need to call > scrollView.fullScroll( > > > > > ScrollView.F

[android-developers] How to re-layout the view?

2009-04-20 Thread Kaka
In my code, I only changed the layout params of an image after it is shown. For example, change the height of the layout. I called the invalidate() function after the change, but it does not work. Although the height of the layoutparams changed, but the view does not change. Why? Anyone can hel

[android-developers] How to display text and picture in a line?

2009-04-19 Thread Kaka
While user input a text including ":)", usually ":)" should be replaced and displayed a smile face here. For example, the original text: I'm happy, :) after converted: I'm happy, smile_face How to implement this? Note that , the text might be long, so this text should occupy many lines. --~--~

[android-developers] Re: Underline of TextView

2009-04-13 Thread Kaka
Then, how to implement this in code? On Mar 23, 9:10 pm, manoj wrote: > define a String item in Strings.xml as: > > txt to be displayed > > use this in your layout. > > On Mar 23, 4:55 pm, aby wrote: > > > Hi, > > Does anyone know how to set underline attribute on a TextView? > > I just see it

[android-developers] How to implement a round rectangle as the background of a viewgroup

2009-02-27 Thread Kaka
Hi, all, I want to add the following background to a view group: 1.there is a border around this view group. for example, the border is in black. 2.the background could be set to other colors, such yellow or light gray. 3.because this is a view group, so the border should be self-adaptive to var