[mono-android] Best way to have a list view scroll the whole screen

2012-02-02 Thread cmdrew
Hi,

New to Android development so forgive any obvious errors!  I have
implemented an activity which has a number of 'header' fields and a
ListView.  The ListView uses a ListAdapter to display the list items as they
are both variable height and contain multiple lines per list item.

This all works fine apart from the fact that the ListView occupies a fairly
small area of the screen and only scrolls within this area.  What I really
want is for the ListView not to scroll itself but for the whole page to
scroll.

To this end I have put a Scroll View around both the header fields and the
listview but this does not work correctly in that not all of the list items
can be seen and you can still scroll the list view in isolation.

I have read that there is a bug (targeting Android 2.3) which means that a
ListView does not work correctly within a ScrollView but this must be a
common requirement.  

My GetView in my ListAdapter inflates my grid item and then populates it -
is it possible to do this outside of a list view and just add the 'list
items' directly to the ScrollView, so not using a ListView?

Thanks for any suggestions///

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Best-way-to-have-a-list-view-scroll-the-whole-screen-tp5451406p5451406.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[mono-android] Issues accessing the Camera Intent

2012-02-16 Thread cmdrew
Hi,

I hope that someone may be able to help with an issue I have accessing the
camera intent using an HTC Desire running Android 2.3.

I have an application which has a number of screens, one of which displays a
list of photographs already taken for a 'job' and allows the user to take
additional photographs which are then associated with the job.

My problem comes when trying to start the Camera Intent.  I really would
like to pass the name of the picture to be created to the Intent but
when-ever I try to do this (using Visual Studio 2010 in debug mode), my
application continues to run on the phone but the debugger quits at the
StartActivityForResult call - presumably some sort of exception but why the
app continues I don't know.

So then I thought I would skip the naming of the file and using another
example allow the system to name the file for me and return it.

In my OnActivityResult I have the following code :-


base.OnActivityResult(requestCode, resultCode, data);
if (requestCode == TAKE_PICTURE && resultCode == Result.Ok)
{
string dataUri = data.ToURI();
ImageView imageView = FindViewById(Resource.Id.takepic);
imageView.SetImageURI(Android.Net.Uri.Parse(dataUri));

// Save the photograph into the whereabouts
Photograph photograph = new Photograph(fileName, 
_displayedJob.Worknumber,
false, false);
Whereabouts whereabouts = SharedPreferences.Whereabouts();
whereabouts.AddPhotograph(fileName, _displayedJob.Worknumber);
SharedPreferences.Whereabouts(whereabouts);
}


my main problem here is that I need to get the actual name of the file
created so that I can store this in my Photograph object for later reference
as I will be uploading the image to a server.  

How can I get the actual name of the file from the URI?

Thanks for any suggestions/help

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Issues-accessing-the-Camera-Intent-tp5490893p5490893.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[mono-android] Spinner within PopupWindow

2012-04-19 Thread cmdrew
I'm having an issue with a spinner placed within a PopupWindow in that when I
try to show the items in the spinner, I get an Android Force Close.  I have
reproduced in a very simple 'Hello World' project and really can't see why
there should be an issue.  Doesn't appear to be anything in the Android log
to explain...

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Spinner-within-PopupWindow-tp5651334p5651334.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid