This file contains 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
#include <jni.h> | |
#include <string> | |
#include <android/log.h> | |
#include <math.h> | |
class LambertConformalConicProjection { | |
private: | |
/** | |
* Lambert Conformal Conic Projection | |
* |
This file contains 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
public class PermissionFragment extends Fragment { | |
private static final Logger mLog = LoggerFactory.getLogger(PermissionFragment.class); | |
/** 퍼미션 처리에 필요한 파라메터 값 */ | |
protected PermissionParams mParams; | |
@Override | |
public void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
This file contains 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
public class Bk { | |
@Inject | |
public Bk() { | |
} | |
public String helloworld() { | |
return "Hello world"; | |
} | |
} |
This file contains 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
public class ImageBindingAdapter { | |
@BindingAdapter("android:src") | |
public static void imageSrc(@NonNull ImageView view, @DrawableRes int resid) { | |
view.setImageResource(resid); | |
} | |
} |
This file contains 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
public class RecyclerBindingAdapter { | |
@BindingAdapter("bindAdapter") | |
public static void bindAdapter(@NonNull RecyclerView recycler, RecyclerView.Adapter adapter) { | |
recycler.setAdapter(adapter); | |
} | |
@BindingAdapter("bindNotifyDataSetChanged") | |
public static void bindNotifyDataSetChanged(@NonNull RecyclerView recycler, ObservableArrayList<?> items) { | |
HspAdapter adapter = (HspAdapter) recycler.getAdapter(); |
This file contains 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
public class ViewPagerBindingAdapter { | |
private static final Logger mLog = LoggerFactory.getLogger(ViewPagerBindingAdapter.class); | |
@InverseBindingAdapter(attribute = "app:currentItem") | |
public static int currentItem(@NonNull ViewPager viewpager) { | |
return viewpager.getCurrentItem(); | |
} | |
@BindingAdapter("bindOffscreenPageLimit") | |
public static void bindOffscreenPageLimit(@NonNull ViewPager viewpager, int limit) { |
This file contains 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
public class TestViewModel extends ViewModel { | |
@BindingAdapter("bindList") | |
public static void bindList(LinearLayout layout, ArrayList<String> list) { | |
// TODO | |
} | |
} |
This file contains 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
List<Data> list = new ArrayList<>(); | |
HspAdapter<Data> adapter = new HspAdapter<>("your_row"); | |
adapter.setItems(list); | |
adapter.setViewModel(model); | |
binding.recycler.setAdapter(adapter); | |
// 끝 |
This file contains 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
public interface IVmItem { | |
int type(); | |
} |
This file contains 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
class DialogParams constructor(val builder: DialogParams.Builder) { | |
companion object { | |
val ALERT = 0 | |
val CONFIRM = 1 | |
val LOADING = 2 | |
} | |
val type = builder.type | |
val title = builder.title | |
val message = builder.message |
NewerOlder