常用的idea中的代码模板
程序员文章站
2022-06-13 18:08:47
...
package ${PACKAGE_NAME};
import android.os.Bundle;
import android.view.View;
import androidx.annotation.NonNull;
import com.lib.AppActivity;
import com.scwang.smart.refresh.layout.api.RefreshLayout;
import com.scwang.smart.refresh.layout.listener.OnRefreshListener;
import org.json.JSONException;
import kalun.mode.AppArray;
import kalun.mode.AppObject;
import kalun.utils.AppApiUtils;
import kalun.web.AppHandler;
/** @auth ${USER}
* @date ${DATE} **/
public class ${NAME} extends AppActivity implements OnRefreshListener{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.${NAME});
com.zrtc.callphone.databinding.${NAME}Binding binding = com.zrtc.callphone.databinding.${NAME}Binding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
initSmart(binding.smartRefreshLayout);
}
public void onClick${NAME}(View view) {