I cannot see the attachment clearly, but it seems your problem is with layout margin. Did you try setting setMargin(0)?