我正在使用@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_level_one);
ListView levelOneListView = findViewById(R.id.levelOneListView);
String[] easyList = new String[]{
"Daisy", "Dandelion", "Grass", "Rock", "Tree", "Postbox"
};
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String> (this, android.R.layout.simple_list_item_1, easyList);
levelOneListView.setAdapter(arrayAdapter);
levelOneListView.notifyDatasetChanged()
}
向数据库添加一些内容。使用def ant = new AntBuilder()
def file = new File($Workspace, "filename")
ant.replace(file: file, token: “text1”, value: “${text2}”)
验证字段,如下所示:
模板:
v-dialog
脚本:
:rules
,但是在提交表单并再次将其重新打开之后,inputRules仍在验证:
如何再次刷新表单内容或对话框?