Questions tagged [user-interface]

User Interface (UI) is the system through which people interact with a computer. This tag can be used for UI-related programming questions. Note that there's a separate Stack Exchange site for User Interfaces, Interactions with the Computer and User Experience design: https://ux.stackexchange.com.

User Interface (UI) is the system through which people interact with a computer. This tag can be used for UI-related programming questions.

Note that there's a separate Stack Exchange site for User Interfaces, and Interaction- and User Experience design.

References

56892 questions
112
votes
6 answers

How do I reduce the inner padding around the text within an Android button object?

So, at the moment I have a button which looks like the first image above. How do I reduce the padding around the text inside the button itself (To look more like the second image)? Layout width and height is set…
Imran NZ
  • 1,327
  • 2
  • 12
  • 22
112
votes
5 answers

Repeater, ListView, DataList, DataGrid, GridView ... Which to choose?

So many different controls to choose from! What are best practices for determining which control to use for displaying data in ASP.NET?
mattruma
  • 16,589
  • 32
  • 107
  • 171
112
votes
16 answers

How do I set the UI language in vim?

I saw this on reddit, and it reminded me of one of my vim gripes: It shows the UI in German. I want English. But since my OS is set up in German (the standard at our office), I guess vim is actually trying to be helpful. What magic incantations must…
Daren Thomas
  • 67,947
  • 40
  • 154
  • 200
111
votes
15 answers

"ID" or "Id" on User Interface

The QA manager where I work just informed me there is a bug in my desktop app due to the sign-on prompt being "Operator Id" when it should be "Operator ID". Her argument being that "Id" refers to the ego portion of Freud's "psychic apparatus" and is…
sipsorcery
  • 30,273
  • 24
  • 104
  • 155
110
votes
6 answers

Capturing TAB key in text box

I would like to be able to use the Tab key within a text box to tab over four spaces. The way it is now, the Tab key jumps my cursor to the next input. Is there some JavaScript that will capture the Tab key in the text box before it bubbles up to…
Seibar
  • 68,705
  • 38
  • 88
  • 99
110
votes
14 answers

How to change the background color of the options menu?

I'm trying to change the default color for the options menu which is white: I want a black background for every item on the options menu. I've tried some shoots like android:itemBackground="#000000" on the item element within the menu element but it…
feragusper
  • 1,236
  • 2
  • 11
  • 8
110
votes
3 answers

Semantic-ui vs Bootstrap

Which is the best one to use and if possible, please provide the difference(s) and advantages of these two. Semantic-ui vs Bootstrap I am trying to build my UI and really confused as what to use. Please suggest me the best one and if possible with…
Java Questions
  • 7,813
  • 41
  • 118
  • 176
107
votes
10 answers

How to Lock Android App's Orientation to Portrait in Phones and Landscape in Tablets?

I am developing an Android app whose orientation I don't want changed to landscape mode when the user rotates the device. Also, I want the locked orientation to be portrait mode on phones and landscape mode on tablets. Can this be achieved, if yes…
Ankit Rawat
  • 1,151
  • 2
  • 10
  • 13
106
votes
8 answers

How to view table contents in Mysql Workbench GUI?

How can I view table contents in Mysql workbench GUI? I mean, not from command line.
alwbtc
  • 28,057
  • 62
  • 134
  • 188
105
votes
4 answers

Set column width in flutter

I need to set a Column width in flutter, I have to do a layout with 3 sections, one should be 20% of the screen, the other one 60% and the last one 20%. I know that those 3 columns should be into a row, but I don't know a way to set the size, when I…
Joseph Arriaza
  • 12,014
  • 21
  • 44
  • 63
103
votes
10 answers

Limit max width of Container in Flutter

Widget build(context) { return Row( mainAxisSize: MainAxisSize.min, children: [ Container( width: 300, padding: EdgeInsets.all(10), decoration: BoxDecoration( color: color ??…
103
votes
4 answers

Platform.runLater and Task in JavaFX

I have been doing some research on this but I am still VERY confused to say the least. Can anyone give me a concrete example of when to use Task and when to use Platform.runLater(Runnable);? What exactly is the difference? Is there a golden rule to…
Marc Rasmussen
  • 19,771
  • 79
  • 203
  • 364
102
votes
6 answers

How to build native C++ apps with HTML/CSS UI?

Is it possible to develop a C++ program while using HTML and CSS for the user interface? I know about programming with Javascript using a Webkit container, but I am really interested in C++ development. I felt in love with C# WPF when I developed…
ranieri
  • 2,030
  • 2
  • 21
  • 39
101
votes
13 answers

Line-breaking widget layout for Android

I'm trying to create an activity that presents some data to the user. The data is such that it can be divided into 'words', each being a widget, and sequence of 'words' would form the data ('sentence'?), the ViewGroup widget containing the words. As…
Henrik Gustafsson
  • 51,180
  • 9
  • 47
  • 60
99
votes
6 answers

How do I run Selenium in Xvfb?

I'm on EC2 instance. So there is no GUI. $pip install selenium $sudo apt-get install firefox xvfb Then I do this: $Xvfb :1 -screen 0 1024x768x24 2>&1 >/dev/null & $DISPLAY=:1 java -jar selenium-server-standalone-2.0b3.jar 05:08:31.227 INFO - Java:…
TIMEX
  • 259,804
  • 351
  • 777
  • 1,080