Friday, April 25, 2014

Re: [android-developers] Expand layout and fit to screen

Sorry for my bad , 


heres example 

<ScrollView>
    <LinerarView>
           <RelativeLayout>
           </RelativeLayout>    layout 1 some more items and when click they will expand

           <RelativeLayout>
           </RelativeLayout>    layout 2  some more items and when click they will expand

           <RelativeLayout> 
          </RelativeLayout>     layout 3  some more items and when click they will expand

           <RelativeLayout>     
           </RelativeLayout>    layout 4  some more items and when click they will expand

           <RelativeLayout> 
          </RelativeLayout>    layout 5  some more items and when click they will expand 

      Here when i click layout 4 the view will expand and the contents are going out of screen , 
    so i want to move the contents to be fit on screen 

Say layout shud move up when expanded .

  
  </LinerarView>
</ScrollView>



Thanks and Regards:-

Ankur Goel
09019040351
S/W Engg.


On Fri, Apr 25, 2014 at 12:36 AM, TreKing <trekingapp@gmail.com> wrote:

On Thu, Apr 24, 2014 at 7:25 AM, ANKUR GOEL <ankur1486@gmail.com> wrote:
i am having one scroll View inside that i have multiple relative layout and have some fields in relative layout . 

That's not possible as ScrollView only supports one direct child.
 
When i click on any relative layout the layout is expanding but the contents are going out of screen .

What is "the layout"? Why is it expanding?
 
Can anybody help me so that the relative layout shud move up and the contents will fit to screen .

Move up where?

Your description is extremely vague and you will likely not get a good answer. Clarify your issue and it would probably help if you included pictures to go with it.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment