Thanks for the clarification. Wil give a try this.

Regards,
Jovish

On Wed, Oct 10, 2012 at 6:26 PM, Piren <[email protected]> wrote:

> Maybe i delivered what i meant wrong...
> You can still inflate rows predefined using XML, but your the way to
> create the specific inner layout would have to be created manually.
>
> you want to do something like this:
> <scrollview>
>    <linearlayout>
>       <textview/>
>       <listview/>
>       <textview/>
>       <listview/>
>    </linearlayout>
> </scrollview>
>
> You can't do that in android (well, you can, it just wouldn't work as you
> expect it to).
>
> The best option is to just do:
> <scrollview>
>    <linearlayout/>
> </scrollview>
>
> and then "inflate" all the information inside that linear layout.
> Practically making your entire page one ListView (a listview is exactly
> that.. a linear layout inside a scrollview with some fancy wrapper code to
> make your life easier)
>
> Your "adapter" would just have to know how to inflate the "rows"
> differently according to their type.
> i.e - the first row is just a regular textview (the header).
> the second to X row would be rows of the first "listview" you wanted.
> X+1 row is again a textview (the footer) and then X+2 to the end are rows
> of the second listview type.
>
>
>
> On Wednesday, October 10, 2012 7:25:20 AM UTC+2, Jovish P wrote:
>
>> Sorry , we are not able to understand you fully. Wht is the difference
>> between the first approach we explained in the mail and the approach u
>> suggested .  Up to our knowledge both are same . Wht difference it is going
>> to make if u inflate every view programmatically instead of using xml ?
>>
>> On Tue, Oct 9, 2012 at 3:25 PM, Piren <[email protected]> wrote:
>>
>>> Android doesn't support putting two scrollable views one inside the
>>> other and i assume you dont want to divide the screen area between the
>>> listviews and make each take a constant size.
>>>
>>> You're best (and probably only) choice is to just do everything
>>> manually. put a linear layout inside a scrollview and inflate everything in
>>> it manually. (the two textviews and the two listviews).
>>> you can actually use the same code you wrote for your listviews to do
>>> that with some modifications.
>>> It sounds like a lot of effort, but after doing it a few times i've
>>> noticed that it isnt. in some instances it even makes stuff easier.
>>>
>>>
>>> On Tuesday, October 9, 2012 9:15:42 AM UTC+2, Jovish P wrote:
>>>>
>>>> In one of screen  we want to come up with a desing like this
>>>>
>>>> Textview
>>>> Listview
>>>> Textview
>>>> Listview
>>>>
>>>> First we thought of putting everything inside a linear layout with
>>>> vertical orientation and put that layout inside
>>>> a scroll view. Then we come to know that it is not a good idea. So
>>>> right now what we are trying to do is
>>>> add header and footer for listview. Header view will be a text view and
>>>> footer view will be a layout which conatins
>>>> a texview and listview. The problem what we are facing now is ,  we are
>>>> not able to scroll the second listview which is in
>>>> footerview layout. Is it a good solution ? If not wht is the best way
>>>> to do this ? Share your thoughts about this.
>>>>
>>>>
>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-d...@**googlegroups.com
>>>
>>> To unsubscribe from this group, send email to
>>> android-developers+**[email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to