Ok, I'll try again - it was a Sunday after all :-)
Basically all I'm after is a LinearLayout sitting in the center of the
screen, that I can scroll horizontally from one item to the next,
using a finger scroll, rather than just buttons.
Any help with this really appreciated.
--
You received
dialog.getWindow().getAttributes()
It will a WindowManager.LayoutParams lp;
set lp.x,lp.y,lp.height,lp.weight and lp.gravity
dialog.getWindow().setAttributes(lp)
Try this You can adjust dialog sie and position using
this
On Nov 16, 2:04 am, Neilz neilhorn...@gmail.com wrote:
Ok, I'm hoping for some luck with the Monday daytime crowd...
I can't resolve this. I'm even trying to get hold of the height of the
Dialog after it's been drawn, but all I get is -1 or 0:
LinearLayout frame = (LinearLayout)
layout.findViewById(R.id.dialog_root);
Log.e(Tag, HEIGHT +
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
ScreenWidth = dm.widthPixels;
ScreenHeight = dm.heightPixels;
And then set your main view's height and width to match those values.
Here's a dialog I have with a webview top and a button row bottom.
In general I've found dialogs to be a total pain to layout.
Pent
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent
Nico, the problem here is that I want the dialog to wrap (shrink)
where the text isn't that big. I simply can't get hold of the size of
the dialog once it's displayed, so I have no idea when to set what you
show below. So the layout itself has to do the shrinking, but stay at
a maximum height
I'd consider going android:layout_height=0px on the WebView. I'm not
sure what wrap_content means in this context, particularly if the
content is long.
On Mon, Nov 15, 2010 at 12:15 PM, Pent tas...@dinglisch.net wrote:
Here's a dialog I have with a webview top and a button row bottom.
In
I'd consider going android:layout_height=0px on the WebView. I'm not
sure what wrap_content means in this context, particularly if the
content is long.
Yes, that's the usual combo, and works here too.
Most of my dialog layouts are the result of 30 rounds of 'maybe this
wiill
work' tweaking.
Pent... your layout did the trick for me. Strange thing is, I can't
really understand why yours works and mine doesn't... that's android
for you I guess!
Thanks :-)
Oh, and this time for once, layout_height=0px; didn't work. It
actually made it zero height.
On Nov 15, 5:15 pm, Pent
WebView has its own Scrolling. I tried it already, and it made no
difference to the overall layout problem!
On Nov 14, 6:43 pm, Marcin Orlowski webnet.andr...@gmail.com wrote:
On 14 November 2010 17:26, Neilz neilhorn...@gmail.com wrote:
Hi all. I have a custom dialog, which contains a
Strangely, that worked, I really didn't think it would ;-)
Thanks!
On Oct 19, 7:29 pm, TreKing treking...@gmail.com wrote:
On Tue, Oct 19, 2010 at 9:25 AM, Neilz neilhorn...@gmail.com wrote:
How can I keep the button area fixed in height, while the webview scrolls
if the text is long
11 matches
Mail list logo