Search in sources :

Example 1 with FloatingActionButton

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);
}
Also used : FloatingActionButton(com.marshalchen.common.ui.FloatingActionButtonWithListView.FloatingActionButton) ListAdapter(android.widget.ListAdapter) ArrayAdapter(android.widget.ArrayAdapter)

Aggregations

ArrayAdapter (android.widget.ArrayAdapter)1 ListAdapter (android.widget.ListAdapter)1 FloatingActionButton (com.marshalchen.common.ui.FloatingActionButtonWithListView.FloatingActionButton)1