MrSoja Posted August 19, 2016 at 10:07 PM Report #598223 Posted August 19, 2016 at 10:07 PM 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
iron Posted August 22, 2016 at 01:42 PM Report #598243 Posted August 22, 2016 at 01:42 PM 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
MrSoja Posted August 22, 2016 at 02:30 PM Author Report #598246 Posted August 22, 2016 at 02:30 PM a cena é eu queria q o tewxto tivesse la na pelo menos 5seg, para lerem bem ou adiicoanr tempo
iron Posted August 22, 2016 at 03:01 PM Report #598248 Posted August 22, 2016 at 03:01 PM http://stackoverflow.com/questions/30550792/how-to-use-setduration-method-in-snackbar-android-design-support-library Tenta isto. Cumprimentos, iron
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now