-whiteclear color change name

This commit is contained in:
dtvv 2018-08-18 13:20:42 -05:00
parent 17f74b4774
commit 6d06d307f3
3 changed files with 3 additions and 7 deletions

View file

@ -19,13 +19,11 @@ import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.style.ForegroundColorSpan;
import android.util.Pair;
import android.util.TypedValue;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
@ -35,8 +33,6 @@ import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.sjaramillo10.animatedtablayout.AnimatedTabLayout;
import java.io.File;
import butterknife.BindView;
@ -142,7 +138,7 @@ public class BoardActivity extends CustomActivity {
TextView tabTextView = (TextView) tabLayout.getChildAt(1);
//tabTextView.setTextSize(TypedValue.COMPLEX_UNIT_DIP ,50);
Spannable WordtoSpan = new SpannableString(tabTextView.getText());
WordtoSpan.setSpan(new ForegroundColorSpan(globalActivity.getResources().getColor(R.color.whiteclear)), 0, tabTextView.getText().length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
WordtoSpan.setSpan(new ForegroundColorSpan(globalActivity.getResources().getColor(R.color.lightGrayClear)), 0, tabTextView.getText().length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
tabTextView.setText(WordtoSpan);
tabTextView.setTypeface(tabTextView.getTypeface(), Typeface.NORMAL);
}

View file

@ -105,7 +105,7 @@
app:tabSelectedTextColor="@color/white"
app:layout_collapseMode="pin"
app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget"
app:tabTextColor="@color/whiteclear"
app:tabTextColor="@color/lightGrayClear"
android:animateLayoutChanges="true" />
</android.support.design.widget.CollapsingToolbarLayout>

View file

@ -15,7 +15,7 @@
<color name="green">#147b00</color>
<color name="whiteclear">#cccccc</color>
<color name="lightGrayClear">#cccccc</color>
<color name="black">#000000</color>
<color name="greencolor">#70882E</color>