Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Easily:
Inherit from the desired view
In layout:
<az.dgtl.egg.ui.widget.recycler.RestaurantCollectionView
android:id="@+id/restaurant_collection_view"
style="@style/Widget.Egg.CollectionView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
@InjectView(R.id.restaurant_collection_view) RestaurantCollectionView mCollectionView;
Custom views are inserted into layouts like this:
<view
class="blah.bla_blah.ViewCanvas"
android:id="@+id/canvas"
android:layout_width="match_parent"
android:layout_height="match_parent" />
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question