1. Download our Official Android App: Forums for Android!

Can I use a different action bar icon than the launcher icon in an android app?

Discussion in 'Android Development' started by Mr Mendelli, Aug 15, 2017.

  1. Mr Mendelli

    Mr Mendelli Lurker
    Thread Starter
    Rank:
    None
    Points:
    26
    Posts:
    2
    Joined:
    Aug 15, 2017

    Aug 15, 2017
    2
    1
    26
    I want to know if it is possible to use one icon in an apps action bar that slightly (or entierly) differs from that of the app's launcher icon. I want to do this in case the action bar color is too close to the outer most color of the app icon. In this instance, I would have the un-altered launcher icon, and another with a high-contrast outline. I know I could just use the high-contrast icon as both, but sometimes it just doesn't look right to me. I have tried changing the android:icon=@drawable... value in the manifest with no success. It appears to me that the launcher icon is teathered to the others by 'default'. If I can use a seperate action bar icon, how do I declair it? Is there a specific drawable resource directory for this icon?

    Note: Currently, the only icon I know of that affects the action bar is located in the drawable-xxhdpi-v4 directory @ 144 x 144px.

     

    Advertisement

    buathonghadchaiyapom likes this.
  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #10
    Points:
    1,988
    Posts:
    8,521
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    8,521
    12,692
    1,988
    Male
    Software developer
    South West of England
    Mr Mendelli likes this.
  3. Mr Mendelli

    Mr Mendelli Lurker
    Thread Starter
    Rank:
    None
    Points:
    26
    Posts:
    2
    Joined:
    Aug 15, 2017

    Aug 15, 2017
    2
    1
    26

Share This Page

Loading...