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

Python Equivalent for matlab cart2pol and pol2cart -

javascript - Render HTML after each iteration in loop -

sip - Call SipJs to Asterisk 12 -