欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

常用的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) {

   
相关标签: Android idea