gradle 排除jar包依赖

2019-01-06 09:49:48

1.直接在configuration中排除 

configurations {

    compile.exclude module: 'commons'

    all*.exclude group: 'org.gradle.test.excludes', module: 'reports'

}


2.在具体的某个dependency中排除

dependencies {

    compile("org.gradle.test.excludes:api:1.0") {

        exclude module: 'shared'

    }


  • 2018-01-23 02:22:17

    andorid,把控件置于最顶端。bringToFront的意外发现

     bringToFront方法在SDK中的说明是“Change the view's z order in the tree, so it's on top of other sibling views”,翻译过来就是改变view的z轴,使其处在他父view的顶端。关于bringToFront的实现,网上有很多资料介绍,大体来说就是将这个view从父view中移除,然后再加入父view的顶端。具体实现如何呢?