b } Return type Argument Type Argument name var A; val A; Mutable (Read & write) read only fun sendMessage(message: String?){ if(message != null) mailer.sendMessage(message) } Argument is nullable Body
RecyclerView • Add attribute below to recyclerview app:layout_behaviour = ”@string/appbar_scrolling_view_behaviour” • Add CollapsingToolbarLayout and NetworkImageView component as its direct child • Add a LinearLayout with two textviews • Uncomment style “Widget.Shrine.CollapsingToolbar” in your styles file • Add the following attributes to the LinearLayout style=”@style/Widget.Shrine.CollapsingToolbarContent” app:layout_collapseMode=”parallax” app:layout_collapseParallaxMultiplier=”0.65” shr_main.xml
• Res > Android resource directory (menu) > Android resource file > create new menu file (shr_bottom_navigation.xml) <item android:id=”@+id/category_clothing” android:enabled=”true” android:title=”@string/shr_category_clothing” android:icon=”@drawable/ic_favorite_vd_theme_24” app:showAsAction=”ifRoom”/> <item Same as above replace clothing with home android:icon=”@drawable/ic_shrine_vd_theme_24” /> <item Same as above replace home with popsicles android:icon=”@drawable/ic_shopping_cart_vd_theme_24” /> shr_main.xml