width

In Android, how can I set a ListView item's height and width?

孤人 提交于 2019-12-21 09:26:31
问题 I want to create an interface that has one or two listviews that ultimately span the entire screen with two rows. How can I change their height so that they take up 50% of the screen, vertically? If it's along the same lines, I'd love to know how to do this regardless of orientation. With regards to width; let us say I have two listviews, each with one row. They span the entire screen as described above. The lower listview has two clickable items within it that each take up 50% of the screen

In Android, how can I set a ListView item's height and width?

橙三吉。 提交于 2019-12-21 09:26:10
问题 I want to create an interface that has one or two listviews that ultimately span the entire screen with two rows. How can I change their height so that they take up 50% of the screen, vertically? If it's along the same lines, I'd love to know how to do this regardless of orientation. With regards to width; let us say I have two listviews, each with one row. They span the entire screen as described above. The lower listview has two clickable items within it that each take up 50% of the screen

CSS make textbox fill all available width

别等时光非礼了梦想. 提交于 2019-12-21 07:26:13
问题 I have the following "line" in my web page <div style="width:100%"> "Some Text" <DropDown> "Some more text" <TextBox> <Button> <Button> </div> The DropDown control I don't really have control over the width, as it sizes to fit whatever the longest option value is. The Buttons are fixed width. How can I get the TextBox to fill all available remaining width? I tried putting it in a table but run into the same problem, ie how do I make all other columns as small as possible to fit their content

CSS make textbox fill all available width

喜夏-厌秋 提交于 2019-12-21 07:26:09
问题 I have the following "line" in my web page <div style="width:100%"> "Some Text" <DropDown> "Some more text" <TextBox> <Button> <Button> </div> The DropDown control I don't really have control over the width, as it sizes to fit whatever the longest option value is. The Buttons are fixed width. How can I get the TextBox to fill all available remaining width? I tried putting it in a table but run into the same problem, ie how do I make all other columns as small as possible to fit their content

Is it possible to prevent a multi line HeaderText in a DataGridView?

一笑奈何 提交于 2019-12-21 06:58:58
问题 When the length of the HeaderText property reaches a certain character limit and there is a space in the text, WinForms automatically inserts a link break in the header: What I want: +-----------------------+--- | Measurement Value (%) | ... +-----------------------+--- What I get: +-----------------------+--- | Measurement Value | ... |(%) | +-----------------------+--- There is more than enough space to display all header cells without the lines breaks, but for whatever reason it is still

UITextfield text position not animating while width constraint is animated

我的未来我决定 提交于 2019-12-21 05:05:37
问题 I have three UITextField aligned in a container used to choose a date. At first only the month textfield is shown in the container and takes the full width, then when the user chose the month, the day textfield appear and they both take half of the container. The text alignement in these textfields is centered. My problem is that when I animate their size, the text doesn't animate and jumps directly to the final position while the width of the textfields animate correctly . Step 1 : The

Mobile website html element too wide

跟風遠走 提交于 2019-12-21 04:13:55
问题 I'm designing a mobile version of my website, which should be like a mobile application. The problem is that there is a strange width to my html element in my mobile browser. I have tried setting body and html to width:480px; and the content is 480px but even then there is a lot of whitespace next to the content (estimated at about 300px). The effect of this is also that the website is not zoomed to the content but to the content + the whitespace and you first have to zoom in to properly use

Make narrow characters with CSS

徘徊边缘 提交于 2019-12-21 03:10:54
问题 How do I reduce characters' width of Arial-like fonts with CSS? 回答1: You can't reduce character width, but you can reduce letter-spacing. span { letter-spacing: 0px; } 回答2: Use narrow fonts in your font-family declaration. These are pretty common. font-family: "Helvetica Narrow","Arial Narrow",Tahoma,Arial,Helvetica,sans-serif; 回答3: Streching a font will be possible with the font-stretch property of CSS 3. 回答4: You can just scale your text. For instance: .my-text { transform: scaleX(0.5); }

WPF DataGrid Column Width Auto and Scrollbar

早过忘川 提交于 2019-12-20 17:47:32
问题 I have a DataGrid with many columns. I want Width="Auto" with scrollbar showing everything if window narrower than all columns. If window wider I want columns to span empty space so there is no dead space. Basically I want the column minimum width to fully fit contents or header. And expand to larger if window wider. 回答1: In order to "fill" all horizontal space in WPF DataGrid as you specified, make sure you have these properties set in XAML : <DataGrid HorizontalAlignment="Stretch"

How to set font width in an Android textview?

雨燕双飞 提交于 2019-12-20 17:36:26
问题 I am developing an app that displays information such as ascii arts which are very sensitive to font width. I've been using monospace font, but it does not work well because there are wide chars (such as Chinese and Japanese characters) in the information and the textview does not make the wide chars exactly twice wide as regular chars. Therefore I am trying to see if it's possible to alter the width of fonts in a textview, or if there's better way to solve this problem? Is Installing another