This is the code I am using and it is not working:
No need to use any extra view or element:
//that is so easy and simple
//this is left alignment
//this is right alignment