user-experience

Programmatically Silence iPhone from App?

这一生的挚爱 提交于 2019-12-24 08:17:06
问题 I have to create an app in which the iPhone goes silent upon a button press event. How can you do this programatically? 回答1: There is nothing in official iOS SDK to do this. Imagine someone miss an important call because an app changed settings and made phone silent without user's knowledge. I don't want to download that application for sure. See this related question too. From Apple's documentation People, not applications, should initiate and control actions. Although an application can

Override browser's search feature (CTRL+F), but reuse its native search field

回眸只為那壹抹淺笑 提交于 2019-12-23 18:21:25
问题 I would like to override CTRL+F in order to provide a custom search feature on a HTML page. This can easily be done with : window.onkeydown = function(event) { if (event.ctrlKey && event.keyCode == 70) { event.preventDefault(); my_own_search(); } } but then I won't be able to use the browser's bottom native search field (example here with Firefox, French language) : How to do a custom search feature that reuses the browser's native bottam search textbox ? If not possible, what do you suggest

How to move inside google maps only with two fingers?

断了今生、忘了曾经 提交于 2019-12-23 12:49:44
问题 I have a big problem for mobile users: i have a google maps that has width: 100% and so when the user scroll the window if touch the screen "inside" the map, the scroll it will be only for map and not for all window... (yesterday my father for 3 minutes scrolled inside the map XD) To scroll the window is possible touch the border of screen, but is very very scrict and not all users understand this. I dont'want a map with a width less of 100% so i must found other solution... This is it will

How to drag-and-drop on custom Swing components

北城余情 提交于 2019-12-23 03:18:30
问题 How can I implement drag and drop on custom components, e.g. my own JPanel subclasses? What I need is full Swing-like drag and drop support. With TransferHandlers , DropTargetListeners etc. So the trivial mousePressed() and mouseReleased() is not what I'm looking for. 回答1: Perhaps Lesson: Drag and Drop and Data Transfer. 来源: https://stackoverflow.com/questions/2990634/how-to-drag-and-drop-on-custom-swing-components

Avoid scroll-wheel hijack by embedded youtube / flash video

淺唱寂寞╮ 提交于 2019-12-22 10:25:41
问题 I am making some improvements on a web-site that has a youtube video embedded in its home-page. I have not added this code myself, but it looks like: <object width="380" height="307"> <param name="movie" value="http://www.youtube.com/v/DooLJvsH_BY&hl=en_US&fs=1&" /> </param> <param name="allowFullScreen" value="true" /> </param> <param name="allowscriptaccess" value="always" /> </param> <embed src="http://www.youtube.com/v/DooLJvsH_BY&hl=en_US&fs=1&" type="application/x-shockwave-flash"

Polymer 1.0: How to design a modern authentication UX in Polymer if modals must go outside <paper-drawer-panel>?

前提是你 提交于 2019-12-21 21:28:44
问题 Our Challenges: It seems to me The Polymer 1.0 developer community faces the following challenges right now: We have no user auth UX example to follow. This Stackoverflow question requests a user authentication UX example. And describes why it's needed. This Github issue also documents multiple user requests for such a user auth UX example. And there has also been lots of anecdotal chatter on the Polymer Slack Site about this issue as well. Modals don't currently work inside <paper-drawer

UX question: is better to have “serious delete” or have “trash”

末鹿安然 提交于 2019-12-21 03:36:30
问题 I am developing an application that allows for a user to manage some individual data points. One of the things that my users will want to do is "delete" but what should that mean? For a web application is it better to present a user with the option to have serious delete or to use a "trash" system? Under "serious delete" (would love to know if there is a better name for this...) you click "delete" and then the user is warned "this is final and tragic action. Once you do this you will not be

Where do I find the icons / animations recommended in the Windows 7 UX guide?

假如想象 提交于 2019-12-21 02:57:39
问题 The Windows 7 UX guide has nice illustrations and examples of icons, but I really can't find them in the SDK. Are they hiding somewhere, or are they not available ? 回答1: If you are talking about the common UI icons, then you are supposed to get them programmatically. For instance, you can use var errIcon: HICON; begin errIcon := LoadIcon(0, IDI_ERROR); DrawIcon(Canvas.Handle, 10, 10, errIcon), (Delphi code) to draw an error icon. See LoadIcon, DrawIcon at MSDN. You might also wish to study

How can I improve the subjective speed of my application?

我的梦境 提交于 2019-12-20 08:57:54
问题 Today my co-worker noticed that when adding a decimal place to a progress indicator leads to the impression that the program is running faster than without. (i.e. instead of 1,2,3... it shows 1, 1.2, 1.4, 1.6, ...) I checked it and I was surprised that I got the same impression even though I knew it was faked. That makes me wonder: What other things are there to create the impression of a fast application? Of course the best way is to actually make the application faster, but from an

Setting the cursor in the element's default styles, or in element:hover?

有些话、适合烂在心里 提交于 2019-12-19 09:16:19
问题 Is there any practical difference between the following two? button { cursor: pointer; } And: button:hover { cursor: pointer; } The MDN docs specifically state that: The cursor CSS property specifies which mouse cursor to display when the mouse pointer is over an element. So, is there any real difference? Should one be preferred over the other, or are they interchangeable? 回答1: Yes there is a difference, the first is defined when CSS is loaded but the second one will be defined only on the