答案 0 :(得分:1)
对于FAB教程,请从AndroidHive的教程中查看 http://www.androidhive.info/2015/12/android-material-design-floating-action-button/
向开发者发送电子邮件。
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent Email = new Intent(Intent.ACTION_SEND);
Email.setType("text/email");
Email.putExtra(Intent.EXTRA_EMAIL,
new String[]{"developeremail@gmail.com"}); //developer 's email
Email.putExtra(Intent.EXTRA_SUBJECT,
"Add your Subject"); // Email 's Subject
Email.putExtra(Intent.EXTRA_TEXT, "Dear Developer Name," + ""); //Email 's Greeting text
startActivity(Intent.createChooser(Email, "Send Feedback:"));
}
});