Not able to Horizontal Swipe no text given - java client 5.0.4

Hi Guys,

Have tried the following posts for horizontal swipe and searched in forum, can we not perform swipe without the help of co-ordinates , have tried UI Selector but not able to swipe

The screen im trying to swipe does not have start to end co-ordinates/text and has common resource-id for the screen, kindly share your opinions i’m stuck, kindly help
.

Why don’t you use percentage? Like swipe from 90% with to 10%. You have one method that maps the % to the direct coordinates using the size of screen you are automating (driver.manage().window().getSize()).