use of com.haozhang.lib.SlantedTextView in project SlantedTextView by HeZaiJin.
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();
}
});
SlantedTextView stv = (SlantedTextView) findViewById(R.id.test);
// stv.setText("PHP")
// .setTextColor(Color.WHITE)
// .setSlantedBackgroundColor(Color.BLACK)
// .setTextSize(18)
// .setSlantedLength(50)
// .setMode(SlantedTextView.MODE_LEFT_BOTTOM);
}
Aggregations