Widgets at screen borders

Put your problem here if it does not fit any of the other categories.

Widgets at screen borders

Postby Ivanhoe » Sun Dec 30, 2007 1:07 am

Hello!

I want to locate widgets this way: one big widget at the top of screen occupy maximum space and one small widget at the bottom have only they need. Like on the picture.
But I have a trouble: big widget not occupy maximum space or get out of bottom border (but I use scroll view!). And small widget sticks to big one's bottom border. I can't tame their! Please help me.
Attachments
2007-12-30_025808.jpg
2007-12-30_025808.jpg (9.73 KiB) Viewed 2273 times
Sorry my terrible english...
Ivanhoe
Freshman
Freshman
 
Posts: 4
Joined: Sun Dec 30, 2007 12:36 am
Location: Russia

Top

Re: Widgets at screen borders

Postby tum0rc0re » Sun Dec 30, 2007 5:35 am

Ivanhoe wrote:Hello!

I want to locate widgets this way: one big widget at the top of screen occupy maximum space and one small widget at the bottom have only they need. Like on the picture.
But I have a trouble: big widget not occupy maximum space or get out of bottom border (but I use scroll view!). And small widget sticks to big one's bottom border. I can't tame their! Please help me.


Ivan, look this - http://www.maximyudin.com/?p=15
I wrote new article on russian language about layouts of widgets on screen, maybe it helps you.
JQ Soft web page:
[b][url=http://jqsoft.ru/]http://jqsoft.ru/[/url][/b]
My proffesional blog: [b][url=http://maximyudin.blogspot.com]http://maximyudin.blogspot.com[/url][/b]
Facebook: [b][url=http://www.facebook.com/maxim.yudin]http://www.facebook.com/maxim.yudin[/url][/b]
User avatar
tum0rc0re
Senior Developer
Senior Developer
 
Posts: 158
Joined: Sun Nov 25, 2007 7:15 am
Location: Moscow, Russia

Postby Ivanhoe » Sun Dec 30, 2007 7:55 am

Thank you, Maxim. Very good article, but it can't help me :'(

In addition, I was try to use DrodDraw. I was create UI i want, but DD's preview and Android's interpretation differs...
Sorry my terrible english...
Ivanhoe
Freshman
Freshman
 
Posts: 4
Joined: Sun Dec 30, 2007 12:36 am
Location: Russia

Postby tum0rc0re » Sun Dec 30, 2007 8:12 am

Ivanhoe wrote:Thank you, Maxim. Very good article, but it can't help me :'(

In addition, I was try to use DrodDraw. I was create UI i want, but DD's preview and Android's interpretation differs...


Wrote in private :)
JQ Soft web page:
[b][url=http://jqsoft.ru/]http://jqsoft.ru/[/url][/b]
My proffesional blog: [b][url=http://maximyudin.blogspot.com]http://maximyudin.blogspot.com[/url][/b]
Facebook: [b][url=http://www.facebook.com/maxim.yudin]http://www.facebook.com/maxim.yudin[/url][/b]
User avatar
tum0rc0re
Senior Developer
Senior Developer
 
Posts: 158
Joined: Sun Nov 25, 2007 7:15 am
Location: Moscow, Russia

Postby tum0rc0re » Sun Dec 30, 2007 9:57 am

Ivan, look. I think that I have make that you wanted.

Image

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4.  
  5.     android:orientation="vertical"
  6.  
  7.     android:layout_width="fill_parent"
  8.  
  9.     android:layout_height="fill_parent"
  10.  
  11.     android:background="#d3d4c1"
  12.  
  13. >
  14.  
  15.         <Button  
  16.  
  17.                 id="@+id/btnClick"
  18.  
  19.         android:layout_width="wrap_content"
  20.  
  21.                 android:layout_height="wrap_content"
  22.  
  23.                 android:text="Click-click-click"
  24.  
  25.                 android:layout_alignParentBottom="true"
  26.  
  27.                 android:layout_centerHorizontal="true"
  28.  
  29.                 android:layout_marginBottom="5dip"
  30.  
  31.         />
  32.  
  33.         <EditText
  34.  
  35.                 android:layout_width="fill_parent"
  36.  
  37.                 android:layout_height="fill_parent"
  38.  
  39.        android:text="1\n2\n3\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13
  40.                 \n14\n15\n16\n17\n18\n19\n20"
  41.  
  42.        android:layout_above="@+id/btnClick"
  43.  
  44.        android:layout_marginBottom="3dip"
  45.  
  46.        android:layout_marginLeft="3dip"
  47.  
  48.        android:layout_marginRight="3dip"
  49.  
  50.        android:layout_marginTop="3dip"
  51.  
  52.        android:scrollbars="vertical"      
  53.  
  54.         />
  55.  
  56. </RelativeLayout>
Parsed in 0.003 seconds, using GeSHi 1.0.8.4
Attachments
forivanhoe.gif
(10.06 KiB) Downloaded 168 times
Last edited by tum0rc0re on Thu Jan 03, 2008 4:17 pm, edited 2 times in total.
JQ Soft web page:
[b][url=http://jqsoft.ru/]http://jqsoft.ru/[/url][/b]
My proffesional blog: [b][url=http://maximyudin.blogspot.com]http://maximyudin.blogspot.com[/url][/b]
Facebook: [b][url=http://www.facebook.com/maxim.yudin]http://www.facebook.com/maxim.yudin[/url][/b]
User avatar
tum0rc0re
Senior Developer
Senior Developer
 
Posts: 158
Joined: Sun Nov 25, 2007 7:15 am
Location: Moscow, Russia

Postby Ivanhoe » Sun Dec 30, 2007 11:20 am

Oh, thank you! :)
Sorry my terrible english...
Ivanhoe
Freshman
Freshman
 
Posts: 4
Joined: Sun Dec 30, 2007 12:36 am
Location: Russia

Top

Postby cabernet1976 » Thu Jan 03, 2008 6:40 am

Thanks, it is helpful to me.
Upload2Flickr's blog: http://upload2flickr.blogspot.com
cabernet1976
Senior Developer
Senior Developer
 
Posts: 154
Joined: Fri Nov 16, 2007 2:34 am
Location: China

Postby plusminus » Thu Jan 03, 2008 3:05 pm

Very nice to see the community members helping each other :D

:larrow: proud ;)

Best Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 17 guests