I'm trying to achive the following programmatically (rather than declaratively via XML):
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Tuesday, June 5, 2012
Laying out Views in RelativeLayout programmatically
Monday, May 21, 2012
EditText, inputType values (xml)
Where can I find the values that inputType can have?
I'm aware of http://developer.android.com/reference/android/text/InputType.html , but how should the values look like in layout xml files?
Monday, May 7, 2012
How to layout widgets using DockLayoutPanel and UiBinder in GWT 2.0?
I'm trying to get a simple layout working under GWT 2.0 using UiBinder. The layout I'm trying to get is one that mimic Java's BorderLayout in where you can specify different panels in the north, south, east, west and center directions; for that I'm using DockLayoutPanel. I would like to get a header and footer, both with fixed width. The remaining viewport space would be occupied by the widget assigned to the DockLayoutPanel center slot.
Friday, April 27, 2012
Android — How to position View off-screen?
I'm trying to animate a simple ImageView in my application and I want it to slide in from the bottom of the screen and come to a resting position where the top 50px of the view is off the top of the screen (e.g. the final position of the ImageView should be -50px in X). I've tried to use the AbsoluteLayout to do this, but this actually cuts off the top 50px of the ImageView such that the top 50px is never rendered. I need to have the top 50px of the ImageView visible/rendered while it's animating and then simply have it come to a rest slightly off-screen. I hope I've explained that well enough.
Tuesday, April 17, 2012
Can you center a Button in RelativeLayout?
I'm trying to center a button in relative layout, is this possible? I've tried the Gravity and Orientation functions but they don't do anything.
Tuesday, April 3, 2012
Android Designer like "Interface Builder”?
We are beginning to learn Android, converting our iPhone apps over.
Wednesday, March 7, 2012
BoxLayout can"t be shared error
I have this Java JFrame class, in which I want to use a boxlayout, but I get an error saying java.awt.AWTError: BoxLayout can't be shared . I've seen others with this problem, but they solved it by creating the boxlayout on the contentpane, but that is what I'm doing here. Here's my code:
Tuesday, February 28, 2012
Java - How to resize components in GroupLayout
., Hello, I have a problem with GroupLayout . My code is:
Friday, February 24, 2012
Java Swing Card Layout change the displayed Panel?
so I have this jFrame with a Panel. Inside that panel there are two more panels and the layout is set to cards. Inside one of those two panels there is a button. How can I change the panel thats being displayed when that button is pressed?
Tuesday, February 14, 2012
How do I make a GUI that looks like the attached picture of a simple stock market app?
Using these layouts; FlowLayout, BoxLayout, GridLayout, BorderLayout and GridBagLayout im trying to make my GUI look like below. I tried Flow, Grid and Border but I couldn't make it look the same.
Tuesday, January 17, 2012
Android - Layout with images
I've been working on this for few days but I couldn't get the layout I need. I would like to have a layout similar to the image below. Can anyone guide me with this ? What kind of layout and view should I use ?