-whiteclear color change name
This commit is contained in:
parent
17f74b4774
commit
6d06d307f3
3 changed files with 3 additions and 7 deletions
|
@ -19,13 +19,11 @@ import android.support.v4.app.FragmentManager;
|
||||||
import android.support.v4.app.FragmentStatePagerAdapter;
|
import android.support.v4.app.FragmentStatePagerAdapter;
|
||||||
import android.support.v4.app.FragmentTransaction;
|
import android.support.v4.app.FragmentTransaction;
|
||||||
import android.support.v4.view.ViewPager;
|
import android.support.v4.view.ViewPager;
|
||||||
import android.support.v7.app.AppCompatActivity;
|
|
||||||
import android.support.v7.widget.Toolbar;
|
import android.support.v7.widget.Toolbar;
|
||||||
import android.text.Spannable;
|
import android.text.Spannable;
|
||||||
import android.text.SpannableString;
|
import android.text.SpannableString;
|
||||||
import android.text.style.ForegroundColorSpan;
|
import android.text.style.ForegroundColorSpan;
|
||||||
import android.util.Pair;
|
import android.util.Pair;
|
||||||
import android.util.TypedValue;
|
|
||||||
import android.view.SurfaceHolder;
|
import android.view.SurfaceHolder;
|
||||||
import android.view.SurfaceView;
|
import android.view.SurfaceView;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
@ -35,8 +33,6 @@ import android.widget.ImageView;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.sjaramillo10.animatedtablayout.AnimatedTabLayout;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
import butterknife.BindView;
|
import butterknife.BindView;
|
||||||
|
@ -142,7 +138,7 @@ public class BoardActivity extends CustomActivity {
|
||||||
TextView tabTextView = (TextView) tabLayout.getChildAt(1);
|
TextView tabTextView = (TextView) tabLayout.getChildAt(1);
|
||||||
//tabTextView.setTextSize(TypedValue.COMPLEX_UNIT_DIP ,50);
|
//tabTextView.setTextSize(TypedValue.COMPLEX_UNIT_DIP ,50);
|
||||||
Spannable WordtoSpan = new SpannableString(tabTextView.getText());
|
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.setText(WordtoSpan);
|
||||||
tabTextView.setTypeface(tabTextView.getTypeface(), Typeface.NORMAL);
|
tabTextView.setTypeface(tabTextView.getTypeface(), Typeface.NORMAL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
app:tabSelectedTextColor="@color/white"
|
app:tabSelectedTextColor="@color/white"
|
||||||
app:layout_collapseMode="pin"
|
app:layout_collapseMode="pin"
|
||||||
app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget"
|
app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget"
|
||||||
app:tabTextColor="@color/whiteclear"
|
app:tabTextColor="@color/lightGrayClear"
|
||||||
android:animateLayoutChanges="true" />
|
android:animateLayoutChanges="true" />
|
||||||
|
|
||||||
</android.support.design.widget.CollapsingToolbarLayout>
|
</android.support.design.widget.CollapsingToolbarLayout>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<color name="green">#147b00</color>
|
<color name="green">#147b00</color>
|
||||||
|
|
||||||
|
|
||||||
<color name="whiteclear">#cccccc</color>
|
<color name="lightGrayClear">#cccccc</color>
|
||||||
|
|
||||||
<color name="black">#000000</color>
|
<color name="black">#000000</color>
|
||||||
<color name="greencolor">#70882E</color>
|
<color name="greencolor">#70882E</color>
|
||||||
|
|
Loading…
Reference in a new issue