ll.setOrientation(0)改成ll.setOrientation(LinearLayout.HORIZONTAL);