Пример #1
0
  @Override
  public void setTheme(TraktoidTheme theme) {
    super.setTheme(theme);

    // default actionbar appearance without scrolling
    actionBarBackground = new ColorDrawable(theme.getColor(this));
    getSupportActionBar().setBackgroundDrawable(actionBarBackground);
    setActionBarAppearance(0);
  }
Пример #2
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    Bundle activityBundle = getIntent().getExtras();
    String header = activityBundle.getString(TraktoidConstants.BUNDLE_HEADER);

    tivFanart = (TraktImageView) findViewById(R.id.tivFanart);
    int color = Utils.getColorFromAttribute(this, R.attr.colorPrimary);

    Picasso.with(this).load(header).placeholder(new ColorDrawable(color)).into(tivFanart);
  }