Use android:background instead. And if it is just an underline, you can use a View and not an ImageView. As for filling the remainder of the screen, you may want to use a TableLayout instead.
Also, make sure your 9-patch is correct. The 1px sides must be black. #000