replace view binding with aa, change script list to card view, enable minify

This commit is contained in:
hyb1996
2017-07-03 14:53:55 +08:00
parent e97744d7f2
commit f627432b80
46 changed files with 373 additions and 762 deletions

View File

@@ -0,0 +1,23 @@
package com.stardust.util;
import android.view.View;
import android.view.ViewParent;
/**
* Created by Stardust on 2017/7/2.
*/
public class ViewUtils {
public static View findParentById(View view, int id) {
ViewParent parent = view.getParent();
if (parent == null || !(parent instanceof View))
return null;
View viewParent = (View) parent;
if (viewParent.getId() == id) {
return viewParent;
}
return findParentById(viewParent, id);
}
}