Merge "Test Gallery layout direction."