[android-developers] Layouts

2010-03-27 Thread emna zeddini
Hello everybody, After surfing in the source code of the android OS, I made out that you are using preference_screens.Could you please tell me where is the root preference_screen that you are using for almost all layouts. Thanks in advance. -- You received this message because you are subscribed

[android-developers] layouts!!!

2012-06-20 Thread Nevin Johnson
*what android layout can i use that will that allow me to manipulate widgets like the absolute layout?* -- 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

[android-developers] Layouts

2010-12-04 Thread P . N .
Hello! Is there any layout to achieve this: - 5 rows with 3 columns; - every row 20% of display height; - first and third column 25% of display width, second is 50%; - child views (buttons) in second and fourth row, second column? I've tried to use TableLayout, but it doesn't work as expected. E

Re: [android-developers] layouts!!!

2012-06-20 Thread Justin Anderson
Not sure exactly what you are asking, but there are no layouts that work like absolute layout. It was deprecated because using it doesn't work well across different screen sizes and densities... On Jun 20, 2012 8:20 PM, "Nevin Johnson" wrote: > *what android layout can i use that will that allow

Re: [android-developers] Layouts

2010-12-04 Thread Kostya Vasilyev
Peter, Specifying a fraction of parent size can be done with layout_weight. Not sure if it works with table layouts, but for a small table like this, you could use nested LinearLayouts, which do support layout_weight very well. -- Kostya 04.12.2010 16:26, P.N. пишет: Hello! Is there any l

[android-developers] Layouts and Animation

2012-03-18 Thread John Lussmyer
I need to setup an Activity that when a certain button is pressed, a widget will be animated (slide in from bottom) onto the screen. I haven't been able to find an example of how you setup a layout to have the widget off-screen before the animation, and stay on-screen after the animation. Anyone kn

[android-developers] Layouts in Jars?

2011-05-21 Thread Simon Platten
I have several applications that are very similiar in framework, but different in content. I would like to standardise these applications as much as possible. Is it possible to create a Jar that contains a base class activity and the layout resource. Then create applications that import that Jar

[android-developers] Layouts & animation with curvatures

2009-06-10 Thread az9702
Hi, Many default layouts & animations are planar (i.e. rotation in x-y plan). Can a layout with curvature be implemented with current SDK (may be w/ some transform) ? An example may be a "scroll" that rolls as one reads. Pointers are much appreciated. Thanks in advance. - az9702 --~--~

Re: [android-developers] Layouts in Jars?

2011-05-21 Thread Mark Murphy
On Sat, May 21, 2011 at 2:13 PM, Simon Platten wrote: > I have several applications that are very similiar in framework, but > different in content.  I would like to standardise these applications as > much as possible.  Is it possible to create a Jar that contains a base class > activity and the

Re: [android-developers] Layouts in Jars?

2011-05-21 Thread Simon Platten
Thank you, I'll take a look On 21/05/2011 7:23 PM, Mark Murphy wrote: On Sat, May 21, 2011 at 2:13 PM, Simon Platten wrote: I have several applications that are very similiar in framework, but different in content. I would like to standardise these applications as much as possible. Is it po

Re: [android-developers] Layouts in Jars?

2011-05-23 Thread ChenMing
you can use android library instead of jar, since jar can not include android resource. 在 2011-5-22 上午2:13,"Simon Platten" 写道: > I have several applications that are very similiar in framework, but > different in content. I would like to standardise these applications as > much as possible. Is it p

[android-developers] Layouts for base Android applications

2009-08-28 Thread stanlick
Where in the source are the layouts for the built-in UI's? I would like to reuse (copy) a couple of the contact UI's rather than recreate the wheel. Peace, Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Andr

[android-developers] Layouts not clicking for me

2012-08-07 Thread Anthony Walter
Hello, I am coming to Android development with many years of Windows UI developer experience and am having problems getting my head around laying out UI elements. Could someone show me how a layout like this might be declared: |[ EditText Filling Available Space][Button]| Where a Button is on

Re: [android-developers] Layouts not clicking for me

2012-08-07 Thread Justin Anderson
> > Could someone show me how a layout like this might be declared: > |[ EditText Filling Available Space][Button]| > I haven't tested this, but I believe this would do the trick... You could also use a RelativeLayout Also, if possible could someone please refer me to a good inst

[android-developers] Layouts - Using Remaining Space For Intermediate View

2012-04-30 Thread JTeagle
I'm using RelativeLayout to create rows of controls and would like to achieve the following: Widget 1 - natural height Custom view - remaining space after Widgets 1 and 3 Widget 3 - natural height If I add the view in the correct order and use FILL_PARENT, it uses the remainin

Re: [android-developers] Layouts - Using Remaining Space For Intermediate View

2012-04-30 Thread Mark Murphy
On Sun, Apr 29, 2012 at 5:42 AM, JTeagle wrote: > I'm using RelativeLayout to create rows of controls and would like to > achieve the following: > >     Widget 1 - natural height >     Custom view - remaining space after Widgets 1 and 3 >     Widget 3 - natural height Widget 1 has android:alignPa

Re: [android-developers] Layouts - Using Remaining Space For Intermediate View

2012-04-30 Thread JTeagle
>This should work so long as Widget 1 and Widget 3 have knowable >heights (e.g., Button, not ListView) and there is still room on the >screen for Widget 2. Thanks for this. I see where you're going with it, but unfortunately that won't help my situation - and that's my fault for not making my exa

Re: [android-developers] Layouts - Using Remaining Space For Intermediate View

2012-04-30 Thread Mark Murphy
On Mon, Apr 30, 2012 at 7:10 AM, JTeagle wrote: > Consider the following revised example: > > > Widget 1 - natural height > Custom View A - largest height possible > Widget 2 - natural height > Custom View B - largest height possible > > Widget 3 - natural height > Custom View C - largest height p

Re: [android-developers] Layouts - Using Remaining Space For Intermediate View

2012-04-30 Thread Erik
Could you use a LinearLayout and set the layout_weight of each custom view to 1? -Erik On Monday, April 30, 2012 4:10:33 AM UTC-7, JTeagle wrote: > > >This should work so long as Widget 1 and Widget 3 have knowable > >heights (e.g., Button, not ListView) and there is still room on the > >screen

Re: [android-developers] Layouts - Using Remaining Space For Intermediate View

2012-05-01 Thread Jason Teagle
Could you use a LinearLayout and set the layout_weight of each custom view to 1? Hmmm... yes, good call, but there's a slight twist. It seems that gravity doesn't work in LinearLayout. Consider the following code (in onCreate() ): --- super.onCreate(savedInstanceState); // Create the root co

Re: [android-developers] Layouts - Using Remaining Space For Intermediate View

2012-05-01 Thread Romain Guy
The gravity should be set on the LinearLayout.LayoutParams instead. You could also set it on rootContainer. When you call LinearLayout.setGravity(), gravity applies to the children of the LinearLayout. If you set the gravity on the LayoutParams, gravity is applied by the parent on the child the Lay

Re: [android-developers] Layouts - Using Remaining Space For Intermediate View

2012-05-01 Thread Jason Teagle
The gravity should be set on the LinearLayout.LayoutParams instead. Ahhh... yes, that fixed it. I misread the function and thought it applied to the View / Widget it was being called on. My bad. *Now* I'm in business - thanks! -- You received this message because you are subscribed to the G

[android-developers] Layouts for tablets in the wild - Dell Streak for example

2010-09-16 Thread niko20
Ok, I've spent the last few days working on my layouts, and I have everything looking good on small screens and normal screens. Now I'm tackling large screens. However, the question I have is, how do we really know what a device reports itself as? For example, in the blog post about the Samsung t