Code Monkey home page Code Monkey logo

activitybuilder's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

activitybuilder's Issues

通过 Id 或 Tag 来识别 Fragment 不可靠

通过 Id 或 Tag 来识别 Fragment 不可靠:

id 或 tag 都是可以不唯一的,通过下面的代码将两个无 tag Fragment 添加到同一个 container 中,Fragment 都会使用其 container view id 作为 id

    OneButtonFragment fragment = OneButtonFragment.newInstance("captureFragmentWithTag");
    getFragmentManager().beginTransaction().add(R.id.parent, fragment, null).commit();
    fragment = OneButtonFragment.newInstance("captureFragmentWithTag2");
    getFragmentManager().beginTransaction().add(R.id.parent, fragment, null).commit();
2 = {OneButtonFragment@5739} "OneButtonFragment{21d279d #2 id=0x7f07004c}"
3 = {OneButtonFragment@5786} "OneButtonFragment{f2c505b #3 id=0x7f07004c}"

点赞帖

最近重构代码觉得启动 activity 的传参太随意,需要有这样一个框架来约束或者引导开发者去正确启动一个 Activity。

我开始搜了很久,阿里 Arouter 之类的也并不能满足需求,后来自己撸了一半apt,发现你这个,很赞~

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.