Slide 8
Slide 8 text
public class FeedItemView extends AspectRatioView {
private TextView createdText;
private TextView categoryText;
public FeedItemView(Context ctx, AttributeSet attrs) {
super(context, attrs);
}
@Override
protected void onFinishInflate() {
super.onFinishInflate();
inflate(getContext(), R.layout.feed_item, this);
createdText = findById(this, R.id.feed_text_created);
categoryText =findById(this, R.id.feed_text_category);
}
}
Create a custom view