Monday, April 12, 2010

Android Favorite Button

I love Android. What I hate about it, though, is that they don't tell you how to make standard-looking UIs. For example, I had to dig through source codes to find the @android:style/ButtonBar style that you can use as the style on pretty much any layout (RelativeLayout, LinearLayout, etc.) which provides a nice background graphic for your button bars. Anyway, today I discovered another such hidden feature – a star drawable that can be used for favorite buttons. However, I still don't understand a thing: there's btn_star, btn_star_big_off and btn_star_big_on. One would think "how do I get btn_star_on then?", but then one would realize btn_star and btn_star_big_* are the same size (all of these are in @android:drawable/). In short, to create a favorite button/image, use: <ImageView android:src="@android:drawable/btn_star_big_off"/> <!-- or, if you want the button-like background and borders (although I prefer the ImageView version) --> <ImageButton android:src="@android:drawable/btn_star_big_on"/>

4 comments:

  1. Did you know there's a 12 word phrase you can communicate to your man... that will induce intense feelings of love and impulsive attraction for you deep inside his chest?

    Because hidden in these 12 words is a "secret signal" that fuels a man's instinct to love, worship and look after you with all his heart...

    12 Words That Trigger A Man's Desire Instinct

    This instinct is so hardwired into a man's mind that it will make him work better than ever before to make your relationship the best part of both of your lives.

    In fact, triggering this mighty instinct is absolutely binding to having the best possible relationship with your man that as soon as you send your man a "Secret Signal"...

    ...You will immediately find him expose his heart and mind for you in such a way he's never experienced before and he will see you as the only woman in the galaxy who has ever truly understood him.

    ReplyDelete
  2. "저는 귀하의 웹 사이트를 정상적으로 방문하고 있으며 우수한 사이트를 유지하기 위해 시간을 내 주셔서 감사합니다. 오랫동안 자주 방문 할 것입니다. 먹튀검증

    ReplyDelete
  3. 있습니다.대략적으로 알려진 업체 수만 하더라도 5,000개가 넘는다고 말합니다. 한 달도 버티지 못 하고 문을 닫는 곳이 아주 많습니다. 저희 역시스포츠배팅을 즐기는 사람들입니다. 다양한 곳에서 게임을 해 왔으며 먹튀 또한 여러 번 당하였습니다. 심지어 검증업체에서 커미션도 지급받지못 한 경우가 있습니다. 산전수전 다 겪으면서 여러 업체들을 컨택하여 왔으며 현재 검증 된 업체들은 지난 2년 동안 저와 가족방 식구들이 이용하면서 단 한 번의 사고도 없는 가장 안전한 메이저업체라고 자신있게 말 할 수 있습니다. 먹튀 때문에 쉽게 이용하지 못 하시겠다구요? 그렇다면 안심하세요. 저희 가족방은 24시간 수 천명의 인원들이 지켜보는 대한민국 최대 규모의 단체방입니다. 안심하고 검증업체를 이용하셔도 됩니다
    토토사이트.

    ReplyDelete
  4. Perfect piece of work you have done, this internet site is really cool with good information.먹튀검증

    ReplyDelete