How to replicate header behavior of Google Chrome Android App - android

The Google Chrome Android app has some interesting header behavior. If you open a tab, do a search, and then start to scroll down, the header containing your search will disappear. You can scroll to all the way down the page, and then as soon as you start to scroll back up the header is the first thing that scrolls back into view, and then further scrolling will scroll you back up the page.
I'm sure there is a library or something somewhere that replicates this, or there is a way to implement this.
Sorry if this is a duplicate question. I've been searching for this for ~30 minutes. It's difficult to put into words.
Thanks!

This pattern is called a 'Quick Return Bar', as described in Roman Nurk's Google+ post and implemented in this code.

Related

"Normal" (split) Master detail page in xamarin on phone

From Android I know Master detail flow which allows you to have this side by side master detail activity on bigger devices while having two separate activities on a smaller device. As shown on this page in the figures 23-1 and 23-2.
Now I am implementing in Xamarin for cross platform development and I would like to recreate this behavior as I really like it. The MasterDetailPage as it is called in Xamarin works correctly on a tablet, however on a small phone it shows a side menu for the master list view instead of a separate page. (this side menu is triggered by the burger menu button) Since my master page should already show more information than just a title in the list view, I would prefer it to be the normal android master detail flow with two pages. Is there a way to do this with Xamarin where I don't have to code it completely from scratch?
I haven't found any answers to it, but maybe that is because I search a bit wrong. I just don't know how to describe it better than as the "normal master detail" on android. But that doesn't give me useful results. Thanks for any help, also references to where I can find this.
Edit: Thanks to SushiHangover I now know that this behavior is called Split by xamarin. However they do not allow it on phones. Is there a workaround?

Choose infinite scroll or automatic paging in mobile app?

I'm creating a mobile app that will show images to a user, abit like twitter,facebook,instagram etc. What I've noticed is that they often use infinite scrolling. I've been considering going this road but at the same time I've never really liked infinite scrolling as it feels like i'm not getting anywhere and it makes me kind of exhausted quickly. Therefore I'm considering making a paging variant of infinite scroll that instead. When the user reaches the bottom, he/she automatically gets to a new page and the scroll is at the top again. By getting back to the previous page he/she must just scroll upp and the first page will load and the scroller will start on the bottom of this page.
I know this question could be answered in many various ways and it's alot about personal preference but i still figured i put this out here to see what you guys think about this topic. I've seen some similar question but mostly regarding websites.
Question:
what do you think suits best in mobile devices(infinite or paging to load more content, keep in mind that the user isn't searching for any specific item in the list just simply scrolling) and why?
Thanks!
I think you should go for infinite scrolling, as you said user is not looking for something specific, so user would prefer scrolling until he gets bore. Just like FB posts, you scroll down to the end and it then fetches the older posts. But paging should be used just like FB for the better performance.
The idea of new page isn't much nice as when user scrolls upwards he believes that it's just continuous and wouldn't like to take on new page every time he reaches to the top or bottom.

Android 2.3 and Blackberry Show Page as Column that Let you Scroll Way to Right and Bottom

Does anyone have a clue what could cause this behavior? If you view this page on Android 2.3 or Blackberry, you should see the problem.
You can scroll straight past the end of the page to a yellow background that goes on forever. You can also scroll off the right side of the page to do the same thing.
It works fine on Android 4 and iOS 5.
See site with issue here:
http://wwwa1nbkclientsitecom.zippysites.com/
p.s. I asked about this yesterday but with less detail. And I've made some changes sense then, but those didn't fix the problem.
It was the dynamic google map in the footer. It had nothing to do with my page layout or style. Everything I did was fine. Removing the dynamic google map fixed it. SOLUTION: Replace with a STATIC google map. Its kind of bad to be using dynamic map embedded in page for a mobile device anyway.

Android swipe left and right from record to record

A lot of apps that I have (such as gmail) has a feature where you can swipe left and right to go from one record to another. In gmail, this navigation takes you from one email to the next (or previous, depending on which way you swipe). When you reach the end, you get this blue halo effect, and the swiping in that direction doesn't work. My question is, what is this navigation called? Is it something in the sdk, or is it written by the developer for each app? Can I use it in my app where I have data stored in the sqlite database that I would like to show one record at a time this way? Is it available in all sdk versions?
I would search for it, but I don't know what it's called so I can't really think of any good search terms here. If someone just points me in the right direction, I can read the documentation and figure it out.
The component you are looking for calls ViewPager. You'll find in under the compatibility pack jar.
android viewPager implementation
http://android-developers.blogspot.co.il/2011/08/horizontal-view-swiping-with-viewpager.html
You can use something called a viewFlipper if you want to use animations.
There's a nice tutorial here: http://www.warriorpoint.com/blog/2009/05/26/android-switching-screens-in-an-activity-with-animations-using-viewflipper/
Good luck :)

move fragment(?) by swiping and show underlying fragment

Small question, but I think it is an interresting one as I haven't found the answer yet:
what is being used in the Youtube app to be able to swipe the fragment(?) to the right and showing the options behind it. You can do it on the main page and then your personal settings are being displayed.
Anyone have an idea how this is done? I saw it in one other (none-google) app too...
To get similar effect in app you can use ViewPager.
Some information and code examples: http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html

Categories

Resources