[android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:

2009-10-18 Thread Jeffrey Blattman




i assume you mean you want your list view's rows to be complex. in
summary,

1. create a custom adapter
2. in the adapter's getView(), inflate your custom view and populate it
as you wish

On 10/18/09 1:03 AM, Clave Yard wrote:

  

  
ALL,

CAN SOME ONE TELL ME HOW TO MAKE THREE CONTROLS IN A SINGLE LINE USING
LAYOUT? I WANT TO SHOW AN IMABE, A BUTTON AND TEXT LABEL IN A SINGLE
LINE. I TRIED THAT ON LAYOUT IN ECLIPSE. BUT IT ACCEPTS ONLY ONE
CONTROL FOR ONE LINE, IF ADD NEXT CONTROL IT GOES TO NEXT LINE(ROW). I
WANT TO MAKE THREE CONTROLS TO BE IN SINGLE LINE. HOW DO I ACHIEVE THIS?

APPRECIATE YOUR HELP ON THIS.



  

  
  
  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google 
Groups "Android Beginners" group. 
To post to this group, send email to android-beginners@googlegroups.com
  
To unsubscribe from this group, send email to 
android-beginners+unsubscr...@googlegroups.com 
For more options, visit this group at 
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---
  


-- 





[android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:

2009-10-18 Thread Clave Yard
Do you mean, using layout we can't achieve this? Is there any sample provided by Android team to do such thing, creating custom controls?--- On Sun, 10/18/09, Jeffrey Blattman  wrote:From: Jeffrey Blattman Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:To: android-beginners@googlegroups.comDate: Sunday, October 18, 2009, 8:48 AM



  
i assume you mean you want your list view's rows to be complex. in
summary,

1. create a custom adapter
2. in the adapter's getView(), inflate your custom view and populate it
as you wish

On 10/18/09 1:03 AM, Clave Yard wrote:

  

  
ALL,

CAN SOME ONE TELL ME HOW TO MAKE THREE CONTROLS IN A SINGLE LINE USING
LAYOUT? I WANT TO SHOW AN IMABE, A BUTTON AND TEXT LABEL IN A SINGLE
LINE. I TRIED THAT ON LAYOUT IN ECLIPSE. BUT IT ACCEPTS ONLY ONE
CONTROL FOR ONE LINE, IF ADD NEXT CONTROL IT GOES TO NEXT LINE(ROW). I
WANT TO MAKE THREE CONTROLS TO BE IN SINGLE LINE. HOW DO I ACHIEVE THIS?

APPRECIATE YOUR HELP ON THIS.



  

  
  
  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google 
Groups "Android Beginners" group. 
To post to this group, send email to android-beginners@googlegroups.com
  
To unsubscribe from this group, send email to 
android-beginners+unsubscr...@googlegroups.com 
For more options, visit this group at 
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---
  


-- 

 


  

[android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:

2009-10-18 Thread Jeffrey Blattman




are you using a listview or no? i'll assume no ... yes,  to get three
views positioned horizontally across the page, you would use a
LinearLayout and specify android:orientation="horizontal".

On 10/18/09 2:00 AM, Clave Yard wrote:

  

  
Do you mean, using layout we can't achieve this? Is there
any sample provided by Android team to do such thing, creating custom
controls?

--- On Sun, 10/18/09, Jeffrey Blattman 
wrote:

From: Jeffrey Blattman 
Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:
To: android-beginners@googlegroups.com
Date: Sunday, October 18, 2009, 8:48 AM
  
   i assume you mean you want your list
view's rows to be complex. in
summary,
  
1. create a custom adapter
2. in the adapter's getView(), inflate your custom view and populate it
as you wish
  
On 10/18/09 1:03 AM, Clave Yard wrote:
  

  

  ALL,
  
CAN SOME ONE TELL ME HOW TO MAKE THREE CONTROLS IN A SINGLE LINE USING
LAYOUT? I WANT TO SHOW AN IMABE, A BUTTON AND TEXT LABEL IN A SINGLE
LINE. I TRIED THAT ON LAYOUT IN ECLIPSE. BUT IT ACCEPTS ONLY ONE
CONTROL FOR ONE LINE, IF ADD NEXT CONTROL IT GOES TO NEXT LINE(ROW). I
WANT TO MAKE THREE CONTROLS TO BE IN SINGLE LINE. HOW DO I ACHIEVE THIS?
  
APPRECIATE YOUR HELP ON THIS.
  
  
  

  



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google 
Groups "Android Beginners" group. 
To post to this group, send email to android-beginners@googlegroups.com

To unsubscribe from this group, send email to 
android-beginners+unsubscr...@googlegroups.com

For more options, visit this group at 
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---

  
  
  -- 
  
  


  

  
  


-- 





[android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:

2009-10-18 Thread Clave Yard
Yes. You are right. android:orientation="horizontal" is helping a lot. But i want to keep three controls(image, button and text) on Top in a single line. And one slider control in the second line, below of that three controls. For ex: If you see built-in Volume control, there will be Volume speaker icon and volume text one line, and below you can see the volume slider. Same like that i wanted to do.--- On Sun, 10/18/09, Jeffrey Blattman  wrote:From: Jeffrey Blattman Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:To: android-beginners@googlegroups.comDate: Sunday, October 18, 2009, 9:03 AM



  
are you using a listview or no? i'll assume no ... yes,  to get three
views positioned horizontally across the page, you would use a
LinearLayout and specify android:orientation="horizontal".

On 10/18/09 2:00 AM, Clave Yard wrote:

  

  
Do you mean, using layout we can't achieve this? Is there
any sample provided by Android team to do such thing, creating custom
controls?

--- On Sun, 10/18/09, Jeffrey Blattman 
wrote:

From: Jeffrey Blattman 
Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:
To: android-beginners@googlegroups.com
Date: Sunday, October 18, 2009, 8:48 AM
  
   i assume you mean you want your list
view's rows to be complex. in
summary,
  
1. create a custom adapter
2. in the adapter's getView(), inflate your custom view and populate it
as you wish
  
On 10/18/09 1:03 AM, Clave Yard wrote:
  

  

  ALL,
  
CAN SOME ONE TELL ME HOW TO MAKE THREE CONTROLS IN A SINGLE LINE USING
LAYOUT? I WANT TO SHOW AN IMABE, A BUTTON AND TEXT LABEL IN A SINGLE
LINE. I TRIED THAT ON LAYOUT IN ECLIPSE. BUT IT ACCEPTS ONLY ONE
CONTROL FOR ONE LINE, IF ADD NEXT CONTROL IT GOES TO NEXT LINE(ROW). I
WANT TO MAKE THREE CONTROLS TO BE IN SINGLE LINE. HOW DO I ACHIEVE THIS?
  
APPRECIATE YOUR HELP ON THIS.
  
  
  

  



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google 
Groups "Android Beginners" group. 
To post to this group, send email to android-beginners@googlegroups.com

To unsubscribe from this group, send email to 
android-beginners+unsubscr...@googlegroups.com

For more options, visit this group at 
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---

  
  
  -- 
  
  


  

  
  


-- 

 


  

[android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:

2009-10-18 Thread Jeffrey Blattman




well ... i don't want to write the code for you, but what you are
asking for is possible. if you aren't using the eclipse plugin, do
that. it gives an okay GUI editor for layouts ... so you can try things
out quickly and see what looks correct. some things to watch out for
are setting weights, setting gravity, and setting layout widths.

On 10/18/09 2:39 AM, Clave Yard wrote:

  

  
Yes. You are right. android:orientation="horizontal" is
helping a lot. But i want to keep three controls(image, button and
text) on Top in a single line. And one slider control in the second
line, below of that three controls. For ex: If you see built-in Volume
control, there will be Volume speaker icon and volume text one line,
and below you can see the volume slider. Same like that i wanted to do.


--- On Sun, 10/18/09, Jeffrey Blattman 
wrote:

From: Jeffrey Blattman 
Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:
To: android-beginners@googlegroups.com
Date: Sunday, October 18, 2009, 9:03 AM
  
   are you using a listview or no? i'll
assume no ... yes,  to get three
views positioned horizontally across the page, you would use a
LinearLayout and specify android:orientation="horizontal".
  
On 10/18/09 2:00 AM, Clave Yard wrote:
  

  

  Do you mean, using layout we can't achieve this? Is there
any sample provided by Android team to do such thing, creating custom
controls?
  
--- On Sun, 10/18/09, Jeffrey Blattman 
wrote:
  
From: Jeffrey Blattman 
Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:
To: android-beginners@googlegroups.com
Date: Sunday, October 18, 2009, 8:48 AM

 i assume you mean you want
your list
view's rows to be complex. in
summary,

1. create a custom adapter
2. in the adapter's getView(), inflate your custom view and populate it
as you wish

On 10/18/09 1:03 AM, Clave Yard wrote:

  

  
ALL,

CAN SOME ONE TELL ME HOW TO MAKE THREE CONTROLS IN A SINGLE LINE USING
LAYOUT? I WANT TO SHOW AN IMABE, A BUTTON AND TEXT LABEL IN A SINGLE
LINE. I TRIED THAT ON LAYOUT IN ECLIPSE. BUT IT ACCEPTS ONLY ONE
CONTROL FOR ONE LINE, IF ADD NEXT CONTROL IT GOES TO NEXT LINE(ROW). I
WANT TO MAKE THREE CONTROLS TO BE IN SINGLE LINE. HOW DO I ACHIEVE THIS?

APPRECIATE YOUR HELP ON THIS.



  

  
  
  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google 
Groups "Android Beginners" group. 
To post to this group, send email to android-beginners@googlegroups.com
  
To unsubscribe from this group, send email to 
  android-beginners+unsubscr...@googlegroups.com
  
For more options, visit this group at 
  http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---
  


-- 


  
  

  


  
  
  -- 
  
  


  

  
  


-- 





[android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:

2009-10-18 Thread jax

Hi Clave

If you press the "Caps Lock" key to the left of the keyboard near the
'A' key IT WILL STOP YOU WRITING LIKE THIS.




On Oct 18, 5:06 pm, Jeffrey Blattman 
wrote:
> well ... i don't want to write the code for you, but what you are asking
> for is possible. if you aren't using the eclipse plugin, do that. it
> gives an okay GUI editor for layouts ... so you can try things out
> quickly and see what looks correct. some things to watch out for are
> setting weights, setting gravity, and setting layout widths.
>
> On 10/18/09 2:39 AM, Clave Yard wrote:
>
>
>
> > Yes. You are right. android:orientation="horizontal" is helping a lot.
> > But i want to keep three controls(image, button and text) on Top in a
> > single line. And one slider control in the second line, below of that
> > three controls. For ex: If you see built-in Volume control, there will
> > be Volume speaker icon and volume text one line, and below you can see
> > the volume slider. Same like that i wanted to do.
>
> > --- On *Sun, 10/18/09, Jeffrey Blattman
> > //* wrote:
>
> >     From: Jeffrey Blattman 
> >     Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:
> >     To: android-beginners@googlegroups.com
> >     Date: Sunday, October 18, 2009, 9:03 AM
>
> >     are you using a listview or no? i'll assume no ... yes,  to get
> >     three views positioned horizontally across the page, you would use
> >     a LinearLayout and specify android:orientation="horizontal".
>
> >     On 10/18/09 2:00 AM, Clave Yard wrote:
> >>     Do you mean, using layout we can't achieve this? Is there any
> >>     sample provided by Android team to do such thing, creating custom
> >>     controls?
>
> >>     --- On *Sun, 10/18/09, Jeffrey Blattman
> >>     //* wrote:
>
> >>         From: Jeffrey Blattman 
> >>         Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE
> >>         LINE:
> >>         To: android-beginners@googlegroups.com
> >>         Date: Sunday, October 18, 2009, 8:48 AM
>
> >>         i assume you mean you want your list view's rows to be
> >>         complex. in summary,
>
> >>         1. create a custom adapter
> >>         2. in the adapter's getView(), inflate your custom view and
> >>         populate it as you wish
>
> >>         On 10/18/09 1:03 AM, Clave Yard wrote:
> >>>         ALL,
>
> >>>         CAN SOME ONE TELL ME HOW TO MAKE THREE CONTROLS IN A SINGLE
> >>>         LINE USING LAYOUT? I WANT TO SHOW AN IMABE, A BUTTON AND
> >>>         TEXT LABEL IN A SINGLE LINE. I TRIED THAT ON LAYOUT IN
> >>>         ECLIPSE. BUT IT ACCEPTS ONLY ONE CONTROL FOR ONE LINE, IF
> >>>         ADD NEXT CONTROL IT GOES TO NEXT LINE(ROW). I WANT TO MAKE
> >>>         THREE CONTROLS TO BE IN SINGLE LINE. HOW DO I ACHIEVE THIS?
>
> >>>         APPRECIATE YOUR HELP ON THIS.
>
> >>         --
>
> >     --
>
> --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:

2009-10-18 Thread Clave Yard
OK. F

--- On Sun, 10/18/09, jax  wrote:

From: jax 
Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:
To: "Android Beginners" 
Date: Sunday, October 18, 2009, 4:05 PM


Hi Clave

If you press the "Caps Lock" key to the left of the keyboard near the
'A' key IT WILL STOP YOU WRITING LIKE THIS.




On Oct 18, 5:06 pm, Jeffrey Blattman 
wrote:
> well ... i don't want to write the code for you, but what you are asking
> for is possible. if you aren't using the eclipse plugin, do that. it
> gives an okay GUI editor for layouts ... so you can try things out
> quickly and see what looks correct. some things to watch out for are
> setting weights, setting gravity, and setting layout widths.
>
> On 10/18/09 2:39 AM, Clave Yard wrote:
>
>
>
> > Yes. You are right. android:orientation="horizontal" is helping a lot..
> > But i want to keep three controls(image, button and text) on Top in a
> > single line. And one slider control in the second line, below of that
> > three controls. For ex: If you see built-in Volume control, there will
> > be Volume speaker icon and volume text one line, and below you can see
> > the volume slider. Same like that i wanted to do.
>
> > --- On *Sun, 10/18/09, Jeffrey Blattman
> > //* wrote:
>
> >     From: Jeffrey Blattman 
> >     Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:
> >     To: android-beginners@googlegroups.com
> >     Date: Sunday, October 18, 2009, 9:03 AM
>
> >     are you using a listview or no? i'll assume no ... yes,  to get
> >     three views positioned horizontally across the page, you would use
> >     a LinearLayout and specify android:orientation="horizontal".
>
> >     On 10/18/09 2:00 AM, Clave Yard wrote:
> >>     Do you mean, using layout we can't achieve this? Is there any
> >>     sample provided by Android team to do such thing, creating custom
> >>     controls?
>
> >>     --- On *Sun, 10/18/09, Jeffrey Blattman
> >>     //* wrote:
>
> >>         From: Jeffrey Blattman 
> >>         Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE
> >>         LINE:
> >>         To: android-beginners@googlegroups.com
> >>         Date: Sunday, October 18, 2009, 8:48 AM
>
> >>         i assume you mean you want your list view's rows to be
> >>         complex. in summary,
>
> >>         1. create a custom adapter
> >>         2. in the adapter's getView(), inflate your custom view and
> >>         populate it as you wish
>
> >>         On 10/18/09 1:03 AM, Clave Yard wrote:
> >>>         ALL,
>
> >>>         CAN SOME ONE TELL ME HOW TO MAKE THREE CONTROLS IN A SINGLE
> >>>         LINE USING LAYOUT? I WANT TO SHOW AN IMABE, A BUTTON AND
> >>>         TEXT LABEL IN A SINGLE LINE. I TRIED THAT ON LAYOUT IN
> >>>         ECLIPSE. BUT IT ACCEPTS ONLY ONE CONTROL FOR ONE LINE, IF
> >>>         ADD NEXT CONTROL IT GOES TO NEXT LINE(ROW). I WANT TO MAKE
> >>>         THREE CONTROLS TO BE IN SINGLE LINE. HOW DO I ACHIEVE THIS?
>
> >>>         APPRECIATE YOUR HELP ON THIS.
>
> >>         --
>
> >     --
>
> --




  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:

2009-10-18 Thread Clave Yard
I resolved it in making changes for linear layout controls in xml on eclipse itself. I am able to show the controls whatever the way i expected. I didn't need to use any custom adapter or tools or separate code for this. If people are unable to help, just can be calm instead of redirecting to some thing else unnecessary etc.--- On Sun, 10/18/09, Jeffrey Blattman  wrote:From: Jeffrey Blattman Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:To: android-beginners@googlegroups.comDate: Sunday, October 18, 2009, 10:06 AM



  
well ... i don't want to write the code for you, but what you are
asking for is possible. if you aren't using the eclipse plugin, do
that. it gives an okay GUI editor for layouts ... so you can try things
out quickly and see what looks correct. some things to watch out for
are setting weights, setting gravity, and setting layout widths.

On 10/18/09 2:39 AM, Clave Yard wrote:

  

  
Yes. You are right. android:orientation="horizontal" is
helping a lot. But i want to keep three controls(image, button and
text) on Top in a single line. And one slider control in the second
line, below of that three controls. For ex: If you see built-in Volume
control, there will be Volume speaker icon and volume text one line,
and below you can see the volume slider. Same like that i wanted to do.


--- On Sun, 10/18/09, Jeffrey Blattman 
wrote:

From: Jeffrey Blattman 
Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:
To: android-beginners@googlegroups.com
Date: Sunday, October 18, 2009, 9:03 AM
  
   are you using a listview or no? i'll
assume no ... yes,  to get three
views positioned horizontally across the page, you would use a
LinearLayout and specify android:orientation="horizontal".
  
On 10/18/09 2:00 AM, Clave Yard wrote:
  

  

  Do you mean, using layout we can't achieve this? Is there
any sample provided by Android team to do such thing, creating custom
controls?
  
--- On Sun, 10/18/09, Jeffrey Blattman 
wrote:
      
From: Jeffrey Blattman 
Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:
To: android-beginners@googlegroups.com
Date: Sunday, October 18, 2009, 8:48 AM

 i assume you mean you want
your list
view's rows to be complex. in
summary,

1. create a custom adapter
2. in the adapter's getView(), inflate your custom view and populate it
as you wish

On 10/18/09 1:03 AM, Clave Yard wrote:

  

  
ALL,

CAN SOME ONE TELL ME HOW TO MAKE THREE CONTROLS IN A SINGLE LINE USING
LAYOUT? I WANT TO SHOW AN IMABE, A BUTTON AND TEXT LABEL IN A SINGLE
LINE. I TRIED THAT ON LAYOUT IN ECLIPSE. BUT IT ACCEPTS ONLY ONE
CONTROL FOR ONE LINE, IF ADD NEXT CONTROL IT GOES TO NEXT LINE(ROW). I
WANT TO MAKE THREE CONTROLS TO BE IN SINGLE LINE. HOW DO I ACHIEVE THIS?

APPRECIATE YOUR HELP ON THIS.



  

  
  
  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google 
Groups "Android Beginners" group. 
To post to this group, send email to android-beginners@googlegroups.com
  
To unsubscribe from this group, send email to 
  android-beginners+unsubscr...@googlegroups.com
  
For more options, visit this group at 
  http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---
  


-- 


  
  

  


  
  
  -- 
  
  


  

  
  


--