[android-developers] TableLayout border issue

2012-09-12 Thread Howlin1
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

[android-developers] Tablelayout in Scrollview scrolling event handling

2012-08-13 Thread Иван Дунский
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

[android-developers] TableLayout onMeasure onLayout

2012-01-17 Thread meshgraphics
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

Re: [android-developers] TableLayout Problem

2011-03-07 Thread New Developer
To Mark Thanks for the advice and link Here is What debug gives when I activate the Activity which has a TableRow with an EditView NOTE: If I change EditView to TextView All works well DalvikVM[localhost:8635] Thread [1 main] (Suspended (exception RuntimeException))

Re: [android-developers] TableLayout Problem

2011-03-07 Thread Mark Murphy
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 secur...@isscp.com wrote: To Mark Thanks for the advice and link Here is What debug gives  when I  activate the Activity which has a TableRow with an

Re: [android-developers] TableLayout Problem

2011-03-07 Thread New Developer
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

[android-developers] TableLayout Problem

2011-03-06 Thread New Developer
I'm trying to create a simple Table Layout Within the TableRow I can have TextView 's but when I place an EditView in the TableRow It crashes is an Error and ideas how I can create a table row with both an TextView and an EditView Thanks -- You received this message because you are

Re: [android-developers] TableLayout Problem

2011-03-06 Thread Mark Murphy
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

Re: [android-developers] TableLayout issue

2011-02-27 Thread rael_yoni
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

Re: [android-developers] TableLayout issue

2011-02-27 Thread TreKing
On Sun, Feb 27, 2011 at 1:32 PM, rael_yoni yoni.stoff...@gmail.com 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

Re: [android-developers] TableLayout issue

2011-02-27 Thread rael_yoni
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,

Re: [android-developers] TableLayout issue

2011-02-27 Thread TreKing
On Sun, Feb 27, 2011 at 3:48 PM, rael_yoni yoni.stoff...@gmail.com 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.

Re: [android-developers] TableLayout issue

2011-02-27 Thread rael_yoni
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

[android-developers] TableLayout issue

2011-02-26 Thread rael_yoni
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

Re: [android-developers] TableLayout issue

2011-02-26 Thread TreKing
On Sat, Feb 26, 2011 at 8:11 AM, rael_yoni yoni.stoff...@gmail.com 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

[android-developers] TableLayout getting invalidated

2011-02-04 Thread astegic astegic
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

[android-developers] TableLayout TableRows do not fit into screen. ImageView auto scaling.

2011-01-14 Thread Vadim Vohmjanin
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

Re: [android-developers] TableLayout TableRows do not fit into screen. ImageView auto scaling.

2011-01-14 Thread TreKing
On Fri, Jan 7, 2011 at 3:10 AM, Vadim Vohmjanin vadim...@gmail.com 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

[android-developers] TableLayout two column?

2010-12-17 Thread Nikola
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

Re: [android-developers] TableLayout two column?

2010-12-17 Thread Kostya Vasilyev
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

Re: [android-developers] TableLayout two column?

2010-12-17 Thread Nikola
On Fri, Dec 17, 2010 at 3:50 PM, Kostya Vasilyev kmans...@gmail.com 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

Re: [android-developers] TableLayout two column?

2010-12-17 Thread Nikola
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

Re: [android-developers] TableLayout two column?

2010-12-17 Thread Kostya Vasilyev
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

[android-developers] TableLayout and displaying Database data

2010-10-08 Thread Boardy
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

[android-developers] TableLayout text wrapping issue

2010-09-24 Thread Doug Gordon
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

[android-developers] TableLayout - span 2 columns

2010-09-22 Thread dashman
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. --

[android-developers] TableLayout is not appearing in the screen?

2010-06-22 Thread pnk444
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

[android-developers] TableLayout with fixed row column

2010-03-03 Thread Ajay
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

[android-developers] TableLayout with fixed row column

2010-02-27 Thread Ajay
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

[android-developers] TableLayout, Rotating

2010-02-02 Thread Holger
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

[android-developers] TableLayout will not draw new row addition

2010-01-17 Thread MCON Dev
I have TableLayout defined in the main.xml. Simple, 1 header row and 1 data row. TableLayout android:id=@+id/*reportsTable* android:layout_width=fill_parent android:layout_height=wrap_content TableRow TextView

[android-developers] TableLayout column alignment emulator vs. G1 1.6

2010-01-10 Thread Ranxerox
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.

[android-developers] TableLayout - Raw Stretching

2009-12-30 Thread Business Talk
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 email

[android-developers] TableLayout

2009-12-30 Thread Business Talk
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

Re: [android-developers] TableLayout

2009-12-30 Thread Mark Murphy
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

[android-developers] tablelayout rounded corners

2009-11-09 Thread Wouter
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 this

[android-developers] tableLayout

2009-09-15 Thread mmkr
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

[android-developers] TableLayout

2009-09-02 Thread Dmitry Zelenetskiy
Hello, I have some table with custom cell, for example, TableLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:stretchColumns=* TableRow TextView android:layout_column=1

[android-developers] TableLayout problem

2009-03-19 Thread Sheepz
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: ... TableRow

[android-developers] TableLayout - Flip problem =/

2009-01-19 Thread Chaoz1336
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 -- prob:

[android-developers] TableLayout layout params

2008-05-07 Thread kingkung
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: ?xml version=1.0 encoding=utf-8? TableLayout android:id=@+id/view_contact xmlns:android=http://schemas.android.com/apk/res/android;