Coder Social home page Coder Social logo

Comments (7)

JavaNoober avatar JavaNoober commented on July 21, 2024 3

1.4.0可以进行预览了

from backgroundlibrary.

JavaNoober avatar JavaNoober commented on July 21, 2024

这个由运行原理导致的,在创建Activity的时候去生成drawable,所以没法在静态的时候去预览

from backgroundlibrary.

KomoriWu avatar KomoriWu commented on July 21, 2024

这个由运行原理导致的,在创建Activity的时候去生成drawable,所以没法在静态的时候去预览
很完美的库,谢谢作者,现在用上瘾了

from backgroundlibrary.

JavaNoober avatar JavaNoober commented on July 21, 2024

其实如果ui,出图的时候把那些padding 边框粗细颜色什么都标好,实际使用的时候并不需要频繁的编译去看效果

from backgroundlibrary.

JavaNoober avatar JavaNoober commented on July 21, 2024

android studio 是开源的,而且在布局中有进行设置属性 在预览时候应该是可以写插件支持预览的 哪位大佬研究一下

anko有自己的预览插件,但是因为也是编译生成代码,所以导致得手动编译一下才能预览,这种方式其实还是很麻烦的

from backgroundlibrary.

JavaNoober avatar JavaNoober commented on July 21, 2024

@liupeng110 as预览是通过view的构造函数中的AttributeSet属性,我们使用的那些控件TextView ImageView都通过构造函数AttributeSet这个属性,获取了一系列参数,进行绘制达到预览效果。但是这个属性是不能去自定义获取我们自己的属性的,所以达不到效果。除非去写一个自定view,但这个就不是这个库的初衷了

from backgroundlibrary.

JavaNoober avatar JavaNoober commented on July 21, 2024

@liupeng110 感谢,你说的通过自定义view去实现预览,我可以去尝试一下

from backgroundlibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.