layout

how to read value from string.xml in android?

dear frineds, i have written line String Mess= R.string.mess_1 ; to get string value but instead of returning string it is giving me id of type integer can any one guide me how can i get its string value that i have mentioned in string.xml file?? any help would be appriciated. ...

css sticky footer without scrolbar

How to do to avoid having the scroller with a sticky footer to the bottom of the page (not bottom of window)? When I remove height=100% from content and sidebar, I'm no more getting the scroller. However, when doing so, my content and sidebar do not fill all the space down to the footer. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tra...

Custom Right Aligned StackPanel control layout in Silverlight

Hi all, I'm trying to create a custom layout container, with the same characteristics of StackPanel, with the exception that it lays out the items starting at the right edge of the screen. Needless to say it does not work correctly. I have identified a flaw inside ArrangeOverride() where the line Point elementOrigin = new Point(thi...

textboxes in HTML table: How to auto-size?

Hi All, I want to add a row at the bottom of my HTML table(or at the top, whatever) with a textbox in each column (to allow filtering of content of each column). FWIW, the table is based on the jQuery DataTables plug-in. The problem is that the textboxes widen the columns. I want each textbox to fill the width of its column without en...

Horizontal scroll problem

Hey, I am relatively new to Android. I am working on an application wherein i want to display digital signals. But the problem is once I occupy the available screen width how to i add a scrolling feature to continue viewing the signal. Also i am drawing the signal using using drawLine(), so what co-ordinates should i set for drawing the ...

ScrolledForm does only show one bar and never both

i have created a View which contains 1 ScrolledForm only. All Children Composites of this ScrolledForm are instantiated with GridLayout and the depest children are created with a FormLayout. mForm = toolkit.createScrolledForm(this); mForm.setExpandHorizontal(true); mForm.setExpandVertical(true); mForm.set...

How to I make TableView Cells spanning over multiple rows?

Hi there, is there a way to create a tableview in which a cell may span over more than one row. As the two "X" here? 1 2 3 4 5 2 1 X 1 2 1 2 X 4 5 ...

swing: BoxLayout and transverse alignment?

I have a stumper which doesn't seem to make sense. If I run the program below, I get two dialog boxes each containing JPanels. The first one has a couple of JLabels that are left-aligned. The second one extends the first and adds another JPanel as a subpanel, but the group of labels is right-aligned (even though within the group th...

What's the point of 960 Gridder or any grid framework for that matter?

What's the point of 960 Gridder? http://gridder.andreehansson.se/ Is it just useful for laying out websites? I'm not too clear on why exactly these grid frameworks are so beneficial... ...

How to connect a layout view with an activity

in my main view i have public class PlayersActivity extends Activity { ViewFlipper flipper; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.playercontainer); flipper = (ViewFlipper) findViewById(R.id.flip...

Swing: can't seem to get JTable to show properly

The following code shows a bug I'm trying to fix. I have two ways of displaying a table (hierarchy below): JTable directly in a JOptionPane: shows the table fine. JOptionPane JTable JTable in a scrollpane in a JPanel in a JOptionPane: can't seem to show the table. JOptionPane JPanel JScrollPane JTable ...

Listview Row Overlap Problem

I just updated my app and I am getting some odd complaints from people who update it. I am only getting complaints from people with non-stock android phones (phones that manufacturers have modified...HTC phones, cliq, pulse, etc), other phones like the Droid, Nexus work fine. My app (Photo Frame Deluxe) has a list in it with a Image View...

Small ProgressDialog "spinner" for android

I've been able to use the standard "ProgressDialog" for android to show that an indeterminate task is running. But I'd like to use the "smaller" progress dialog "spinner" that's used for indeterminate tasks in some of the standard Android applications like the android Market (there's a small spinning circle that's actually integrated i...

iPhone -- Layout manager for UIViews?

I'm not sure whether "layout manager" is the correct term, but i'm looking for a way to get UIViews to flow into thier parent view, like left-floated div's would in an HTML page. Is there an easy way to do this, either via the iPhone api's or something external? ...

Does C# winforms has a control like "ViewStack" in Flex?

In Flex there is the ViewStack component. Does C# have a similar control? If so, which? If not, how do you create similar behavior? ...

Android: How do I switch the image of an ImageButton when the user releases the button?

I'm trying to make it so that as long as a user is touching the button, it shows one image, and when the user releases the button, it goes back to a default image. I'm trying to use a selector to make this happen: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; <item and...

adding a logo in cake framework by editing default.ctp

where do i put the code for the image, then where would i put the actual image file itself <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <?php echo $html->charset(); ?> <title> <?php __...

creating dynamic view, multiple a view X times, get/set value for each group

I have a base view in XML. <RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="wrap_content"><TextView android:layout_height="wrap_content" android:layout_width="fill_parent" android:text="Family" android:id="@+id/Fam...

Python 3.1 Tkinter layout help. I am close, please help me finish this.

I am using Python 3.1 by the way. I am trying to build a simple GUI using Tkinter - label, text entry field, button on the first row and editable text area with scrollbar to the right and on the bottom of it - on the second row. Please help me fix up the layout. What I have below does not quite work. If I have to use a grid, I will. I w...

BlackBerry - What does getPreferredWidth() and getPreferredHeight() return??

Hi all, I am not getting clear about the concept of getPreferredWidth() and getPreferredHeight() methods. What do they return means on what what basis the values are returned.?? What is difference between getWidth() and getPreferredWidth()??? Thank you.. ...