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.

Filter by
Sorted by
Tagged with
6186votes
35answers
1.4mviews

What is the difference between "px", "dip", "dp" and "sp"?

What is the difference between Android units of measure? px dip dp sp
user avatar
  • 65.8k
2282votes
24answers
540kviews

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-...
user avatar
1527votes
47answers
769kviews

How do I update the GUI from another thread?

Which is the simplest way to update a Label from another Thread? I have a Form running on thread1, and from that I'm starting another thread (thread2). While thread2 is processing some files I would ...
user avatar
  • 17.6k
996votes
23answers
535kviews

How to create RecyclerView with multiple view types

From Create dynamic lists with RecyclerView: When we create a RecyclerView.Adapter we have to specify ViewHolder that will bind with the adapter. public class MyAdapter extends RecyclerView.Adapter<...
user avatar
  • 12.6k
663votes
18answers
592kviews

How do I align views at the bottom of the screen?

Here's my layout code; <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:...
user avatar
  • 28.6k
579votes
15answers
260kviews

Difference between a View's Padding and Margin

What is the difference between a View's Margin and Padding?
user avatar
547votes
9answers
137kviews

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 ...
user avatar
  • 6,035
485votes
6answers
202kviews

Declaring a custom android UI element using XML

How do I declare an Android UI element using XML?
user avatar
  • 107k
476votes
11answers
129kviews

What is Linux’s native GUI API?

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 ...
user avatar
  • 7,875
474votes
34answers
181kviews

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 ...
user avatar
  • 7,108
415votes
15answers
77kviews

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 ...
407votes
5answers
118kviews

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 ...
394votes
11answers
553kviews

How can I change the thickness of my <hr> tag

I want to change the thickness of my horizontal rule (<hr>)in CSS. I know it can be done in HTML like so - <hr size="10"> But I hear that this is deprecated as mentioned on MDN here. In ...
user avatar
361votes
7answers
1.1mviews

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 ...
user avatar
  • 11.7k
354votes
35answers
214kviews

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 ...
user avatar

15 30 50 per page
1
2 3 4 5
3590