我正在尝试根据某些条件更改函数中编码的绘图散点图中的y轴参数。但是,Plotly将其作为字符串而不是列名。
public void autoSearch(View view) {
//auto search complete for comunity list
this.context = context;
String array1[] = firebaseComunityListArr.toArray(new String[firebaseComunityListArr.size()]);
AutoCompleteTextView txt = (AutoCompleteTextView) view.findViewById(R.id.myAutoComplete);
txt.addTextChangedListener((TextWatcher) getView());
txt.setAdapter(new ArrayAdapter<String>(getContext(), android.R.layout.simple_dropdown_item_1line, array1));
txt.setTextColor(Color.GREEN);
txt.setAdapter(adapter);
}
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void afterTextChanged(Editable editable) {
}