follow this
adb shell
sudo nano /etc/dhcpcd.conf
copy your ip in the page like this:
interface wlan0
static ip_address=192.168.1.35/24
static routers=192.168.1.7
static domain_name_servers=192.168.1.7
have look at this link also. https://www.makeuseof.com/raspberry-pi-set-static-ip/