Zhaoyy

Results 6 comments of Zhaoyy

OC不懂,但是你可以参考Java: ``` java public int luaFunc(int num) { LuaValue func = globals.get("luaFunc"); if (!func.isnil()) { try { return func.call(CoerceJavaToLua.coerce(num)).toint(); } catch (Exception e) { e.printStackTrace(); } } else { System.out.println("func...

Volley is just a manager.Network is performed by the HttpStack. Add another HttpStack that support multiple cookies is better.

官方地址https://android.googlesource.com/platform/frameworks/volley 具体目前最新的版本号,你可以从mavencenter自己搜索查看一下,或者是在引入的时候如果使用gradle可以使用“+”来替换版本号,就是默认使用最新的版本。

我这里是整了一个recyclerView的子类。 public void clear() { try { Field recycler = RecyclerView.class.getDeclaredField("mRecycler"); recycler.setAccessible(true); Method localMethod = Class.forName("android.support.v7.widget.RecyclerView$Recycler") .getDeclaredMethod("clear"); localMethod.setAccessible(true); localMethod.invoke(recycler.get(this)); } catch (NoSuchFieldException | ClassNotFoundException | NoSuchMethodException | InvocationTargetException | IllegalAccessException...

我之前处理的时候发现不加这句会出现部分item theme不刷新的问题。