Office Hours — Today, March 6

Yesterday, March 5

Mar 6
9:55 AM
Mark M.
has entered the room
Mark M.
turned on guest access
10:10 AM
wilson m.
has entered the room
wilson m.
Hi Mark
Mark M.
hello, wilson!
how can I help you today?
10:15 AM
wilson m.
I'm wondering if you've heard of Orubase to develop cross-platform apps, including Android, Windows Phone, iOS
Mark M.
no, this is the first that I have heard of it
wilson m.
And the other multi-platform is Xamarin
using Mono
Mark M.
Orubase might use Xamarin, given that it is an ASP.NET framework
I know of Xamarin and MonoDroid, though I have not used Mono/MonoDroid
do you have another question?
10:20 AM
Marcin
has entered the room
wilson m.
Does the mono dependencies of Xamarin take up too much memory and slow the app down?
Mark M.
wilson: I have not used Mono/MonoDroid
I have no means of answering questions regarding Mono or MonoDroid
Marcin
hi Mark
Mark M.
hello, Marcin!
Marcin: do you have a question?
Marcin
yes
I have implemented a search widget on my action bar
its collapsed
by clicking some other element on the ui I would like this search widget to gain focus and expand
how can i achieve that?
Mark M.
call requestFocus() on it to give it the focus
if that does not also automatically expand it, call expandActionView() on the MenuItem corresponding to this widget
you might need to do that in the reverse order, if your goal is for focus to be on the EditText inside the search widget
Marcin
requestFocus doesnt work, how do I get the MenuItem?
10:25 AM
Mark M.
call findItem() on the Menu
Marcin
View paste
SearchManager searchManager = (SearchManager) getSherlockActivity().getSystemService(Context.SEARCH_SERVICE);
	    mSearchView = (SearchView) menu.findItem(R.id.menu_search).getActionView();
Mark M.
hold onto the results of menu.findItem(R.id.menu_search)
that is your MenuItem
call expandActionView() on it to expand the action view
Marcin
ah.. forgot there is getActionView at the end
testing...
Mark M.
meanwhile...
wilson: do you have another question?
wilson: if you come up with another question, let me know
Marcin: if you have another question, go ahead
Marcin
yay works
thanks Mark
10:30 AM
Mark M.
if either of you have another question, go ahead
10:45 AM
Marcin
When I click on a suggestion inside search widget. I would like this suggestion to be shown inside search widget instead f hint
what is the typical way of doing this
Mark M.
beats me
I have not worked with suggestions and a SearchView
sorry
10:50 AM
Marcin
regarding my previous question
when I click an ui item and expand the searchview gets the focus
but then I do some other stuff and when i click again it doesnt get the focus
Mark M.
that's odd
Marcin
so it works only for the first time
Mark M.
I have no good explanation for that
if you click on the SearchView itself, will it get the focus?
Marcin
yes
Mark M.
yeah, no clue
Marcin
np.. thanks
10:55 AM
Marcin
bye
Mark M.
that is a wrap for today's chat
the transcript will appear shortly in http://commonsware.com/office-hours/
the next chat is tomorrow at 7:30pm Eastern Time
have a pleasant day, all!
11:00 AM
wilson m.
has left the room
Marcin
has left the room
Mark M.
turned off guest access

Yesterday, March 5

 

Office Hours

People in this transcript

  • Marcin
  • Mark Murphy
  • wilson mar