@InverseBindingAdapter(attribute = "revealAnim", event = "revealAnimAttrChanged") public static int getRevealAnim(View view) { return AnimInit; }
final String attribute = inverseBindingAdapter.attribute(); warnAttributeNamespace(element, attribute); final String event = inverseBindingAdapter.event().isEmpty() ? inverseBindingAdapter.attribute() + INVERSE_BINDING_EVENT_ATTR_SUFFIX : inverseBindingAdapter.event(); warnAttributeNamespace(element, event); final boolean takesComponent = takesComponent(executableElement, processingEnv);
@InverseBindingAdapter(attribute = "progressString") public static String getProgressString(SeekBar view) { return "" + view.getProgress(); }
@InverseBindingAdapter(attribute = "progressString") public static String getProgressString(SeekBar view) { return "" + view.getProgress(); }
@InverseBindingAdapter(attribute = "isDrawerOpen", event = "isDrawerOpenAttrChanged") public static boolean isDrawerOpen(DrawerLayout drawerLayout) { return drawerLayout.isDrawerOpen(GravityCompat.START); }
@InverseBindingAdapter(attribute = "state", event = "onDrawerStateChanged") public static boolean onDrawerStateChanged(DrawerLayout drawerLayout) { return drawerLayout.isDrawerOpen(GravityCompat.START); }
@InverseBindingAdapter(attribute = "firstItemTop", event = "firstItemTopAttrChanged") public static int getFirstItemTop(RecyclerView recyclerView) { if (recyclerView.getLayoutManager() instanceof LinearLayoutManager) { LinearLayoutManager manager = (LinearLayoutManager) recyclerView.getLayoutManager(); int position = manager.findFirstVisibleItemPosition(); if (position == 0) { return recyclerView.getChildAt(0).getTop(); } } return -1; }
@InverseBindingAdapter(attribute = "color", event = "colorAttrChanged") public static int getColor(TwoWayView view) { return view.getColor(); }
@InverseBindingAdapter(attribute = "checked") public static boolean getChecked(CompoundButton button) { return button.isChecked(); }
@InverseBindingAdapter(attribute = "checked") public static boolean getChecked(CompoundButton button) { return button.isChecked(); }
@InverseBindingAdapter(attribute = "position", event = "positionAttrChanged") public static int getPosition(TabLayout tabLayout) { return tabLayout.getSelectedTabPosition(); }
@InverseBindingAdapter(attribute = "scrollY", event = "scrollYAttrChanged") public static int getScrollY(NestedScrollView nestedScrollView) { return nestedScrollView.getScrollY(); }
@InverseBindingAdapter(attribute = "selectedItemId", event = "onNavigationItemSelected") public static int onNavigationItemSelected(NavigationView navigationView) { return getSelectedItemId(navigationView); }
@InverseBindingAdapter(attribute = "android:checkedButton") public static Calculator.Operation getOperation(RadioGroup radioGroup) { return toOperation(radioGroup.getCheckedRadioButtonId()); }