When you invoke the App Request Dialogue in a mobile interface (see attached image), you can't scroll down through your friend list without also selecting the Friend where your finger hits the screen.
eg
If I start scrolling (by placing my finger on the screen as 'Robert Devereux'), Robert Devereux is selected into the To: field.
The only way this works is if you scroll at the very edge of the screen.
Has anyone found a way to overcome this behaviour?
This is a Facebook bug, which has now been resolved.
https://developers.facebook.com/bugs/157829941055467
Related
I have been trying to recreate the functionality of an Instagram or Twitter profile page, and I have run into a problem that I don't know how to solve.
The main idea that I use to reproduce this functionality is to use the contentOffset of ScrollView with cells, and change the vertical offset of the ProfileView so that when scrolling the list it disappears, and the view of the list switcher is fixed on top.
The problem is that when scrolling one list, and switching to another, I have an indent in top of the list, which I do not know how to make adaptive to the scroll of any of the lists and to the cells count in each list.
Maybe it would be worth adding another ScrollView in which to place the ProfileView and the view list switcher, but how to make them work similarly to what is in Instagram?
I have searched a lot on the internet for a solution, but I have not found anything to help me solve this exact problem, I will be very grateful for your help.
I created a small project demonstrating the problem, here is the GitHub link, you can download and run it: https://github.com/swiloper/StickyHeader
And also an example of the problem and desired functionality with Instagram:
enter image description here enter image description here
I'd like to automate a video-player on a webpage using Selenium in Python.
I cannot locate the interactive parts of the player with driver.find_element_by_... I've decided to try and accomplish this by making browser specific logic that knows how to navigate the page and player via keyboard navigation (count tabs for Chrome, vs Safari, vs Firefox, etc.).
driver.find_element_by_tag_name('body').send_keys(Keys.TAB))
I am able to select each of the controls of the player with tab (play/pause, current position, mute-volume control, full-screen, and additional options) and have had moderate success manipulating the player's controls with ActionChains once selected with TAB navigation
actions = ActionChains(driver)
actions.send_keys(Keys.DOWN) # to reduce volume or
actions.send_keys(Keys.LEFT) # to rewind playback
An example of something that doesn't work as expected with this method is sending a Key.SPACE to the MUTE button when selected. Instead the space is applied as a page navigation action and scrolls down the page like pressing page down. I'm looking for a method that either makes the controls work as expected when manually navigating the page with a keyboard, ex. space on highlighted object interacts and would normally mute the video in this context, or a workaround that lets me accomplish the same thing. To that end I was thinking if I could get the windows coordinates of the TAB selected object within the video-player and simply perform a click that would at least let me interact with the control.
Also if I'm going about this all the wrong way let me know. Thanks!
What you're really looking for is how to navigate the Shadow DOM. Those are the web elements inside the video player.
I answered how to reach inside the Shadow DOM in an other question, albeit for Java. However the principle is the same.
You can read the whole thing at the link, but the basics are you create a "starting point" WebElement at the Shadow DOM via JavaScript, then all future look-ups reference it:
WebElement button = startingPoint.findElement(By.cssSelector("..."));
I'm working on an application that has a listing of events and each event has its own detailed show page. Everything seems fine, but one complaint I've received is that we're not maintaining the scroll position when going from the detail page back to the index listing.
For an example of the ideal behavior, go to http://discuss.emberjs.com/, scroll down the page a ways, click a link, then click the back button. You're brought to same place you were previously at, somewhere further down the page.
With our app, if you try to do this, you're brought back to the top of the page while the results are reloaded from the API. Then when the results load, your position is lost.
Is there a way to achieve what Discourse does while using query params?
Are you able to customize the appearance at all on the first two screens of Google Glass?
1) The Home screen card with time and "ok glass".
2) The Menu Item card with "ok glass," and a list of available voice actions.
For example, add an image, background image, remove the time, or add additional text. Or maybe put a custom view we create in front of everything.
I'm not looking to change the functionality, just the look and feel.
If not, are there any plans to allow this in the future?
Thanks!
It is not possible to change any of those screens. And I don't believe they will add the ability in the future. But we never know with Google, maybe in the future.
You can always make a feature request here:
https://code.google.com/p/google-glass-api/
I'm developing a GDK app where I need to provide an user experience to display status text similar to video recording status that Glass provides ( displaying "Recording" status then displaying progress indicator and finally showing 'Complete' text ). Appreciate your input.
Right now, you'll need to write your own UI logic to do this (perhaps by using a Dialog with a custom layout that has the appropriate centered label and icon, with a progress bar at the bottom, and changing the label and dismissing the dialog when the action is complete).
You may want to follow issue 271 in our issue tracker, which covers the progress indicator part of this flow.
Tony is right. There is no way to do this naively but you can build it yourself. You can create a layout that is build exactly like the menu is built in the GDK, and then just update the setcontentview() with a new layout each time you want to move to the next card. Also you can build a layout with the holo horizontal progressbar to get the general idea but it won't be like the one Google uses.
Also wanted to add that I have built a repo that you can drop into your project for this. Here is the link: https://github.com/w9jds/GDK-ProgressBar