use of com.marshalchen.common.ui.FloatingActionButtonWithListView.FloatingActionButton in project UltimateAndroid by cymcsg.
the class FloatingActionButtonDemo method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.floating_action_button_demo);
FloatingActionButton floatingActionButton = (FloatingActionButton) findViewById(R.id.button_floating_action);
floatingActionButton.attachToListView(getListView());
ListAdapter listAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.countries));
getListView().setAdapter(listAdapter);
}
Aggregations