@Override protected void setViews() { ATest aTest = new ATest(this); aTest.setAdapter(null); // string String str = fromIntent("key"); L.d(str != null ? str : "hello world"); // json L.json( "[{\"CityId\":18,\"CityName\":\"西安\",\"ProvinceId\":27,\"CityOrder\":1},{\"CityId\":53,\"CityName\":\"广州\",\"ProvinceId\":27,\"CityOrder\":1}]'"); // object L.Object(new User("jack", "f")); // list L.Object(TestUtil.getLongStringList(this)); // array L.Object(TestUtil.getShortStringArr()); // arrays double[][] doubles = { {1.2, 1.6, 1.7, 30, 33}, {1.2, 1.6, 1.7, 30, 33}, {1.2, 1.6, 1.7, 30, 33}, {1.2, 1.6, 1.7, 30, 33} }; L.Object(doubles); // sub class new User("name", "sex").log(); Log.d(TAG, "类名 = " + getClassName()); Log.d(TAG, "当前方法名+行数 = " + callMethodAndLine()); }
private void show() { L.d("user"); }