You can remember the meaning of 一样 with this easy mnemonic:
It's tempting to dress identical twins the same and raise each one (一) the same way (样). Symmetry is attractive don't you think?
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.