@ SuppressLint ( "NewApi" ) @ Override public void onItemClick ( View v , com . ftinc . kit . attributr . model . Library item , int position ) { if ( BuildUtils . isLollipop ( ) ) { v . setElevation ( SizeUtils . dpToPx ( this , 4 ) ) ; } View name = ButterKnife . findById ( v , R . id . line_1 ) ; View author = ButterKnife . findById ( v , R . id . line_2 ) ; Pair < View , String > [ ] transitions = new Pair [ ] { new Pair <> ( v , "display_content" ) , new Pair <> ( name , "library_name" ) , new Pair <> ( author , "library_author" ) , new Pair <> ( mToolbar , "app_bar" ) } ; Intent details = new Intent ( this , com . ftinc . kit . attributr . ui . DetailActivity . class ) ; details . putExtra ( com . ftinc . kit . attributr . ui . DetailActivity . EXTRA_LIBRARY , item ) ; startActivity ( details ) ; // UIUtils.startActivityWithTransition(this, details, transitions); }
Called when a Library item is clicked .