merhaba

SwipeRefreshLayout kullanımında hersey sorunsuz çalışıyor . apk yı telefona attıktan sonra ekranda parmagınızı gezinmek için yukarı doğru kaydırsanız hemen sayfa yenileniyor . Bunu nasıl engelleyebilirim .aşağı doğru kayınca sayfa yenilenmeli ama sayfada hareket etmemi de engellememeli ;

Kod aşağıdaki gibi ;

setContentView(R.layout.activity_main)

val pullfresh = findViewById(R.id.pullfresh)
if (ASWP_PULLFRESH) {
pullfresh.setOnRefreshListener {
pull_fresh()
pullfresh.isRefreshing = false
}
} else {
pullfresh.isRefreshing = false
pullfresh.isEnabled = false
}

if (ASWP_PBAR) {
asw_progress = findViewById(R.id.msw_progress)
} else {
findViewById(R.id.msw_progress).visibility = View.GONE
}
asw_loading_text = findViewById(R.id.msw_loading_text)
val handler = Handler()

//Launching app rating request
if (ASWP_RATINGS) {
handler.postDelayed({ get_rating() }, (1000 * 1000).toLong()) //running request after few moments
}

//Getting basic device information
get_info()