img = new ImageView(this); LinearLayout.LayoutParamsparams = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); LinearLayout.La
StationDetailFragment.newInstance(selectedStationID, "")此时未创建该视图我更改了代码并添加了覆盖setupDialog。setContentView(contentView)
val layoutParams = (contentView.parent as View).layoutParams as Coordinator