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
| // this is an internal class in example activity | |
| // check file name and access modifiers before use | |
| static class ExampleAdapter extends RecyclerView.Adapter<ExampleAdapter.ViewHolder> { | |
| List<TodoListItem> items; | |
| ClickListener clickListener; | |
| Resources resources; | |
| int DP16; | |
| ExampleAdapter(Context context, List<TodoListItem> items) { |
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
| // multicallback example | |
| namespace com.example { | |
| class Runner { | |
| var devices = new List<Item>(); | |
| void foo(){ | |
| devices.Add(new Item()); | |
| devices.Add(new Item(Handler)); | |
| } |
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
| package com.company.product.net.interceptor; | |
| import java.io.IOException; | |
| import okhttp3.Interceptor; | |
| import okhttp3.Request; | |
| import okhttp3.Response; | |
| /** | |
| * Connect this interceptor to okhttp3 line to intercept all 401 answers from service and get callback |
NewerOlder