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));
}
Aggregations