English 中文(简体)
表2
原标题:Table layout only as wide as first image?

I m Building an Anders, and using a tableLayout Viewgroup to show my data.

我希望表态能够占据整个屏幕的宽度,然而,我却难以工作。

似乎发生的情况是,本表的广度与表上最广泛的内容一样,就本案而言,我所描述的形象就是如此。

https://i.stack.imgur.com/U8YTV.png”rel=“nofollow> 这里需要一个插图以说明问题。

此外,,请见我的布局。

具体地说,我应如何把布局延伸到整个屏幕上?

提前感谢!

最佳回答

页: 1 因此,应当有<代码>stretchColumns=”0"。

问题回答

创建单一栏目<代码>可检索是毫无意义和浪费的。 采用垂直<代码>LinearLayout。 你们可能认为,在作为一方利益的问题上,它做得更好。

Also, do not repeat the xmlns:android="http://schemas.android.com/apk/res/android" -- it only needs to go on the root element.

BTW, columns are indexed starting from 0, so you are stretching a non-existent column in your existing TableLayout.





相关问题
how to represent it in dtd?

I have two element action and guid. guid is a required field when action is add. but when action is del it will not appear in file. How to represent this in dtd ?

.Net application configuration add xml-data

I need to add xml-content to my application configuration file. Is there a way to add it directly to the appSettings section or do I need to implement a configSection? Is it possible to add the xml ...

XStream serializing collections

I have a class structure that I would like to serialize with Xstream. The root class contains a collection of other objects (of varying types). I would like to only serialize part of the objects that ...

MS Word splits words in its XML format

I have a Word 2003 document saved as a XML in WordProcessingML format. It contains few placeholders which will be dynamically replaced by an appropriate content. But, the problem is that Word ...

Merging an XML file with a list of changes

I have two XML files that are generated by another application I have no control over. The first is a settings file, and the second is a list of changes that should be applied to the first. Main ...

How do I check if a node has no siblings?

I have a org.w3c.dom.Node object. I would like to see if it has any other siblings. Here s what I have tried: Node sibling = node.getNextSibling(); if(sibling == null) return true; else ...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

热门标签