I'm trying to develop a widget for Android. I'm using Eclipse but I can't get the view editor setup to match what I'm going to see when I deploy to my phone.
I'm creating a 4x1 widget. I've gone through and tried setting up a new "Device" so that I can preview what the widget will look like before I deploy. I said the device is landscape, setup a 240dpi for the x and y on the device and set the dimensions to 294x72 (also tried 72x294 but that didn't work any better).
I've done some googling and I can't seem to find any guides for setting up Eclipse.
Any help is greatly appreciated.
Thanks
So, what I ended up doing was just creating my main LinearLayout view to the width and height of the widget I was writing. I don't like having it so hard coded like this because if I change my widget size I have to change it in two places, but oh well. it works.
Related
Why flutter does not contain a preview of the app while we are programming it?
Is there any design plugin to be able to drag and drop widgets like in android studio for android apps?
It is difficult to build an interface from code without having a preview of the application.
Thanks!!
Disclaimer: This is not a first party tool.
I think what you're looking for is this:
https://flutterstudio.app/
It's a drag and drop editor for building Flutter layouts.
My personal recommendation is to use an emulator and learn how all the layout widgets work. Thanks to hot-reload it's super easy to experiment and create what you're looking for.
Well, you have emulator. What else do you want to preview your app?
Also on dart dev tools, you have a render tree and widget inspector. There is an option called show debug paint that I highly use to see the size and boundaries of widgets, and many other options I didn't discover yet.
You can use flutter studio if you want to create your ui by dragging and dropping widgets but I didn't use it.
And I just found that.
I really didn't understand what you mean by previewing.
For example, when you are starting and have a lot of examples, you might not remember what they look like.
I might suggest that you save a screenshot in your assets, so you can then remember what the app is about, without running the code.
I've looked through every single widget on glade trying to replicate this "box/table" style seen here on Settings:
But I haven't found anything like it anywhere on Glade or on the official docs :(
The closest I've come to replicating it is through a frame without a label and with separators and custom css that changes the background color to #base-color, and although it kinda works alright in some themes:
In others it just plain doesn't work:
And I'd imagine that with more elaborate or complex themes it will look even worse.
So my questions are: What is the name of this Widget shown in these pictures? And if it does not exist or is not available in Glade, is there a way to replicate it more reliably than what I've shown here?
It is called a GtkListBox. As you can see, it takes any other widget as a child. So you have to add rows to the ListBox and then add widgets to each row.
Here is an example in Python.
I've a really really weird bug in production.
For some customers and some setups (this can happen on a Linux and a Windows box), our GWT application doesn't render in full (there are a widgets that are missing). The weird thing is that if we ask our customers to start the JavaScript debugger (CTRL-SHIFT-J on Windows), the content displays. Viewing using another browser (like FF) works.
We've been banging our heads bloody a few days now... any ideas?
Sounds like a problem with the height of the component containing your logs objects. Did you try to set a fixed height in pixel? I assume once you open the debugger window, Chrome is forced to render the page again and adjusts the height of the container, so your elements become visible.
I'm an iPhone developer, but new to web development. I've done some basic HTML websites and made one in iWeb as well. I'm trying to branch out to mobile web development now, so I checked out Dashcode.
Anyway, I'm trying to put a Call Button, Mail Button, and Map Button in horizontal alignment. I realize that I can add a Column Layout and have two buttons in a row, but that's the most I've gotten.
Any ideas? Thanks!
Thomas
Edit: I still haven't figured this out yet. I was given advice about a fixed position button bar, but I am not sure how to implement it. I've been looking at code, but haven't gotten it yet. Still trying though. Any help is appreciated!
What i do usually is to select the element you can't align horizontally and then go to the inspector -> dimension tab and in disposition you select fixed absolute.
This should work but beware because if you've the intention to change element's place dynamically you may have some surprise...
I think you are looking for something like this.
A fixed position button bar is created with several buttons side by side.
/Mogens
The GWT Incubator contains this widget, but it doesn't provide the clean look and feel I am looking for. The Same page does show precisely the widget I would like to use:
A thin resize bar with the small middle arrow icon which is clicked to hide/show a docked panel on the side of the page.
The widget appears on many google services pages, which makes me suspect that it may be a common widget:
Google Reader
Slightly modified (animated) version on Maps
Does anyone where to find or know how to build this widget in GWT.
How about using a VerticalSpliPanel and overriding the OnClick event? On click you can hide your navigation panel.
I don't think Maps and Google Reader are build using GWT. I know Wave is, and it doesn't use the collapsible panel you're looking for... My guess is that this specific widget is not available in GWT but you may be able to find a suitable replacement. Let me know if you do.