@Test public void testLayoutAfter() throws Exception { dom.layoutAfter(); }
@Override public void layoutAfter() { if (hasBeenMeasured) { if (layout != null && !FloatUtil.floatsEqual(WXDomUtils.getContentWidth(this), previousWidth)) { recalculateLayout(); } } else { updateStyleAndText(); recalculateLayout(); } hasBeenMeasured = false; if (layout != null && !layout.equals(atomicReference.get()) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { warmUpTextLayoutCache(layout); } swap(); super.layoutAfter(); }
WXTextDomObject extends WXDomObject { @Override public void layoutAfter() { if (hasBeenMeasured) { if (layout != null && !FloatUtil.floatsEqual(WXDomUtils.getContentWidth(this), previousWidth)) { recalculateLayout(); } } else { updateStyleAndText(); recalculateLayout(); } hasBeenMeasured = false; if (layout != null && !layout.equals(atomicReference.get()) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { warmUpTextLayoutCache(layout); } swap(); super.layoutAfter(); } }
WXTextDomObject extends WXDomObject { @Override public void layoutAfter() { if (hasBeenMeasured) { if (layout != null && !FloatUtil.floatsEqual(WXDomUtils.getContentWidth(this), previousWidth)) { recalculateLayout(); } } else { updateStyleAndText(); recalculateLayout(); } hasBeenMeasured = false; if (layout != null && !layout.equals(atomicReference.get()) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { warmUpTextLayoutCache(layout); } swap(); super.layoutAfter(); } WXTextDomObject(); }
WXTextDomObject extends WXDomObject { @Override public void layoutAfter() { if (hasBeenMeasured) { if (layout != null && !FloatUtil.floatsEqual(WXDomUtils.getContentWidth(this), previousWidth)) { recalculateLayout(); } } else { updateStyleAndText(); recalculateLayout(); } hasBeenMeasured = false; if (layout != null && !layout.equals(atomicReference.get()) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { warmUpTextLayoutCache(layout); } swap(); super.layoutAfter(); } WXTextDomObject(); TextPaint getTextPaint(); @Override void layoutBefore(); @Override void layoutAfter(); @Override Layout getExtra(); @Override void updateAttr(Map<String, Object> attrs); @Override void updateStyle(Map<String, Object> styles); @Override WXTextDomObject clone(); @NonNull String truncate(@Nullable String source, @NonNull TextPaint paint,
                                  int desired, @Nullable TextUtils.TruncateAt truncateAt); }
WXTextDomObject extends WXDomObject { @Override public void layoutAfter() { if (hasBeenMeasured) { if (layout != null && !FloatUtil.floatsEqual(WXDomUtils.getContentWidth(this), previousWidth)) { recalculateLayout(); } } else { updateStyleAndText(); recalculateLayout(); } hasBeenMeasured = false; if (layout != null && !layout.equals(atomicReference.get()) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { warmUpTextLayoutCache(layout); } swap(); super.layoutAfter(); } WXTextDomObject(); TextPaint getTextPaint(); @Override void layoutBefore(); @Override void layoutAfter(); @Override Layout getExtra(); @Override void updateAttr(Map<String, Object> attrs); @Override void updateStyle(Map<String, Object> styles); @Override WXTextDomObject clone(); @NonNull String truncate(@Nullable String source, @NonNull TextPaint paint,
                                  int desired, @Nullable TextUtils.TruncateAt truncateAt);  }