[android-developers] Re: Relative Layout for a List Item

2008-03-29 Thread Anil
try droiddraw.org to generate your layout more easily. If that fails, try a workaround - use nested LinearLayouts. RelativeLayout failed for me, so I switched to LinearLayout. - Anil On Mar 29, 5:47 pm, "Harsh Jain" <[EMAIL PROTECTED]> wrote: > Ok, let me make a simple test case for this. Right

[android-developers] Re: Relative Layout for a List Item

2008-03-29 Thread Dan U.
Probably the simplest is to make your test case using one of the api demos. That's what I had tried, but I kept getting a null pointer when adding the relativelayout item to the listview. On Mar 29, 3:47 pm, "Harsh Jain" <[EMAIL PROTECTED]> wrote: > Ok, let me make a simple test case for this. Ri

[android-developers] Re: Relative Layout for a List Item

2008-03-29 Thread Harsh Jain
Ok, let me make a simple test case for this. Right now my code depends a lot on other pieces, so it would be really hard for you to debug that way. Harsh On Sun, Mar 30, 2008 at 3:50 AM, Dan U. <[EMAIL PROTECTED]> wrote: > > I went ahead and just tried your xml outside of a listview. It does > r

[android-developers] Re: Relative Layout for a List Item

2008-03-29 Thread Dan U.
I went ahead and just tried your xml outside of a listview. It does render correctly. I'd suspect a bug in something if it's not rendering in listview correctly. On Mar 29, 3:05 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > I'd prefer to get your code running to look at it, but there's a lot > missin

[android-developers] Re: Relative Layout for a List Item

2008-03-29 Thread Dan U.
I'd prefer to get your code running to look at it, but there's a lot missing. On Mar 29, 2:51 pm, "Harsh Jain" <[EMAIL PROTECTED]> wrote: > This is the xml file for the ListActivity > > > http://schemas.android.com/apk/res/android"; > android:id="@android:id/list" > android:layout_width=

[android-developers] Re: Relative Layout for a List Item

2008-03-29 Thread Harsh Jain
This is the xml file for the ListActivity http://schemas.android.com/apk/res/android"; android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" /> All I missed in above email was an additional setContentView( R.layout.above_file) in onCreat

[android-developers] Re: Relative Layout for a List Item

2008-03-29 Thread Harsh Jain
Yes its for a list item. I will post the relevant code now. Inside an Activity which happily extends ListActivity onCreate() { mCR = getContentResolver(); Cursor c = mCR .query(mUri, null, null, null, GSProvider.COUNT + " DESC"); startManagingCursor(c);

[android-developers] Re: Relative Layout for a List Item

2008-03-29 Thread Dan U.
>From the title of your post, it looks like that xml is for a list item? Can you post more code? I can only get it to throw a null pointer exception. On Mar 29, 10:05 am, "Harsh Jain" <[EMAIL PROTECTED]> wrote: > bump... > > On Sat, Mar 29, 2008 at 7:48 AM, Harsh Jain <[EMAIL PROTECTED]> wrote: >

[android-developers] Re: Relative Layout for a List Item

2008-03-29 Thread Harsh Jain
bump... On Sat, Mar 29, 2008 at 7:48 AM, Harsh Jain <[EMAIL PROTECTED]> wrote: > I had be really surprised. Can someone from google confirm ? > > regards, > harsh > > > On Sat, Mar 29, 2008 at 6:50 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > Your xml looks ok, but I guess that th

[android-developers] Re: Relative Layout for a List Item

2008-03-28 Thread Harsh Jain
I had be really surprised. Can someone from google confirm ? regards, harsh On Sat, Mar 29, 2008 at 6:50 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Your xml looks ok, but I guess that the implementation of > RelativeLayout is buggy. > > On Mar 29, 1:18 am, "Harsh Jain" <[EMAIL PROTECTE

[android-developers] Re: Relative Layout for a List Item

2008-03-28 Thread [EMAIL PROTECTED]
Your xml looks ok, but I guess that the implementation of RelativeLayout is buggy. On Mar 29, 1:18 am, "Harsh Jain" <[EMAIL PROTECTED]> wrote: > Hi, >  I am having a tough time getting this simple layout to work. Please advice. > > What I need is something like this... >