<view
android:background="#000000"
android:layout_height="2dp"
android:layout_width="fill_parent"
</view>
View ruler = new View(myCoNtext);
ruler.setBackgroundColor(0xFF00FF00);
theParent.addView(ruler, new ViewGroup.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, 2));
請先 登入 以發表留言。