[android-beginners] Re: 1.6: Quick search box to pass parameters to an application

2009-10-08 Thread Danny Brain

Nevermind, found the SearchableDictionary example in the SDK which
gave me enough.

On Oct 8, 9:24 am, Danny Brain tehdan...@gmail.com wrote:
 Hey,

 I was wondering if it were possible to use the quick search box to
 pass parameters to an application?
 E.g. If I had a timesheet application called HagridIsHugeAndAnnoying,
 I'd want to be able to enter: hihaa 7hrs sleeping in the quick
 search box and an action of Create time entry ... would show up in
 the results. This would launch an intent and either just say Yay
 done or if it needs user intervention show a dialog / screen.

 So I guess I'd want to be able to say search hihaa anything should
 call Intent X and Intent X should be able to parse the query.

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



[android-beginners] 1.6: Quick search box to pass parameters to an application

2009-10-07 Thread Danny Brain

Hey,

I was wondering if it were possible to use the quick search box to
pass parameters to an application?
E.g. If I had a timesheet application called HagridIsHugeAndAnnoying,
I'd want to be able to enter: hihaa 7hrs sleeping in the quick
search box and an action of Create time entry ... would show up in
the results. This would launch an intent and either just say Yay
done or if it needs user intervention show a dialog / screen.

So I guess I'd want to be able to say search hihaa anything should
call Intent X and Intent X should be able to parse the query.

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



[android-beginners] Layout support two items in a 'row' filling width?

2008-12-29 Thread Danny Brain

Hey,

Sorry for the gibberish subject. I'm looking for a layout that will
support 2 views lined up next to one another.
In my case I want something like:
-- Spinner - Button --
Where the spinner is a list of existing values and the button is a
+ (add new value).
I want the spinner to take as much of the screen width as possible
without overlapping the button.

Is this possible using XML layouts or will I need to do some fanciness
in code? Any ideas?
Thanks in advance :)

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



[android-beginners] Re: Layout support two items in a 'row' filling width?

2008-12-29 Thread Danny Brain

Solved using RelativeLayout properly (I *think*).

Button android:id=@+id/add_location_button android:text=+
android:layout_width=wrap_content android:layout_height=wrap_content
android:layout_alignParentRight=true /
Spinner android:id=@+id/location_spinner
android:layout_width=wrap_content android:layout_height=wrap_content
android:drawSelectorOnTop=true
android:prompt=@string/select_location_prompt
android:layout_toLeftOf=@id/add_location_button
android:layout_alignParentLeft=true /

Sorry for the silly post.

On Mon, Dec 29, 2008 at 9:11 PM, Danny Brain tehdan...@gmail.com wrote:
 Hey,

 Sorry for the gibberish subject. I'm looking for a layout that will
 support 2 views lined up next to one another.
 In my case I want something like:
 -- Spinner - Button --
 Where the spinner is a list of existing values and the button is a
 + (add new value).
 I want the spinner to take as much of the screen width as possible
 without overlapping the button.

 Is this possible using XML layouts or will I need to do some fanciness
 in code? Any ideas?
 Thanks in advance :)

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



[android-beginners] Re: Layout support two items in a 'row' filling width?

2008-12-29 Thread Danny Brain
Awesome, that did it. Thanks!

On Dec 30, 2008 7:52 AM, Romain Guy romain...@google.com wrote:


You can use a LinearLayout and the android:layout_weight attribute on
the Spinner. There are many examples of this around.

On Mon, Dec 29, 2008 at 2:11 AM, Danny Brain tehdan...@gmail.com wrote: 

 Hey,   Sorry for the gibberish subject. I'm looking for a layout that
will  support 2 views lin...
--
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them


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