@@ -0,0 +1,2031 @@
+package net.squanchy.tweets.view;%0A%0Aimport android.app.Activity;%0Aimport android.content.Context;%0Aimport android.support.annotation.Nullable;%0Aimport android.util.AttributeSet;%0Aimport android.widget.ImageView;%0Aimport android.widget.LinearLayout;%0Aimport android.widget.TextView;%0A%0Aimport net.squanchy.R;%0Aimport net.squanchy.imageloader.ImageLoader;%0Aimport net.squanchy.imageloader.ImageLoaderInjector;%0A%0Aimport static net.squanchy.support.ContextUnwrapper.unwrapToActivityContext;%0A%0Apublic class TweetFooterView extends LinearLayout %7B%0A%0A    private ImageView photoView;%0A    private TextView recapView;%0A%0A    @Nullable%0A    private ImageLoader imageLoader;%0A%0A    public TweetFooterView(Context context, @Nullable AttributeSet attrs) %7B%0A        this(context, attrs, 0);%0A    %7D%0A%0A    public TweetFooterView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) %7B%0A        this(context, attrs, defStyleAttr, 0);%0A    %7D%0A%0A    public TweetFooterView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) %7B%0A        super(context, attrs, defStyleAttr, defStyleRes);%0A%0A        if (!isInEditMode()) %7B%0A            Activity activity = unwrapToActivityContext(context);%0A            imageLoader = ImageLoaderInjector.obtain(activity).imageLoader();%0A        %7D%0A%0A        super.setOrientation(HORIZONTAL);%0A    %7D%0A%0A    @Override%0A    public void setOrientation(int orientation) %7B%0A        throw new UnsupportedOperationException(%22Changing orientation is not supported for TweetFooterView%22);%0A    %7D%0A%0A    @Override%0A    protected void onFinishInflate() %7B%0A        super.onFinishInflate();%0A%0A        photoView = (ImageView) findViewById(R.id.author_photo);%0A        recapView = (TextView) findViewById(R.id.recap_footer);%0A    %7D%0A%0A    public void updateWith(String url, String formattedRecap) %7B%0A        recapView.setText(formattedRecap);%0A        if (imageLoader == null) %7B%0A            throw new IllegalStateException(%22Unable to access the ImageLoader, it hasn't been initialized yet%22);%0A        %7D%0A%0A        imageLoader.load(url).into(photoView);%0A    %7D%0A%7D%0A

create the new TwitterFooterView