java - When I set a custom view on an actionbar... why back button and logo dissapear? -


मैं बस इस तरह से सेटिंग कर रहा हूं:

  getSupportActionBar ()। SetDisplayOptions (एक्शनबार DISPLAY_SHOW_CUSTOM); getSupportActionBar () setCustomView (R.layout.actionbar_create_route)। MTitle = (TextView) findViewById (R.id.ab_title);  

अगर मैं लोगो को सेट करता हूं और इसके बाद सक्षम करें:

  getSupportActionBar ()। SetDisplayShowHomeEnabled (सत्य); getSupportActionBar () setDisplayHomeAsUpEnabled (सही)। getSupportActionBar () setDisplayUseLogoEnabled (सही)।  

यह नए लेआउट को सही पर ले जाता है

धन्यवाद


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -