What this suffix does
The suffix -oid comes from Greek "eidos" (form, appearance) and means "having the shape of" or "resembling" something. From "andro-" (man) comes "android" (resembling a human); from "aster-" (star) comes "asteroid" (resembling a star — it appeared as a tiny star-like point in early telescopes).
Spanish adds -e: android → androide, humanoid → humanoide, asteroid → asteroide.
Three major groups of -oid words
Science fiction and technology:
android = robot resembling a human
humanoid = being resembling a human
Science and medicine:
asteroid = rocky body resembling a star (in telescopes)
steroid = molecule with a specific lipid ring structure
spheroid = nearly spherical shape
arachnoid = spider-web-like membrane around the brain
Geometry:
trapezoid = trapeze-shaped quadrilateral
cuboid = cube-shaped
ovoid = egg-shaped
rhomboid = rhombus-like shape
Cultural:
factoid = a "fact-shaped" claim that may not be true
tabloid = small-format sensationalist newspaper
As adjective and noun
-oid works as both adjective and noun:
Adjective: "a humanoid robot", "an android appearance".
Noun: "a humanoid", "an asteroid".
-oid always implies resemblance, not identity. A humanoid resembles a human but is not one. A steroid has a specific molecular shape — it does not literally look like a star.