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
155
votes
17 answers

What is the best way to do GUIs in Clojure?

What is the best way to do GUIs in Clojure? Is there an example of some functional Swing or SWT wrapper? Or some integration with JavaFX declarative GUI description which could be easily wrapped to s-expressions using some macrology? Any tutorials?
Marko
  • 30,263
  • 18
  • 74
  • 108
154
votes
23 answers

How do I get the height and width of the Android Navigation Bar programmatically?

The black navigation bar on the bottom of the screen is not easily removable in Android. It has been part of Android since 3.0 as a replacement for hardware buttons. Here is a picture: How can I get the size of the width and the height of this UI…
Kevik
  • 9,181
  • 19
  • 92
  • 148
152
votes
8 answers

Visually managing MongoDB documents and collections

I'm using MongoDB in a reporting system and have to delete a whole bunch of test documents. While I don't have too much trouble using the JSON-based command-line tools, it gets extremely tedious to have to keep searching for documents,…
Aaronaught
  • 120,909
  • 25
  • 266
  • 342
152
votes
5 answers

Casperjs/PhantomJs vs Selenium

We are using Selenium to automate our UI testing. Recently we have seen majority of our users using Chrome. So we wanted to know - pros and cons of using PhantomJS vs Selenium: Is there any real advantage in terms of performance, e.g. time taken to…
spirit3189
  • 1,565
  • 3
  • 11
  • 9
149
votes
29 answers

How to center icon and text in a android button with width set to "fill parent"

I want to have an Android Button with icon+text centered inside it. I'm using the drawableLeft attribute to set the image, this works well if the button has a width of "wrap_content" but I need to stretch to max width so I use width "fill_parent".…
jloriente
  • 1,521
  • 2
  • 10
  • 8
148
votes
6 answers

Choose File Dialog

Does anyone know of a complete choose file dialog? Maybe one where you can filter out all files except for ones with specific extensions? I have not found anything lightweight enough to implement easily into one of my projects. The only other…
Aymon Fournier
  • 4,323
  • 12
  • 42
  • 59
145
votes
10 answers

How can I get a Dialog style activity window to fill the screen?

I am using an activity with the dialog theme set, and I want it to be full screen. I tried all sorts of things, even going through the WindowManager to expand the window to full width and height manually, but nothing works. Apparently, a dialog…
mxk
  • 43,056
  • 28
  • 105
  • 132
144
votes
4 answers

Responsive website zoomed out to full width on mobile

I am testing out Bootstrap responsiveness navbar and I have a demo website. When I resize the browser on a desktop, it all works fine including the nav bar which become collapsible menu with a small icon on the top which I can click to see more menu…
143
votes
19 answers

How can I get clickable hyperlinks in AlertDialog from a string resource?

What I am trying to accomplish is to have clickable hyperlinks in the message text displayed by an AlertDialog. While the AlertDialog implementation happily underlines and colors any hyperlinks (defined using in the string resource…
142
votes
2 answers

Why should we use sp for font sizes in Android?

Possible Duplicate: Difference of px, dp, dip and sp in android I am new to Android and I was trying out this tutorial In that tutorial, they used the unit "sp" for textSize attribute and "dp" for other attributes. Please tell me how sp differs…
Vigneshwaran
  • 3,265
  • 6
  • 23
  • 36
140
votes
26 answers

Android - Back button in the title bar

In many apps (Calendar, Drive, Play Store) when you tap a button and enter a new activity, the icon in the title bar turns into a back button, but for the app I am making, it doesn't do that. How do I make that icon take you back to the previous…
Drew
  • 12,578
  • 11
  • 58
  • 98
139
votes
19 answers

What's the best/easiest GUI Library for Ruby?

Whats the best/easiest GUI library out there for Ruby? I would prefer a cross-platform GUI library, but currently I'm only concerned about Windows (Win32). I am having difficulting finding any that seem to be easy to use. Are there any?
Chris Pietschmann
  • 29,502
  • 35
  • 121
  • 166
138
votes
8 answers

Is it a bad practice to use negative margins in Android?

Demo of negative margin:                           The scenario Overlapping views by setting a negative margin to one of them so that it invades the bounding box of another view. Thoughts It seems to work the way you'd expect with overlapping of the…
Juan Cortés
  • 20,634
  • 8
  • 68
  • 91
136
votes
10 answers

Make WPF window draggable, no matter what element is clicked

My question is 2 fold, and I am hoping there are easier solutions to both provided by WPF rather than the standard solutions from WinForms (which Christophe Geers provided, before I've made this clarification). First, is there a way to make Window…
Alex K
  • 10,835
  • 8
  • 29
  • 34
136
votes
20 answers

How to center a Window in Java?

What's the easiest way to centre a java.awt.Window, such as a JFrame or a JDialog?
Andrew Swan
  • 13,427
  • 22
  • 69
  • 98