I try to use the GradientDrawable to set a gradient to some backgrounds and buttons.
Sadly the documentation is not very detailed.
What are the main attributes to configure the gradient? I understand start and endcolor but some of the other attributes could need some explanation.
At the moment I used images as the background for the ...
Hi guys.
I don't know how to create an custom Activity extending MapActivity and ListActivity ?
I am trying screen that contains of google map and list view.
How to make it ?
Thanks in advance.
...
Hi Android gurus,
I have a ViewFlipper for which I want a listener to fire when the child displayed is changed. I have set an OnFocusChangeListener to the ViewFlipper but it never fires when I flip from child 0 to child 1 or vice-versa. The ViewFlipper contains two RelativeLayouts and I have tried setting OnFocusChangeListeners for th...
dear friends,
i want to know that is there any way to create groups in a form?
i am not talking about heading but groups we make with borders around set of specified field sets.(field sets are for example TextView,EditText and button).
for example.
Vital information:
-----
Other information
-----
any help would be appriciated.
...
Hi guys.
How to add ListView to MapView from the xml resource ?
In order words, I am trying to make a screen contains google MapView and ListView.
Because impossible to extends 2 Activitys' (ListActivity & MapActvity), I am trying to add a ListView(It is created from xml resource) to MapView.
Thanks in advance.
...
The documentation says that if I want to support both portrait and landscape, I basically have two ways of doing that:
Set up the viewcontroller's view so that the subviews autoresize correctly and make smaller changes programmatically at runtime
If the changes are more substantial, create an alternative landscape interface and push/po...
I have huge amounts of data populating an HTML <table> having more than 200 rows and 200 columns.
However, when i scroll the page horizontally or vertically to view the data, the header columns (like th for instance) go beyond the page.
How can i scroll through the table and still keep the top row and leftmost column fixed so that i wi...
Hi,
I want the same thing as http://stackoverflow.com/questions/132251/wpf-animation-of-items-between-layouts but for Silverlight.
Is there any third party libs that are capable of doing this?
Also I would like to do something more than just switching between WrapPanel and StackPanel, but have some more complex layout combinations (e.g...
Good day,
I've been trying to build a perfect footer who sticks at the bottom of the browser window after it's content. And I got help here @ Stack Overflow previously.
But after a while, and doing a few tests, found out that after the browser window is resized, and then I scroll down , the footer overlaps...it is causing me a big hea...
I set a view variable in someAction function like this:
$this->view->type = "some type";
When I access this variable inside layout script like this:
<?php echo $this->type ?>
it prints nothing. What's wrong?
My application.ini settings related to layout
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resource...
When I rotate a large image with CSS
-moz-transform: rotate(270deg);
which sits in a floating div (using Firefox 3.6.3 to display the page), it messes up the page layout: Apparently, the size of the image is evaluated before it has been rotated.
Furthermore, the image is displaced, partly being out of the screen, because the poi...
I have a form I need to show on every page. I'd like to put it in the layout rather than defining it in multiple controllers and view templates. I'm not sure how to do this without creating a slot for it, but then I have to define the slot in every template, and I'm back at square one.
My other thought would be to create a custom action...
I have a list of songs, and I want to put the word "New!" to the left of the new songs like this:
How can I do this so that all the songs line up? I.e., I want the names of songs that aren't new to line up with the names of songs that are new, not with the start of the word "New"
Note that this is trivial if "New!" is an image. I.e.,...
My codes like this:
public void removeTabForLogout(){
if (tabHost.getTabWidget().getChildCount()==4){
tabHost.setCurrentTab(0);
tabHost.clearAllTabs();
tabHost.addTab(getTab1());
tabHost.addTab(getTab2());
}
}
private TabSpec getTab1(){
if (mTab1==null){
mTab1= tabHost.newTabSpec("...
I always read about this funny weight value in the Android documentations.
Now I want to try it for the first time but it isn't working at all.
As I understand it from the documentations this layout:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal...
Hi guys,
I'm pretty new in Flex development. Now I'm learning layouts in Flex. I try to make the following layout.
The red arrow means when enlarge the window, the red arrow widget will become large too. Can anyone implement this layout in Flex? Thanks in advance.
...
I want to be able to layout nested divs with these properties:
width: 100%
height: 100%
padding: 10px
I want it to be such that, the children are 100% width and height of the remaining space after padding is calculated, not before. Otherwise, when I have a document like the below example, the child makes the scrollbars appear. But ...
I have set a background image in my app, but the background image is small and I want it to be repeated and filled in the whole screen. What should I do
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:ba...
I want to layout a page using LaTeX and distribute text snippets/blocks in predefined locations.
Something like this
+--------------------------------------------------------+
| +-------------+ |
| |bla bla bla| |
| |bla bl ab lab| +-------------+ ...
Column Image
please help. the following:
private GridLayout columnHeaderLayout = new GridLayout(7,1);
results in a vertical placement (image) instead of horizontal. what am i doing wrong?
thank you.
EDIT: just found out GridLayout takes in (row, then col) switched! this is very annoying!
...