Appium cannot scroll when there is a tab with 'selected' attribute 'true'

Means take FIRST scrollable view. In your problematic screen first is HorizontalScrollView with tabs.

You need add id of needed view to scroll. On your screenshot it should be below.

example:

new UiScrollable(new UiSelector().resourceIdMatches(\".*part_id.*\").scrollable(true)).scrollToEnd(1,5)
// where `part_id` is `tabLayout....` BUT from scrollView below

image