Hallo all.
I have to create a java web-application for a multi brand client.
The crm would be the same meanwhile the layout could be different.
This is easily achievable with a multi css web-application.
But the user would like to have something where he can move in different position the key elements of the page.
Imagine the struts-t...
I am trying to make my layout look like so. I have tried gridviews, table layouts, and more but cant get it to look right. I want something like this.
ImageButton ImageButton2
ImageButton3 ImageButton4
ImageView1
ImageButton5 ImageButton6
ImageButton6 ImageButton7 ImageButton8 (these are smaller icons)
ImageButton9 (sma...
I want the items in the listview to slide in one at a time from left to right. I have the following in res/anim/slide_right.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator">
<translate android:fromXDelta="100%p" an...
I'm trying to get my textview to hug the left side of the screen while the button hugs the right side (and if possible just for ocd sake have the text view center itself vertically to be in line with the button) but not do it using absolute values. Here's my coding:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="htt...
Hello,
I'm trying to make some "Chat view" with speech bubbles like on the sms iPhone app.
This is a row I done in the xml editor :
http://img44.imageshack.us/i/xml.png/
But when I launch the my application, I get this :
http://img59.imageshack.us/i/resultt.png/
I don't know why the button to answer is so far away my Relative layout ...
Hi,
Using JTabbedPane we want to implement a design that requires tabs to be overlapping (illustrated in image that can be found here: http://imm.io/YAZ).
Not exactly rocket science, but I can't seem to find a solution (not even after extensive googling).
Is this possible using JTabbedPane (via PLAF maybe) or do we need to write a c...
I am trying to set up a scrollview in the middle of the screen, in between a header (tablelayout) and a footer (button within ralativelayout).... My problem is that while the child items (edittext and spinners) stay in the assigned area, the scrollbar extends the entire length of the screen. Any idea what I'm doing wrong? Thanks in advan...
Hello,
I have been playing around with following android app example.
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList2.html
I am able to trigger an action when a child is clicked however I cannot seem to figure out
how to:
1. Customize the label of each child.
2. Change how each...
I need to design a grid of 2x30 buttons on the screen with labels of names.
What's the best layout-way to create the 2 groups of buttons given the button info/color/title will be populated from a database.
I was thinking a TableLayout perhaps, then in code create the buttons and add them to cells?
...
There is the way to change visibility of View, but how can I change programaticly visibility of layout defined in XML? How to get layout object?
<LinearLayout
android:id="@+id/contacts_type"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="go...
I placed an image in each ListView Item at the right side,In the layout xml,I set its width and length as 20dip ,kind of small,and I find it is hard to click at it cause the image only occupied 20*20 dip,I hope the length of it doesn't change,while its height full filling the parent,
I tried :
android:layout_width="20dip"
androi...
On a button click, I make several changes to form elements (hiding some, showing some, bringing some to front, etc.). After those form element changes are made, I run an external process with a Process.Start(). However, even those those form element layout changes are sequentially coded before the Process.Start() call, they're not bein...
I tried my first Android app following the "Tab Layout" sample from developer.android.com. I followed it perfectly (I think), but I changed some names only. It will not start. Just says "...stopped unexpectantly". Tried debugging with DDMS, but dont get anything from the log. Please help. Here is my error log:
08-12 15:06:16.932: DEBUG/...
I am currently working on a Photoshop-like transformer application to work with DisplayObjects as layers. I have an ArrayCollection which serves as my data provider for my List of values, but the problem is that the items are appearing in ascending order in the List:
0 - Item 1
1 - Item 2
2 - Item 3
3 - Item 4
Since it's a layer manag...
I consider this a pretty simple request, but I can't seem to find a conclusive answer in my searches. How can I determine the bounds of a particular visual element in my window, relative to some other parent element?
I've tried using LayoutInformation.GetLayoutSlot but this just seems to return a Rect at 0,0 and doesn't reflect the actu...
I want to dynamically add some views to a LinearLayout that is already defined in XML.
I'm able to add views to the screen but they are not being placed 'inside' the right LinearLayout.
How can I get a reference to this specific Layout from code, similar to getting a View by using findViewById()?
...
I am writing an application that is a virtual notebook. The idea is to have panels with various content (which is based on an external file) added to a panel that acts as a page. Once that page is full, its specialized add method should return false.
The problem is that I can't figure out how to accurately determine the size of the pane...
I have a View comprised of two TextView if first is too wide can I get the second to display on the next line?
Is there a solution?
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView android:text="If this text is too wide"
android:textSize="20px"
android:te...
I have a list, and I want 'Next' and 'Previous' buttons at the bottom of the list. I've tried to make the ListAdapter for the list something other than simple_list_item_1, but Android won't let me. I keep getting '... can't be resolved'.
Now, simple_list_item_1 is some kind of magical unicorn that is impossible to find, so I can't chang...
I have a some modules and 1 layout. How can i do this thing?:
For each module content of the site should be individual.
...