Questions tagged [user-interface]

18131 questions
5.3k

votes
30

answer
1.1m

Views
2k

votes
21

answer
439k

Views

What are MVP and MVC and what is the difference?

When looking beyond the RAD (drag-drop and configure) way of building user interfaces that many tools encourage you are likely to come across three design patterns called Model-View-Controller, Model-View-Presenter and Model-View-ViewModel. My question has three parts to it: What issues do these pat...
Mike Minutillo
1.2k

votes
30

answer
563k

Views

How do I update the GUI from another thread?

What is the simplest way to update a Label from another thread? I have a Form on thread1, and from that I'm starting another thread (thread2). While thread2 is processing some files I would like to update a Label on the Form with the current status of thread2's work. How can I do that?
CruelIO
664

votes
11

answer
309.9k

Views

How to create RecyclerView with multiple view type?

From https://developer.android.com/preview/material/ui-widgets.html When we create RecyclerView.Adapter we have to specify ViewHolder that will bind with the adapter. public class MyAdapter extends RecyclerView.Adapter { private String[] mDataset; public MyAdapter(String[] myDataset) { mDataset = my...
Pongpat
600

votes
18

answer
469.3k

Views

How to align views at the bottom of the screen?

Here's my layout code; What this looks like is on the left and what I want it to look like is on the right. The obvious answer is to set the TextView to fill_parent on height but this causes no room to be left for the button or entry field. Essentially the issue is that I want the submit button and...
gav
528

votes
14

answer
223k

Views
497

votes
9

answer
106k

Views

The Use of Multiple JFrames: Good or Bad Practice? [closed]

I'm developing an application which displays images, and plays sounds from a database. I'm trying to decide whether or not to use a separate JFrame to add images to the database from the GUI. I'm just wondering whether it is good practice to use multiple JFrame windows?
Peddler
450

votes
6

answer
186.1k

Views

Declaring a custom android UI element using XML

How do I declare an Android UI element using XML?
Casebash
431

votes
30

answer
163.5k

Views

How do I display the current value of an Android Preference in the Preference summary?

This must come up very often. When the user is editing preferences in an Android app, I'd like them to be able to see the currently set value of the preference in the Preference summary. Example: if I have a Preference setting for 'Discard old messages' that specifies the number of days after which...
nyenyec
405

votes
11

answer
96.9k

Views

What is Linux’s native GUI API?

I hope this doesn’t come across as a stupid question but it’s always something I have wondered. Both Windows (Win32 API) and OS X (Cocoa) have their own APIs to handle windows, events and other OS stuff. I have never really got a clear answer as to what Linux’s equivalent is. I have heard some...
DavidColson
391

votes
5

answer
115.8k

Views

Navigation Drawer (Google+ vs. YouTube)

Does anyone know how to implement a sliding menu like some of the top apps of today? Other Stack Overflow questions haven't had any answers on how to do this, so I'm trying to gather as much info to help out others. All the applications I mention below do a great job of implementing the slide menu....
383

votes
15

answer
65.7k

Views

Is functional GUI programming possible? [closed]

I've recently caught the FP bug (trying to learn Haskell), and I've been really impressed with what I've seen so far (first-class functions, lazy evaluation, and all the other goodies). I'm no expert yet, but I've already begun to find it easier to reason 'functionally' than imperatively for basic...
325

votes
13

answer
73.1k

Views

UI Terminology: Logon vs Login [closed]

I am crafting an application and cannot decide whether to use the terms Login/out or Logon/off. Is there a more correct option between these two? Should I use something else entirely (like 'Sign on/off'). In terms of usability, as long as I am consistent it probably doesn't matter which terms I choo...
Brad Leach
318

votes
2

answer
4.7k

Views

What do the colors on Stack Overflow mean?

In Stack Overflow there are many color codes. Sometimes the number of votes on a question is highlighted with certain colors. Sometimes the background of the question or answer text is highlighted. What do these colors mean? Return to FAQ Index
Justin Standard
293

votes
7

answer
55.6k

Views

How does the algorithm to color the song list in iTunes 11 work? [closed]

The new iTunes 11 has a very nice view for the song list of an album, picking the colors for the fonts and background in function of album cover. Anyone figured out how the algorithm works?
LuisEspinoza
287

votes
11

answer
426.9k

Views

How do I add options to a DropDownList using jQuery?

As the question says, how do I add a new option to a DropDownList using jQuery? Thanks
flesh
277

votes
30

answer
39.2k

Views

Save icon: Still a floppy disk? [closed]

I'm working on a project where the user is able to save their work (most likely to the HDD but also possibly any other media, including floppy disks). Sure, the popular File > Save option is there but what about a toolbar button? By far the most popular icon is the floppy disk. However, the chances...
274

votes
24

answer
252.6k

Views

Select all contents of textbox when it receives focus (Vanilla JS or jQuery)

What is a Vanilla JS or jQuery solution that will select all of the contents of a textbox when the textbox receives focus?
Jon Erickson
271

votes
4

answer
225.9k

Views

How to get controls in WPF to fill available space?

Some WPF controls (like the Button) seem to happily consume all the availible space in its' container if you don't specify the height it is to have. And some, like the ones I need to use right now, the (multiline) TextBox and the ListBox seem more worried about just taking the space necessary to fit...
Rune Jacobsen
254

votes
6

answer
239.2k

Views

What's the difference between fill_parent and wrap_content?

In Android, when layout out widgets, what's the difference between fill_parent (match_parent in API Level 8 and higher) and wrap_content? Is there any documentation where you can point to? I'm interested in understanding it very well.
pupeno
246

votes
7

answer
359.4k

Views

How I change the thickness of my <hr> tag

I want to change the thickness of my horizontal rule in CSS. I know it can be done in HTML like so - But I hear that this is deprecated as mentioned on MDN here. In CSS I tried using height:1px but it does not change the thickness. I want the line to be 0.5px thick. I am using Firefox 3.6.11 on U...
Srikar Appalaraju
237

votes
20

answer
119.9k

Views

Swipe to Delete and the “More” button (like in Mail app on iOS 7)

How to create a 'more' button when user swipe a cell in table view (like mail app in ios 7) I have been looking for this information both here and in the Cocoa Touch forum, but I cannot seem to find the answer and I am hoping someone smarter than myself can give me a solution. I would like that when...
Guy Kahlon
233

votes
11

answer
135.1k

Views

How can I create a directly-executable cross-platform GUI app using Python?

Python works on multiple platforms and can be used for desktop and web applications, thus I conclude that there is some way to compile it into an executable for Mac, Windows and Linux. The problem being I have no idea where to start or how to write a GUI with it, can anybody shed some light on this...
Teifion
228

votes
24

answer
123.2k

Views

How do I put the image on the right side of the text in a UIButton?

I don't want to use a subview if I can avoid it. I want a UIButton with a background image, text, and an image in it. Right now, when I do that, the image is on the left side of the text. The background image, text, and image all have different highlight states.
jasongregori
221

votes
30

answer
210k

Views

UINavigationBar custom back button without title

How can I customize the navigation back button in iOS 7 and above without title? (i.e. with the arrow only) self.navigationItem.leftBarButtonItem = self.editButtonItem; I'm just wondering if they have any self.backButtonItem; OR something like this? self.navigationItem.leftBarButtonItem = [[UIBarBu...
Kiddo
213

votes
15

answer
223.5k

Views

Graphical DIFF programs for linux [closed]

I really like Araxis Merge for a graphical DIFF program for the PC. I have no idea what's available for linux, though. We're running SUSE linux on our z800 mainframe. I'd be most grateful if I could get a few pointers to what programs everyone else likes.
scottb2
212

votes
18

answer
32.3k

Views

Cooler ASCII Spinners? [closed]

In a console app, an ascii spinner can be used, like the GUI wait cursor, to indicate that work is being done. A common spinner cycles through these 4 characters: '|', '/', '-', '\' What are some other cyclical animation sequences to spice up a console application?
Jason Kleban
211

votes
15

answer
242.3k

Views

Is there an upside down caret character?

I have to maintain a large number of classic ASP pages, many of which have tabular data with no sort capabilities at all. Whatever order the original developer used in the database query is what you're stuck with. I want to to tack on some basic sorting to a bunch of these pages, and I'm doing it al...
Joel Coehoorn
211

votes
9

answer
497.3k

Views

How do I build a graphical user interface in C++? [closed]

All of my C++ programs so far have been using the command line interface and the only other language I have experience with is PHP which doesn't support this. Where do I start with graphical user interface programming in C++? How do I create one?
waiwai933
210

votes
15

answer
241.9k

Views

Mac SQLite editor [closed]

I am aware of CocoaMySQL but I have not seen a Mac GUI for SQLite, is there one? My Google search didn't turn up any Mac related GUI's which is why I'm asking here rather than Google.
Teifion
209

votes
5

answer
61k

Views

How do I enter RGB values into Interface Builder?

How can I enter RGB or Hex color values for backgrounds in Interface Builder? I can select predefined colors but I would like to manually enter in RGB values. Where can I do this?
Sheehan Alam
177

votes
6

answer
571.2k

Views

Left align and right align within div in Bootstrap

What are some of the common ways to left align some text and right align some other text within a div container in bootstrap? e.g. Total cost $42 Above total cost should be left aligned text and $42 is right aligned text
user462455
174

votes
26

answer
4.6k

Views

How to get users to read error messages?

If you program for a nontechnical audience, you find yourself at a high risk that users will not read your carefully worded and enlightening error messages, but just click on the first button available with a shrug of frustration. So, I'm wondering what good practices you can recommend to help users...
172

votes
6

answer
197.1k

Views

Swing vs JavaFx for desktop applications [closed]

I have a very big program that is currently using SWT. The program can be run on both Windows, Mac and Linux, and it is a big desktop application with many elements. Now SWT being somewhat old I would like to switch to either Swing or JavaFX. And I would like to hear your thoughts on three things. M...
Quillion
171

votes
21

answer
210.6k

Views

Good C++ GUI library for Windows [closed]

I'm looking for a good windows GUI library for C++. The ideal characteristics in my opinion should be: Modern. MFC, wxWidgets, Qt were started a long time ago and they don't use modern C++ features and standard library. Have a rich set of controls with decent features. The ability to drop HTML almos...
Sergey Skoblikov
170

votes
17

answer
162.4k

Views

Custom fonts and XML layouts (Android)

I'm trying to define a GUI layout using XML files in Android. As far as I can find out, there is no way to specify that your widgets should use a custom font (e.g. one you've placed in assets/font/) in XML files and you can only use the system installed fonts. I know that, in the Java code, I could...
DrDefrost
166

votes
20

answer
134.4k

Views

How to change color of the back arrow in the new material theme?

I've updated my SDK to API 21 and now the back/up icon is a black arrow pointing to the left. I would like it to be grey. How can I do that? In the Play Store, for example, the arrow is white. I've done this to set some styles. I have used @drawable/abc_ic_ab_back_mtrl_am_alpha for homeAsUpIndicator...
Ferran Maylinch
162

votes
6

answer
110.5k

Views

Presenting a UIAlertController properly on an iPad using iOS 8

With iOS 8.0, Apple introduced UIAlertController to replace UIActionSheet. Unfortunately, Apple didn't add any information on how to present it. I found an entry about it on hayaGeek's blog, however, it doesn't seem to work on iPad. The view is totally misplaced: Misplaced: Correct: I use the follow...
Matt3o12
160

votes
13

answer
154.8k

Views

iOS 7's blurred overlay effect using CSS?

It seems Apple's overlay is more than just a transparency. Any ideas on how to achieve this effect with CSS and possibly JS?
Lumpy
153

votes
4

answer
159.9k

Views

How can I check if a view is visible or not in Android? [duplicate]

This question already has an answer here: Android: how to check if a View inside of ScrollView is visible? 11 answers I set visibility to invisible like this on Android: myImageView.setVisibility(View.INVISIBLE); And then to make it visible: myImageView.setVisibility(View.VISIBLE); Now I don't know...
Martin