I have a table that has a border around each of the table rows. I get a
problem with the border part when text in one column goes onto a second
line, while the text in the other column doesn't. That causes the row that
doesn't have the text wrapped onto a second line to be be shorter and a
blac
I have TableLayout in ScrollView which filling up with elements
dynamically. It's working fine. But all the elements putting into the
TableLayout. I want to handle scroll down and scroll up event and renew
only 10 elements in the TableLayout according to direction of scrolling. I
used .setOnTou
I have a TableLayout in xml which I want to respond to different
screen sizes and real time changes in the view.
Ive extended tablelayout onMeasure to get the container width. I make
a calculation to get the cell size. In the cells (LinearLayout)
onMeasure, I set the new width with setMeasuredDim
Never mind
I had EditView and NOT EditText my mistake
Thanks
On Mar 6, 2011, at 8:53 PM, Mark Murphy wrote:
> Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
> LogCat and look at the stack trace associated with your crash. It is
> definitely possible to have EditTexts in
Allow Eclipse to run past the point of the exception and get the real
stack trace in LogCat.
On Mon, Mar 7, 2011 at 10:17 AM, New Developer wrote:
> To Mark
> Thanks for the advice and link
> Here is What debug gives when I activate the Activity which has a
> with an
> NOTE: If I change to
To Mark
Thanks for the advice and link
Here is What debug gives when I activate the Activity which has a
with an
NOTE: If I change toAll works well
DalvikVM[localhost:8635]
Thread [<1> main] (Suspended (exception RuntimeException))
ActivityThre
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your crash. It is
definitely possible to have EditTexts in TableRows:
https://github.com/commonsguy/cw-andtutorials/blob/master/03-FancierForm/LunchList/res/layout/main.xml
On Su
I'm trying to create a simple Table Layout
Within the I can have 's but when I place an
in the TableRow
It crashes is an Error and ideas how I can create a table row with both an
and an
Thanks
--
You received this message because you are subscribed to the Google
Groups "Android De
Of-course I can use LinearLayout, but I wanted to understand what the
problem was.
Also my understanding is that TableRow is a LinearLayout so I was hoping it
will present the same kind of behavior
http://developer.android.com/reference/android/widget/TableRow.html. Also
when I initially star
On Sun, Feb 27, 2011 at 3:48 PM, rael_yoni wrote:
> That was just another test... that didn't work.
Well, do you really a TableLayout in this case? If you just have two rows,
consider a LinearLayout which might work better.
--
That was just another test... that didn't work.
Currently the only thing that does work is setting explicitly in code the
height and the width of item
activity.getWindowManager().getDefaultDisplay().getMetrics(metrics);
is.setLayoutParams(new TableRow.LayoutParams(metrics.widthPixels / 2,
metr
On Sun, Feb 27, 2011 at 1:32 PM, rael_yoni wrote:
> it shows only the first row in the middle of the screen (there are black
> "bars" above it and underneath it). and the second row is not seen at all...
> no matter what the content is (I placed TextViews instead of the
> ImageSwitcher)
Your ro
First of all I would like to thank you.
However it still not good. it shows only the first row in the middle of the
screen (there are black "bars" above it and underneath it). and the second
row is not seen at all... no matter what the content is (I placed TextViews
instead of the ImageSwitche
On Sat, Feb 26, 2011 at 8:11 AM, rael_yoni wrote:
> any ideas are welcome... thanks.
Ideas: Give you rows width=fill_parent. Give each of your ImageSwitchers
weight=1.
Theoretically this would make your rows fill the width of the screen and the
switcher each take up equal space within them.
--
I'm wrestling with the Android UI to try to create a table layout that has 2
rows each row containing 2 ImageSwitchers, And would like the table
to occupies the entire screen. But I simply can not accomplish it, sometimes
the emulator shows 1 ImageSwitcher that is aligned to the right of the
sc
HI,
I am using a TableLayout in my activity but because of some reason it
is getting Invalidated (columns of table layout are falling towards
one side of the screen) and I have to call table.requestlayout()
to make it look fine again and again.
I found a scenario in which my TableLayout is gettin
On Fri, Jan 7, 2011 at 3:10 AM, Vadim Vohmjanin wrote:
> Problem is for now, i have only 4 TableRows drawn with ImageViews in it.
> The last one 5th TableRow is shrinked to fit the space on the screen that
> has left after drawing first 4 TableRows. 6th and 7th TableRows are not
> drawn at all, s
Hi.
I have a problem. I want to create a TableLayout, with 7 TableRows.
Each TableRow contain 4 ImageViews in it in one row.
Problem is for now, i have only 4 TableRows drawn with ImageViews in
it. The last one 5th TableRow is shrinked to fit the space on the
screen that has left after drawing fi
Too many LinearLayouts - you only need one for all the text views (with
orientation=vertical and width=wrap_content).
And it's not necessary to declare an XML namespace on each tag (the
xmlns:android stuff), although it does no harm.
-- Kostya
17.12.2010 18:03, Nikola ?:
On Fri, Dec 1
Got it !
layout_weight=1 for children solved the problem.
Tnx once again Kostya.
--
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send e
On Fri, Dec 17, 2010 at 3:50 PM, Kostya Vasilyev wrote:
> Don't use TableLayout here, as its strength is "in the other dimension"
> (aligning views one below another).
>
> You can use a horizontal LinearLayout, with two children: a vertical
> LinearLayout for your text views, and an image view.
>
Don't use TableLayout here, as its strength is "in the other dimension"
(aligning views one below another).
You can use a horizontal LinearLayout, with two children: a vertical
LinearLayout for your text views, and an image view.
Or you can do this with one RelativeLayout: position the image
Hi,
I would like to have two column layout.
In first column I would put 4 textview elements and in the second one I
would put big picture.
What would be the best approach for this?
tnx.
--
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer
--
You received this messa
Hi all,
I am currently looking in to developing an application for the android
platform. I have some information that is stored within the SQLite
Database of Android.
What I want to be able to do is to perform a query to the database
table and populate a TableLayout with the information from the
I was configuring a two-column table where the TextView column on the
right sometimes has a long text string and I wanted it to wrap around
and expand the table cell vertically as it would in HTML. I found that I
had to configure the TextView with layout height & width of wrap_content
in order
i've got a simple TableLayout
2 rows - first row 2 columns and second row 3 columns
i'd like the second view in first row to span to column.
XX
YY ZZ AA
if this is not possible, i suppose i can use 3 nested
LinearLayouts - but that doesn't seem too efficient.
--
You
Hi,
I have a TableLayout in a scrollView, which is ocuupying entire
screen.
I have multiple rows, each having two textviews. Each row occupying
parent width and height as wrapping.
But when i trying to display it TableLayout is not appearing on
the screen.
While i trying to use hei
Hi,
I want to design a table whose first column items remain fixed when
user scrolls horizontally, but should scroll when the user scrolls
vertically.
Similarly the first row items remain fixed when user
scrolls vertically, but should scroll when the user scrolls
horizontally. Can this be achie
Hi,
I want to design a table whose first column items remain fixed when
user scrolls horizontally, but should scroll when the user scrolls
vertically. Similarly the first row items remain fixed when user
scrolls vertically, but should scroll when the user scrolls
horizontally. Can this be achiev
Hi there,
I am new to Android development and I stumbled across two questions:
1.) How can I span a TableCell across two rows in order to achieve the
following
Layout (XX shall be one cell)?
1 2 X X 3 4
5 6 X X 7 8
9 0 1 2 3 4
2.) The emulator switches properly from portrait to landscape via
(N
I have TableLayout defined in the main.xml. Simple, 1 header row and 1 data
row.
I have a TableLayout in a custom widget. On the emulator the columns
line up perfectly. On my G1 running 1.6 they don't line up.
I should note that the TableRow children don't all have the same
number of children (columns). I tried adding extra cells to the
shorter rows but that didn't fix it.
Business Talk wrote:
> How can I make sure that a TableRow fits into the table width
> regardless of the TableRow' size, meaning the row is shrank to fit the
> table's width if the row is too big or it's stretched if the it's too
> small. Adjusting gravity on the row doesn't seem to work.
Look at
How can I make sure that a TableRow fits into the table width
regardless of the TableRow' size, meaning the row is shrank to fit the
table's width if the row is too big or it's stretched if the it's too
small. Adjusting gravity on the row doesn't seem to work.
--
You received this message because
How can one stretch evenly rows of a TableLayout, regardless of the
row's content? I know that One can stretch columns evenly be setting
the stretchColumns='*".
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send ema
Hey,
I want to make something like this:
http://snapplr.com/0g79
So specially the TableLayout (I think they are using that) with
rounded corners!
How can I make that?
Wouter
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to thi
Hai,
In my application I need to use tableLayouts. Either i need to create
array of table layouts so that it would be easy to give a id for each
or use a single table layout each time and change the id( unique id is
the most required). I created a default tablelayout in .java file. My
doubt is
Hello,
I have some table with custom cell, for example,
http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="*"
>
and I want to make "colspan"
Hi all, this is my first post so please excuse any noobiness.
I'll cut directly to the problem to save everyone's time:
I have made a tableLayout in order to display a grid (should simulate
a card game table, but that's not important to this post)
take a look at this code:
...
For some ann
Hey guys
here's my graphic... look at those 4 pics... (from left to right, up
to down)
http://codemax.de/upl/android_prob.jpg
1st -> start situation, vertical
2nd -> flipped, horizontal
3rd -> start situation with text, vertical
4th -> flipped 3rd to horicontal and then vertical again --> pr
I understand the inherited structure of the LayoutParams (parent--
>child), but still I'm getting an Invalid LayoutParams error no matter
what I do:
XML:
http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
JAVA:
41 matches
Mail list logo