While the original thought is that it would be very unlikely from the virus to move through your gmail to a new phone, I will need to further research the claim by @Neil Smithline that logging into g-mail causes applications to synch / logs you into your old phone, as that could be a significant cause for concern.
Usually, logging into your e-mail would not give you a virus, but this may be a special case. Viruses can and do spread through e-mail, primarily if you open an infected attachment, or follow a link to a malicious site, and you open that attachment or malicious link. It is good practice not to follow links or open attachments in e-mail sent from people you don't know. Even when you do know the person, exercise caution here.
You will likely be able to remove the virus on your current tablet with an antivirus product for Android. You can Google "antivirus for Android" to get some current choices to choose from, some of which are free.
As @Addison Wilson points out, changing your passwords is very important because the virus may have compromised them. If you have the expertise, reformatting / reinstalling your device would be a good measure to take as well to ensure the virus is fully removed.