Page object model in appium with testng

Hai I am a starter in appium,

I am trying to implement PAGE OBJEDT MODEL PATTERN in appium , also with execute the test in both android and ios , using TestNG how do we can achieve this…sorry in advance if I am asking anything wrong

Also I need to know what are the steps we need to give in android studio gradle file and which gradle file we need to do setup for executing with testng

If you search this forum there are multiple options mentioned as per your need, you can choose one of them which suites best for your project

Regards,
Vikram

Can you please suggest any link …