No attention from BF!

My boyfriend rarely gives me any attention! His always on his phone or iPad and when he does talk to me he talks like he knows everything and just talks to me like crap! argh!!! Advice? x