import android.os.Bundle; import android.view.View; import android.support.v4.app.FragmentActivity; import android.support.v7.widget.Toolbar; import observableview.ObservableScrollView; import observableview.QuickReturnHandler; public class Main extends FragmentActivity { /** * Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Toolbar toolbar = (Toolbar) findViewById(R.id.my_toolbar); toolbar.setTitle("App Title"); toolbar.setSubtitle("Subtitle"); ObservableScrollView mObservableScrollView = (ObservableScrollView) findViewById(R.id.scroll_view); View placeholderView = findViewById(R.id.placeholder); QuickReturnHandler.setup(toolbar, placeholderView, mObservableScrollView); }}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)