基本上,我尝试做的是使用微调器onItemSelected侦听器来确定哪些布局是可见的。layout_height="wrap_content"现在,这里是有问题的部分的代码端:
public void onItemSelected我不希望某些微调器选项的布局在被选中并出现在屏幕顶部后消失。然而,它们实际上直到我开始滚动时才会消失,这带来了一个问题,因为第一个线性布局不需要滚动,因为只有大约5个按
aufgabe.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { public void onItemSelected(AdapterView parent, View view, int position, long id) {
Log.d(TAG,"onItemSelected()");一旦视图被创建,它们就会被调用,但是当选择了一个项目