I'm trying to insert some spacers into a layout on JPanel. I've got 3 buttons and I'd like to put something similar to Box.createRigidArea(new Dimension(10, 0)) between them. Netbeans 6.9.1 doesn't seem to have an option to create them - is that true? Is there some workaround?
...
Hi, I'm trying to insert a new panel with a minimal size set onto an existing form. Unfortunately after I do this:
this.add(scrap);
this.moveScrapCentre(scrap); // runs setLocation(...)
this.revalidate();
this.repaint();
(where this: JPanel with null layout, scrap: JPanel with box layout and children)
the scrap gets resized to (0,0) ...
Hello all,
I have list of categories that is contained in li's on one column of my page (side bar). I now want it to span the whole width of the page in several columns. I would always like 3 or 4 columns to fit the page. This is the code that generates the one column.
<div id="sidebar">
<ul>
{insert...
I have class extended from JPanel. This class contains several other JComponents and a lot of painting. What I did and I know it isn't correct is, I overrided the paintComponent for the paintings, so far so good.
But I also set the location and the size for all subcomponents in this method, because they depend on the getWidth and getHe...
In my Android app I use a TabWidget without any special customization. I'd like Android to take care of the specific appearance, which works fine if you compare Android 1.6 with 2.1 for example. By just using a TabWidget the same code leads to different forms of tabs because the SDK defines how to draw it.
Here is how it looks on 2.1 for...
Hello,
I created a custom background image and wanted to use it as the background for a layout that has height of wrap_content. However, the total height of the contents of within that layout are much less than the height of the background image.
When I set it as the background in XML via android:background="@drawable/image", I notice...
I'm designing a plugin for a high traffic forum. What I am doing is listing related threads using a search API, which has a maximum of 800 searches per day
What I'm wanting to do is create a database to store the results, cache them for one day so it will be used instead of the API.
Would a table layout such as this be optimal:
Tabl...
Hi,
Im trying to have a searchbox on the top of my list view. But I want this searchbox to disapear sometimes and the listview to resize to regain space. Is there a way I can do that without reloading another and different layout ???
is there a way to add and remove a component from the current view ?I have been playing with setvisibil...
I use one layout for all my emails in my Notifier model (20+ emails)... however sometimes I just want to send a plain text email with no layout or html at all. I can't seem to be able to figure out how? If I try to send a plain text email i still get the layout, and all the HTML in the email.
I'm using Rails 2.3.8.
I read about this ...
I'm trying to implement a SlidingDrawer that will occupy the full screen width, but whose height is determined dynamically by its contents: in other words, standard fill_parent layout behaviour for the width and wrap_content for the height. That's exactly how I've specified it in the layout XML (see below) but the sliding drawer always o...
I have a layout that is three linear layouts. The top has some icons and the middle has a tabhost. Each tabhost has a list inside it. The bottom linearlayout has two buttons that should stay at the bottom on the screen at all times. The problem is when a list in the tabhost gets too long, it displays over the buttons. I tried to fin...
I've noticed that Android, WPF, and Silverlight all follow a two-pass layout pattern. There's a recursive Measure() method that gets called to size the element, possibly multiple times. Then a recursive Layout/Arrange() method is called which lays out the exact positions of children in their parent control, and will also set the final si...
I have three divs:
<div class="A">A</div>
<div class="B">B</div>
<div class="C">C</div>
I want them to be positioned like this:
A C
B
Where C should always be in the top right corner of the container they're in. How do I go about this in CSS using only the three divs and in that order?
I've tried a lot of different combination...
I have an app that has a portrait layout. When I rotate my phone into landscape, it loads another layout that is strictly landscape (it is displaying an ImageView). How can I make the transition from portrait to landscape animate smoothly?
...
Hi everybody,
I started learning android development. I'm following a todolist example from a book.
Here is a piece of code:
// Create the array list of to do items
final ArrayList<String> todoItems = new ArrayList<String>();
// Create the array adapter to bind the array to the listView
final ArrayAdapter<String> aa;
aa = new ArrayAda...
I have a custom control which is hosted in a Window with some other controls on it. The custom control and the window are in different assemblies as the custom control is to be shared across several applications. Within the window I define a style for type FrameworkElement and then in that style I set the ControlTemplate to utilize an ...
I'm looking for a jquery plugin or javascript that will columnize a list.
I've seen Columizer, which is great and the configuration options are just what I need, except that it doesn't columnize data in the direction I need.
My list:
1. 2. 3. 4. 5. 6. 7. 8. 9.
Columizer behavior I want:
1. 2. 3.
4. 5. 6.
7. 8. 9.
Columizer behav...
Hi,
Let's say I have two categegories, A and B.
I set A to use 'layout_a' on Catalog -> Catalog Categories -> Click a category -> click custom design tab
I set B to use 'layout_b' on Catalog -> Catalog Categories -> Click a category -> click custom design tab
When I visit category A and B, theydisplays products using their own layout...
In Android when I am adding a view object like ImageView to FrameLayout view and then immediately trying to call layout() method to repositioned the added view object it is not working. But when I call the layout method alone after some new event e.g. touch event then layout() seems to work. This also happens when bringToFront() and layo...
Hi,
I have a layout which might be a bit unusual. The structure is the following:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<org.CustomSurfaceView
android:id="@+id/page_flip"...