This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version=“1.0” encoding=“utf-8”?> | |
<layout xmlns:bind="http://schemas.android.com/apk/res/android"> | |
<data> | |
<variable | |
name="user" | |
type="mehmetbalbay.net.databindinginrecyclerview.model.User" /> | |
<variable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
dataBinding { | |
enable = true | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private ActivityMainBinding binding; | |
binding = DataBindingUtil.setContentView(this, R.layout.activity_main); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private MyClickHandlers handlers; | |
handlers = new MyClickHandlers(this); | |
public class MyClickHandlers { | |
Context context; | |
public MyClickHandlers (Context context) { | |
this.context = context; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; | |
import com.yarolegovich.lovelydialog.LovelyInfoDialog; | |
public class NetworkChangeReceiver extends BroadcastReceiver { | |
Context context; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Interface Kısmı | |
interface VeriTasimaListener { | |
fun dataSender(gonderilendeger:String) | |
} | |
Fragment Implement edilecek kısım | |
TestFragment : VeriTasimaListener { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlertDialog dialog = new AlertDialog.Builder(this).create(); | |
dialog.show(); | |
Window window = dialog.getWindow(); | |
window.clearFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM); | |
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dns').lookup(require('os').hostname(), function (err, add, fam) { | |
console.log('addr: '+add); | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"result": [ | |
"ADANA", | |
"ADIYAMAN", | |
"AFYONKARAHİSAR", | |
"AĞRI", | |
"AMASYA", | |
"ANKARA", | |
"ANTALYA", | |
"ARTVİN", |
OlderNewer