问题描述
我在后台添加一个RelativeLayoutrl=newRelativeLayout(this);//rl.setLayoutParams(newLayoutParams(RelativeLayout.LayoutParams.FILL_PARENT,RelativeLayout.LayoutParams.FILL_PARENT));rl.setLayoutParams(newLayoutParams(RelativeLayout.LayoutParams.FILL_PARENT,RelativeLayout.LayoutParams.WRAP_CONTENT));listView=newTreeListView(this,initNodeTree());rl.addView(listView);setContentView(rl);在前台页面的xml里我想放一个button该如何解决?
解决方案
解决方案二:
构建view加入button
解决方案三:
<formid="form1"runat="server"><div><inputid="Button2"type="button"value="Save"onclick="ForData();"/><inputid="Button1"type="button"value="Add"onclick="AddTr();"/><asp:ButtonID="Button3"runat="server"Text="ClearSession"OnClick="Button3_Click"/><asp:ButtonID="Button4"runat="server"Text="ExportXML"OnClick="Button4_Click"/><tableid="tab"><tr><td><inputid="name_0"type="text"runat="server"/></td><td><inputid="sex_0"type="text"runat="server"/></td><td><inputid="age_0"type="text"runat="server"/></td><td><inputid="phone_0"type="text"runat="server"/></td></tr></table></div></form>