Ejemplo n.º 1
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Adding layout to container
    FrameLayout container = this.addLayoutToContainer(R.layout.activity_signup);
    ButterKnife.bind(this, container);

    setTitle(getString(R.string.signup_heading));

    this.mSignupAdapter = new ParseSignupAdapter();
  }
Ejemplo n.º 2
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Adding layout to container
    this.addLayoutToContainer(R.layout.activity_item_detail);

    this.setTitle("Edit Item");

    this.enableBackNav();

    Intent intent = this.getIntent();
    String itemId = intent.getStringExtra(ITEM);

    this.itemStorageAdapter = new ParseItemStorageAdapter();
    itemStorageAdapter.getItemAsync(this, itemId);

    this.categoryStorageAdapter = new ParseCategoryStorageAdapter();
    this.categoryStorageAdapter.getCategoriesAsync(this);

    this.categoryIdHashmap = new HashMap<String, Integer>();
  }