layout

how can I find the layout parameters of the toast widget?

I like the layout of the toast widget very much, that means rounded corners, transparency, light grey border. Is there any way to see the layout parameters of such android standard widgets like the toast? I would like do define a TextView with the same layout parameters. ...

Android ListView Not selectable anymore?

When I use a ImageButton in the ListView row, the ros is no selectable. When I change it to a ImageView it is selectable. I have this simple row layout, and below is my list , am I missing something simple? <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" android:layout_widt...

creating static frame and changing content pages in flex

I need to create a static frame and a changing content... currently envisaged as frame containing the side panel and header and footer content. The content panel will call mxml based on the content sought. Two questions a) how is the frame paradigm- with static frame "containing" other content done. I dont want to repeat the header and ...

Where to put code required by the layout in Zend Framework ?

I am using Zend_Layout for the layout of my Zend Framework application. It is very simple, but I still have a few operations that I need to do in the layout. For now, the code is included between PHP brackets, but I feel like this is not really the cleanest way to go. I saw people using plugins, but I don't think this is the way I want ...

Textview wrap around View

Hi, I'm trying to make my horizontal layouts take advantage of the room available. In an info showing activity I have a 'fact box' followed by a large box of text. I'd like the infobox to float right, similar to the following picture. Is this possible using the android TextView api? ...

How to create a class that is a widget that has a QTextEdit and a QToolBar above the text edit.

My intent is to create a QTextEdit with its reach text controls. The controls I want to put in a toolbar. But I have difficulties with controling the layout. The problem is that the overlap if I put a QTextEdit in a QWidget (my class inherits QWidget) which has a toolbar. Another way I tried was the following: my class inherits QTextEdi...

TabLayout in android

hi,guys... please, let me know how to bring a activity within the following Tab Programatically.. ts1.setContent(new TabHost.TabContentFactory() { public View createTabContent(String tag) { //here i have to bring my page(Activity) return frameLayout; } }); please , its very urgent....help me out to find the solut...

Android: trying to understand android:layout_weight

I'm trying to divide a page in three parts. I'd like to do it in percentage values, however that is not supported by Android. Instead I have to use android:layout_weight. But I have a hard time understanding it and getting it right. Especially how the actual size gets calculated. Is there a way to get a percentage value (0..100%) out of ...

Flex layout - resizing "inline" text components

Hi, I'm trying to create a simple layout of 3 horizontal Label/Text components. I'd like the components to resize depending on their text content, which will change at runtime. The components should look something like this: <mx:Label text="{firstNum}" /> <mx:Label text="-" /> <mx:Label text="{secondNum}" /> The output would look li...

HTML coding order versus layout question...

I want to design a site with header, navigation part and content... for SEO purposes I want the coding in the order of content, header and navigation area... but when viewing the site we want to see header first then navigation area then content... is there any way doing this ? ...

android button fine text alignment

I'm trying to create standard button in android with a background and some text in front but some fairly specific alignment. I want the text to be centered vertically and on the left with 20dp of padding. The alignment works but the padding doesn't. I know I could probably get the desired effect by putting a few spaces in the text but th...

Android: Bar with centered image and buttons on the right

Hi all, I'm really struggling with a part of layout in my app. I have a header bar with a centered image and on the right there should be two buttons (or clickable images like I have right now). I managed to get the images next to eachother (all centered) but I want the images on the right. When I use layout_weight to make the 'first' o...

Can I have a List view and images icon with textview on the Android

I need to have a listview like it is having for the following android application Since I cannot post the image this is how it should be INAGE Over here | Some Free text | User name etc Here is your task Task 1 > Task 2 > Task 1 & Task 2 are the list which would be dy...

App crashes when switching to landscape layout

I am having trouble setting up landscape mode in my application. I have a /res folder that contains a layout folder and a layout-land folder layout -----main.xml layout-land -----main.xml My /layout-land/main.xml contains different UI elements than /layout/main.xml. How can I map each layout appropriately when the user has switched ...

Right align a table in firefox help, how can I support mulitple browsers

Good Afternoon All, I have a table inside a div. The div has a style rule text-align:right;. I realize the element is a table and not text, but nonetheless, I need the table to right align in FireFox. I stumbled upon -moz-right which does the right thing in FireFox, however this breaks every other browser, i.e. the table aligns left as ...

Set a new view's margins programatically

I have a FrameView that's created in my XML layout, and in my code, I'm trying to create a series of new ImageViews and add them as children of this FrameView. The ImageViews are small, only about 15 pixels square, and I want them to show up in various positions around the FrameView (I'm trying to implement what looks like a radar scree...

Android : dynamic layout vs hardcoded XML

Building an application, I need to make a big grid/table of buttons. I need to make the number of rows and columns dynamic. That is, evolving when I send some parameters through the network (the network part is OK, I can transmit/receive thing and store in a variable.) ...

Creating layout dynamically from template

Is it possible to load a layout XML at runtime and load into activity? In my app, I have various types of data like Person, Company, City, etc; The requirement is to dynamically load the layout, find views by tags (property names like Person.name, Person.address) and then fill in data. For example, if user has selected an object of type...

Debugging incorrect AWT display

Hi, I'm trying to modify an existing application using AWT for dialogs, etc. I don't know all the code of the application, so I'm not sure how are the objects stacked. I tried adding a new JButton to a JPanel with no layout. I set location and size, validated, repainted... and nothing is displayed. Now I'm a bit lost - how do I figure o...

Android: button in IME's suggestion bar not clickable

I'm subclassing InputMethodService to create my own personal keyboard. A lot of stuff already works quite nice. But now I'm playing around with the suggestion bar (also called "candiate view"). For now I'm just trying to load a static layout with one button in it: @Override public View onCreateCandidatesView() { LayoutInflater mLayoutI...