문제

My visual designer just handed me a mockup with an oversized app logo icon in the Actionbar. I have never seen accomplished in an Android app. Is it possible, and if so, where is the height of the icon specified?

I am shooting for something that looks like the example on the right.

Mock up of oversized Actionbar icon

도움이 되었습니까?

해결책

It is not possible but you can make it with a little tip

If your dessigner divide the icon in two parts, in this case, the top of the Droid and the legs of the droid and you add this legs to the Activity layout with a ImageView/View you can simulate the effect of the bigger icon.

The unique problem is the icon padding but i think you can set to 0. Perhaps its more easy if you use the ActionBar Sherlock library and change the code (its open source) ActionBar Sherlock and the ActionBar native are equals

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top