Jump to content

Recommended Posts

Posted

Boas, bem este é o meu código: 

<android.support.design.widget.FloatingActionButton
    android:id="@+id/fab"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|end"
    android:layout_margin="@dimen/fab_margin"
    android:src="@android:drawable/ic_dialog_email" />

e o meu mainActivity.java é assim : 

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

como e onde posso por código pôr o email funcionar, ou aparecer uma janela a dizer o meu email ? 

obrigado 

Posted

Acho que devia estar na zona dos dispositivos móveis. 

Mas pelo que estou a perceber, tu queres mostrar o teu e-mail. Se for, acho que basta alterares a String "Replace with your own action". 

Cumprimentos,
iron

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.