Search in sources :

Example 1 with ExpandableTextView

use of com.github.dubu.expandabletextview.ExpandableTextView in project ExpandTextView by mugku.

the class MainActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
    fab.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View view) {
            Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG).setAction("Action", null).show();
        }
    });
    ExpandableTextView expTv1 = (ExpandableTextView) this.findViewById(R.id.expand_text_view);
    expTv1.setText(getString(R.string.dummy_text1));
}
Also used : ExpandableTextView(com.github.dubu.expandabletextview.ExpandableTextView) FloatingActionButton(android.support.design.widget.FloatingActionButton) ExpandableTextView(com.github.dubu.expandabletextview.ExpandableTextView) View(android.view.View) Toolbar(android.support.v7.widget.Toolbar)

Aggregations

FloatingActionButton (android.support.design.widget.FloatingActionButton)1 Toolbar (android.support.v7.widget.Toolbar)1 View (android.view.View)1 ExpandableTextView (com.github.dubu.expandabletextview.ExpandableTextView)1