Hi all
Here is my problem, Im trying to present a modal view in front of a view with a Navigation Bar.
I managed it fine with my Login modal view, which was presented by the RootView of my application.
But this time the modal view is presented by one of the views of a CustomTabBarController (like in the Tweety app, I created it myself t...
Hello, I'm not new at CSS, but this is problem for me and I can't solve it. I need to build layout as below:
Divs that are at the bottom and at the top have fixed heights. The one in the center have to be exacly in the height of PAGE HEIGHT - DIV 1 HEIGHT - DIV 3 HEIGHT or in some cases smaller.
Also it have to had this size setted b...
Is it possible to load my main.xml layout file in onCreate() and then later in the app, switch to a new XML layout? I've tried placing setContentView() later on in the app but that seems to not actually set the new View because my references to objects in the newly set xml layout file are returning as null. I've tried doing some layout...
This code puts a JTable into a JFrame (sole component of the whole UI):
JFrame frame = new JFrame( "Title");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JTable table = appender.createTable();
JScrollPane scrollPane = new JScrollPane(table);
table.setFillsViewportHeight(true);
frame.getContentPane().add...
I need to find a cross browser way of having two divs contained in a parent div where the first child has a fixed height and the second flows down to be contained in the parent.
<div id="parent"><div id="header"></div><div id="body"></div></div>
height: 500px
_____________________
| _________________ |
| | height: 20px | |
|...
I am working on android 2.2, I developed an application which is having an Image View and a button view.
In HVGA both the image and button are visible, but in QVGA I could see only the image. Rest of the buttons that are present under the image view is not visible.
How do I manage multi-screen resolutions in Android ?
Is there any thing...
In my application, sometimes the following exception is thrown:
07-28 14:49:25.398: ERROR/AndroidRuntime(8097):
java.lang.IllegalStateException: The content of the adapter has changed
but ListView did not receive a notification. Make sure the content of
your adapter is not modified from a background thread, but only from the
UI thread. ...
Ok, my problem is, I have got n-TextViews and they will be added programmatically into a TableLayout. It totally doesnt matter, how I style these TextViews or the TableLayout, everytime I add something, it adds the TextView on the bottom after the other TextViews.
These Views have got a variable width, which is calculated out of their te...
Hi ,
I tried to convert a project to a maven one... it has its .java files in other location than /src/main/java , when i run maven install, all the files (.hbm , .xml) except those .class occurs in my jar.
This is build part from pom.xml :
<build>
<resources>
<resource>
<directory>${basedir}/src</directory>
...
Hello,
I'm trying to turn a layout I designed into a webpage in HTML+CSS.
The layout looks like this:
image
I want the central black div (with fixed width) to be centered while the menu should stay to its left and fill the entire left side of the screen, as shown above.
The problem is that I can't figure out how to style the menu to f...
There is a variety of devices on the market, with different screen sizes, resolutions and pixel density.
What are some layout preferences or tips/tricks that are generally used to make sure the app looks the same across devices?
Thanks
Chris
...
Hi,
In the default Mail application that ships with Android, each message in your inbox has a checkbox next to it. Clicking this checkbox pops up a toolbar from the bottom of the screen with buttons to mark all checked messages as read/unread, delete a message, and star a message. I want to replicate this popup toolbar for my applicat...
Hi,
I understood (more or less) the separation between the MVC parts in cakePhp, however i cannot understand what are the defaults.
meaning:
What should i edit in order to change the root-entry-point of my site(the known "index.html" or "index.php" file, that shouldn't be changed in cake)?
What controller? What model? What view? What ...
Hi,
I've created a custom titlebar for an Activity of my Android application. However, the background is blue. I would like it to be the gray gradient that toolbars generally are. How can I achieve this?
Here is the XML of my toolbar. It places a checkbox on the left side and some text in the center.
<?xml version="1.0" encoding="...
I'm writing an app-widget that displays some numbers, each with label in front of it.
The layout looks like this:
.-----------------------------.
| Label1 | AAAAAAAAAAA |
| LongerLabelLabel2 | BBBBBBB |
| LongLabel3 | CCCCCCCCCC |
'-----------------------------'
There is one outer (vertical) LinearLayout, and each row is a...
Hi!
Is there a way to get ListViewItem height in code, when there is no actual items in list?
My ListViewItem layout:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight">
...
</LinearLayout>
I have tr...
Hello,
I'm converting an app from ASP.NET WebForms to WinForms. There is one asp.net page which contains a ListView/Repeater that contains several custom controls, which in turn contain a ListView with other custom controls. Basically the layout looks like a TreeView, but on each node/leaf there are few controls like comboboxes, etc.
Wh...
Hi,
I've created a custom titlebar for my Android application. All is well except I've placed a checkbox on the titlebar and I want my checkbox to be positioned farther left (so I can line it up with the checkboxes in each list item). I can not figure out how to move it farther left. It's almost like that's as far as it will let me p...
I have a layout question.
Say I have a RelativeLayout appearing at the bottom of my screen. In this, I want to add 2 textviews, in the center, one in the top center and one in the bottom center.
|--------------------------|
| Text1 |
| Text2 |
|--------------------------|
Something like that :-...
This is similar to how-do-i-keep-aspect-ratio-on-scalable-scrollable-content-in-wpf, with the following differences:
I'd like to avoid side-effects of the ViewBox - while the grid should resize when the container resizes, some of the grid content should keep their sizes (buttons for example).
I don't need aspect ratios other than 1:1 (...