@@ -0,0 +1,1596 @@
+/*%0A * Copyright 2016 Philip Cohn-Cort%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.fuzz.emptyhusk;%0A%0Aimport android.content.Context;%0Aimport android.support.annotation.NonNull;%0Aimport android.text.Spannable;%0Aimport android.text.SpannableString;%0A%0Aimport com.fuzz.indicator.text.MigratoryStyleSpan;%0Aimport com.fuzz.indicator.text.TextViewGenerator;%0A%0Aimport static android.graphics.Typeface.BOLD;%0A%0A/**%0A * Simple TextViewGenerator that styles text in a bold sort of way.%0A *%0A * @author Philip Cohn-Cort (Fuzz)%0A */%0Aclass BoldTextViewGenerator extends TextViewGenerator %7B%0A    @NonNull%0A    @Override%0A    protected Spannable getTextFor(@NonNull Context context, int position) %7B%0A        String%5B%5D introStrings = context.getResources().getStringArray(R.array.introductory_messages);%0A%0A        SpannableString ssb = new SpannableString(introStrings%5Bposition%5D);%0A        MigratoryStyleSpan span = new MigratoryStyleSpan(BOLD);%0A%0A        int end = (int) (ssb.length() * span.getCoverage().diff());%0A        ssb.setSpan(span, 0, end, span.preferredFlags(0));%0A%0A        return ssb;%0A    %7D%0A%7D%0A

Add a generator for bold text