react-native-navigation的迁移库

RnnTabLayout.java 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package com.reactnativenavigation.views;
  2. /**
  3. * Created by guyc on 07/05/16.
  4. */
  5. public class RnnTabLayout {
  6. // private Drawable mBackground;
  7. // private ColorStateList mTabTextColors;
  8. // private int mSelectedTabIndicatorColor;
  9. //
  10. // public RnnTabLayout(Context context) {
  11. // this(context, null);
  12. // }
  13. //
  14. // public RnnTabLayout(Context context, AttributeSet attrs) {
  15. // this(context, attrs, 0);
  16. // }
  17. //
  18. // public RnnTabLayout(Context context, AttributeSet attrs, int defStyleAttr) {
  19. // super(context, attrs, defStyleAttr);
  20. // init(context);
  21. // }
  22. //
  23. // private void init(Context ctx) {
  24. // mBackground = getBackground();
  25. // mTabTextColors = getTabTextColors();
  26. //
  27. // // Get default accent color which is used as the selected tab indicator color
  28. // TypedValue typedValue = new TypedValue();
  29. // TypedArray a = ctx.obtainStyledAttributes(typedValue.data, new int[]{R.attr.colorAccent});
  30. // mSelectedTabIndicatorColor = a.getColor(0, 0);
  31. // a.recycle();
  32. // }
  33. //
  34. // public void setStyle(_Screen screen) {
  35. // if (screen.toolBarColor != null) {
  36. // setBackgroundColor(screen.toolBarColor);
  37. // } else {
  38. // resetBackground();
  39. // }
  40. //
  41. // if (screen.tabNormalTextColor != null && screen.tabSelectedTextColor != null) {
  42. // setTabTextColors(screen.tabNormalTextColor, screen.tabSelectedTextColor);
  43. // } else {
  44. // resetTextColors();
  45. // }
  46. //
  47. // if (screen.tabIndicatorColor != null) {
  48. // setSelectedTabIndicatorColor(screen.tabIndicatorColor);
  49. // } else {
  50. // resetSelectedTabIndicatorColor();
  51. // }
  52. // }
  53. //
  54. // public void resetBackground() {
  55. // setBackground(mBackground);
  56. // }
  57. //
  58. // public void resetTextColors() {
  59. // setTabTextColors(mTabTextColors);
  60. // }
  61. //
  62. // public void resetSelectedTabIndicatorColor() {
  63. // setSelectedTabIndicatorColor(mSelectedTabIndicatorColor);
  64. // }
  65. }