To lock notes on your iPhone, you'll need to set up a master password, or allow your phone to use your Touch or Face ID to lock and hide notes.
You should reset your Android device and erase all of your personal data before you sell it, trade it in, or give it away.