Skip to content

Instantly share code, notes, and snippets.

View Jei's full-sized avatar
🇦🇺
Currently in Melbourne

Andrea Jonus Jei

🇦🇺
Currently in Melbourne
View GitHub Profile
#!/bin/bash
#
# Send adb commands to all connected devices.
#
# Usage: adb-all COMMANDS
#
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} $@
@Jei
Jei / NestedScrollViewManager.js
Created February 20, 2018 16:53 — forked from jpriebe/NestedScrollViewManager.js
Appcelerator Titanium code for managing scrollviews inside of scrollviews
function NestedScrollViewManager (parent_view, child_views)
{
// Appcelerator Titanium code for managing scrollviews inside of scrollviews (not true Android
// NestedScrollViews, but just a horizontal scrollview inside of a vertical scrollview).
//
// If you want to put a horizontal scrollview inside a vertical scrollview (like the Netflix app UI),
// it seems to work reasonably well on iOS. But on android, the user experience is very janky.
// Unless the user's drag movements are nearly exactly horizontal, there will be some movement of
// the parent scrollview, and then it becomes very difficult to scroll the child view. Flinging is
// almost impossible.