@@ -0,0 +1,2036 @@
+package com.averi.worldscribe.views;%0A%0Aimport android.content.Context;%0Aimport android.support.v7.widget.Toolbar;%0Aimport android.text.TextUtils;%0Aimport android.util.AttributeSet;%0Aimport android.widget.TextView;%0A%0Aimport java.lang.reflect.Field;%0A%0A/**%0A * A Marquee-able Android Toolbar.%0A *%0A * %3Cp%3E%0A *     Credit to InsanityOnABun. The Gist for this class can be found%0A *     %3Ca href='https://gist.github.com/InsanityOnABun/95c0757f2f527cc50e39'%3Ehere%3C/a%3E.%0A * %3C/p%3E%0A */%0Apublic class MarqueeToolbar extends Toolbar %7B%0A%0A    TextView title;%0A%0A    public MarqueeToolbar(Context context) %7B%0A        super(context);%0A    %7D%0A%0A    public MarqueeToolbar(Context context, AttributeSet attrs) %7B%0A        super(context, attrs);%0A    %7D%0A%0A    public MarqueeToolbar(Context context, AttributeSet attrs, int defStyleAttr) %7B%0A        super(context, attrs, defStyleAttr);%0A    %7D%0A%0A    @Override%0A    public void setTitle(CharSequence title) %7B%0A        if (!reflected) %7B%0A            reflected = reflectTitle();%0A        %7D%0A        super.setTitle(title);%0A        selectTitle();%0A    %7D%0A%0A    @Override%0A    public void setTitle(int resId) %7B%0A        if (!reflected) %7B%0A            reflected = reflectTitle();%0A        %7D%0A        super.setTitle(resId);%0A        selectTitle();%0A    %7D%0A%0A    boolean reflected = false;%0A    private boolean reflectTitle() %7B%0A        try %7B%0A            Field field = Toolbar.class.getDeclaredField(%22mTitleTextView%22);%0A            field.setAccessible(true);%0A            title = (TextView) field.get(this);%0A            title.setEllipsize(TextUtils.TruncateAt.MARQUEE);%0A            title.setMarqueeRepeatLimit(-1);%0A            return true;%0A        %7D catch (NoSuchFieldException e) %7B%0A            e.printStackTrace();%0A            return false;%0A        %7D catch (IllegalAccessException e) %7B%0A            e.printStackTrace();%0A            return false;%0A        %7D catch (NullPointerException e) %7B%0A            e.printStackTrace();%0A            return false;%0A        %7D%0A    %7D%0A%0A    public void selectTitle() %7B%0A        if (title != null)%0A            title.setSelected(true);%0A    %7D%0A%7D%0A

Add custom view class for Marquee-able Toolbar