android - Why my toast appears so different than others? -
here sample of toast android uses on system (in app).

now here toast created.

the differences can seen clearly:
- system toast has lower font size mine
- in version, padding between container , text more
- my padding area has different color , there no border in system toast unlike mine
- the string used
information want show.(w ,.has not rendered correctly)
how can achieve toast shown in first image?
do use holo?
first 1 looks holo style toast, , second 1 looks old-fashioned gingerbread one.
try set android:targetsdkversion 17 (the latest version) in android manifest file.
<uses-sdk android:minsdkversion="9" android:targetsdkversion="17" /> in android, if set android:targetsdkversion higher 11, holo theme applied automatically. check document -
http://developer.android.com/training/basics/supporting-devices/platforms.html
Comments
Post a Comment