[android-developers] admob into CandidateView

2011-06-19 Thread ivano borsato
hi all,i need to integrate the *ad-banner* (use the ad-mob sdk 4.1.0) into the CandidateView of a custom soft-keyboard,i just write the code but this not work because i have not a Activity context be passed to the constructor of ad-banner. This is code that I wrote: ---

[android-developers] dynamic font size

2011-06-06 Thread ivano borsato
hello, how do I calculate the font size of a TextView so that always occupy a certain percentage of the screen? now I spit it out: ---8<---8<- . densityNormal = Float.parseFloat("1.0"); densitySub = Float.parseFloat("0.75"); densityIper = Float.parseFloat("1.5"); density