Code example for ViewStub

Methods: inflate, setLayoutResource

0
  } 
 
  protected void setupView(Bundle paramBundle)
  { 
    ViewStub localViewStub = (ViewStub)findViewById(2131296257);
    localViewStub.setLayoutResource(2130903051);
    localViewStub.inflate();
    this.serial = ((TextView)findViewById(2131296314));
    this.serial.setText(getTokenData().getSerial());
    registerForContextMenu(findViewById(2131296312)); 
    this.restore = ((TextView)findViewById(2131296311));
    TokenGenerator localTokenGenerator = getApp().tokenGenerator();
    if (localTokenGenerator != null)
      this.restore.setText(localTokenGenerator.getRestore());
    registerForContextMenu(findViewById(2131296309)); 
    findViewById(2131296290).setOnClickListener(new View.OnClickListener()
    { 
      public void onClick(View paramAnonymousView)
      { 
        Setup2Activity.this.onViewCodeClick(paramAnonymousView);
      }