Hi, I'm battling with Android's retarded layout system. I'm trying to get a table to fill the screen (simple right?) but it's ridiculously hard.
I got it to work somehow in XML like this:
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" a...
For instance, if I have a label:
Blah blah bladity blah
I want the first 10% of this label, such that the font color should be red, and the rest should be green.
This perhaps means it would color the Bl and PART of the a. Basically pixel-wise font coloring instead of character-wise. Is this possible and how would is be accomplished?
...
How can I define underlined text in an Android layout xml file?
...
I'm trying to center a heading (with variable width) and have the underline running from the left hand edge of the page to the end of the text. Unless I'm missing something, there doesn't seem to be an easy way of doing this! The closest I've come to what I want is:
<style type="text/css">
#wrapper1 {
margin-right: 50%;
border-bottom...
I have a WPF form, I want to lay out a standard form onto it. Each form element will have a label, and then a control. Pretty standard stuff.
If I use a wrap panel, it can cause the label and the control to be separated, but I want them to stay together. is there some WPF equivalent of nobr?
Grid works, and allows for column spanning ...
Hi,
have developed an app for BB storm while tilting the device the background image of the app screen does not matches with the screen size, i have tried with the sublayout method
public void sublayout(int width, int height)
{
//update scrren layout based on orientation
if(Display.getOrientation()== Display.ORIENTATION_LANDSC...
hi all,
i am working on tabactivity.
i wanna show my tabwidget below the tabcontent(framelayout).
i done it by setting the tabwiget tab attribute as
android:gravity="bottom"
but the framelayout cant align with those tabs.
that is the tabs are shown at the bottom of the screen and overlap the framelayout
how to do that? if set so...
I want to create separate folders for my layouts, like this in my resource directory:
layout-land
layout-port
this is ok, but this:
layout-small-land
layout-small-port
or
layout-land-small
layout-port-small
Results in:
'Invalid resource directory name'
What gives?
...
You know in MS Word, you can write text and draw&put shapes anywhere you want.. in the text when you hit enter and get to a new line, the shapes below your cursor also moves down one line? I want to implement that property in Java on a pane, using components as the shapes and text. How can I provide absolute positioning for shapes but at...
This problem is similar to when creating alternate colour table-rows, only we are dealing with divs and margins instead of table rows and their colours.
The following code creates as many layers as there are genres returned from a query (if three genres are found, three layers are created); and within each layer created, the code create...
I have the following layout defined for one of my Activities:
<?xml version="1.0" encoding="utf-8"?>
<TableLayout android:id="@+id/TableLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android">
<TableRow android:id="@+id/TableRow01" android:layout_...
ok,
what i am trying to do is to embed a custom view in the default layout main.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.lam.customv...
I created an activity which holds 3 custom components (defined in xml). 2 components extend View, 1 extends SurfaceView. They all lie in a LinearLayout, deviding screen real estate equally amongst the components. Click to see. I'm new so I can't post images directly...
Now I would like to maximize one View when it is clicked (using a sl...
I tried setting the position of child-panel at the center of parent-panel by using
parent_panel.setLayout(new BorderLayout());
parent_panel.add(child_panel, BorderLayout.CENTER);
But it's getting added at the middle of horizontal screen but vertically at top.
What do I need to do to add it at center of screen vertically and horizonta...
friends,
i have created custom title bar using following titlebar.xml file with code
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/myTitle"
android:text="This is my new title"
android:layout_width="fill_parent"
android:layout_height="fill_par...
So my layout looks basically like this:
<ScrollView>
<RelativeLayout>
<BunchOfViews/>
<ImageView android:layout_alignParentBottom="true"/>
</RelativeLayout>
</ScrollView>
I have the ScrollView so all of the layout always is visible no matter the height of the screen. The problem is that on a very high screen, I...
I'm having a problem that when my frame is shown (after a login dialog) the buttons are not on correct position, then in some miliseconds they go to the right position (the center of the panel with border layout).
-- update
In my machine, this SSCCE shows the layout problem in 2 of 10 times I run it:
import java.awt.BorderLayout;
impo...
What is the best way to "swap" one QGraphicsWidget with another in an existing view? I have a tree view widget and a label widget, and I want them to occupy the same space at different times. Specifically, when there's an error, I want to show it in the label, and when there's no error, I want to show the tree.
I have tried programmatic...
Hi all,
Using ExtJs.
I'm trying to design a main which is divided into three sub panels (a tree list, a grid and a panel). The way it works is that you have a tree list (west) with elements, you click on an element which populates the grid (center), then you click on an element in the grid and that generates the panel (west).
My main ...
Hello all,
Is there a way to set the location of the output windows even before running.. My project has more than two forms , and i would like to display them in a non-overlapped fashion , and set their layout beforehand. ( I'm using netbeans..)
...