Boa tarde a todos. Gostaria de saber se existe alguma forma de colocar um evento onClick no ActionBar inteiro, Mais pode ser somente no titulo, eu tentei da seguinte forma:
-- final int abTitleId = getResources().getIdentifier("action_bar_title", "id", "android"); findViewById(abTitleId).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //Do something } });Porém o abTitleId sempre me retorna null. Estou utilizando o suporte: android.support.v7.app.ActionBarDesde já agradeço.Forte abraço a todos.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






0 comentários:
Postar um comentário