我想在标题栏中显示微调器,我已经完成了一些编码并且它工作正常但是 1)微调器很黑(看不清楚)2)并且无法点击子项目
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu, menu);
View menuView = menu.findItem(R.id.menuSort).getActionView();
selectTitle = (Spinner) menuView.findViewById(R.id.spinner1);
ArrayAdapter<String> aAdpt = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, android.R.id.text1, NewsTitle);
selectTitle.setAdapter(aAdpt);
return true;
}