你知道如何在LinearLayout
上劃線嗎?要創建一個LinearLayout
,我使用的是XML資源:如何在LinearLayout上畫一條線?
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main_layout);
LinearLayout linear = (LinearLayout)findViewById(R.id.linearlayout);
//I wanna draw line on "linear"
}
這可能嗎?