【发布时间】:2016-10-19 02:57:45
【问题描述】:
到目前为止,这是我的代码。我应该提到这是我第一次尝试使用 Android Studio。你们都可以推荐的任何书也会很棒:
public class master_profile extends Fragment {
AutoCompleteTextView autoCompleteTextView;
public master_profile() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_master_profile, container, false);
autoCompleteTextView = (AutoCompleteTextView) findViewById(R.id.autoCompleteTextView);
String[] words = getResources().getStringArray(R.array.auto_complete);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,words)
}
}
【问题讨论】:
标签: android-studio android-fragments autocompletetextview