Ignored by boyfriend. Can't leave

Does this happen to anyone else? He gets mad when I try to talk to him while he's on his phone texting his friends. Which is all the time So I resort to drinking and being alone pretty much all the time. I'd never snoop his phone. But I'd like to keep what he finds more interesting than me. Plus he locks it. Im alone all day now I feel even more alone when he's home. I am fun! But I feel so hopeless and deeply depressed and uninteresting. I can't ever leave. I just won't. But im 100% dependent on him n I love him too. But I just feel helpless nd hopeless.