https://github.com/JakeWharton/scalpel
http://blog.csdn.net/dfskhgalshgkajghljgh/article/details/53842350
Gradle中引入
compile 'com.jakewharton.scalpel:scalpel:1.1.2'
activity中
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
View mainView = getLayoutInflater().inflate(R.layout.activity_main,null);
ScalpelFrameLayout scalpelFrameLayout = new ScalpelFrameLayout(this);
scalpelFrameLayout.addView(mainView);
scalpelFrameLayout.setLayerInteractionEnabled(true);
scalpelFrameLayout.setDrawIds(true);
setContentView(scalpelFrameLayout);
initView();
loadData();
}