Note that there are some explanatory texts on larger screens.

plurals
  1. POProblems with fonts in android 4.4
    text
    copied!<p><img src="https://dl.dropboxusercontent.com/u/92304793/screenshot1.png" alt="first screen"> <img src="https://dl.dropboxusercontent.com/u/92304793/screenshot2.png" alt="second screen"></p> <p>Today i've updated my android sdk to 19 api, and while testing my app I have encountered some bugs in 19 api: drop some fonts in text view, or have problems with it's size. </p> <p>first screen, code of one view:</p> <pre><code>tvBalance = new TextView(getContext()); rlParams = new LayoutParams(frame.width, (int) (frame.heigth * zoneExtetn)); rlParams.setMargins(frame.left, (int) (frame.top - frame.heigth * (zoneUp-0.1f)), 0, 0); tvBalance.setLayoutParams(rlParams); tvBalance.setGravity(Gravity.CENTER); tvBalance.setPadding(0, 0, 0, 0); tvBalance.setTextColor(0xffffd008); tvBalance.setTextSize(PokerTextSize.scaleFont(getContext(), 28)); tvBalance.setText("$ 0 000 000 000"); tvBalance.setTypeface(TypefaceBase.getCalibri((Activity) getContext())); rlMoney.addView(tvBalance); </code></pre> <p>and second screen code:</p> <pre><code>TextView tvText = new TextView(llContent.getContext()); llParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); llParams.setMargins(0, 0, 0, marg*2); tvText.setLayoutParams(llParams); tvText.setTextSize(fonts[0]); tvText.setTextColor(articleColor); tvText.setText(Html.fromHtml(articleItem.getString())); tvText.setTypeface(TypefaceBase.getCalibri((Activity) this.getContext())); llContent.addView(tvText); </code></pre> <p>Anybody have these problems in android 4.4 kit-kat?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload