[064d990] | 1 | package ve.gob.cenditel.tibisaymovil; |
---|
| 2 | |
---|
| 3 | import android.os.Bundle; |
---|
| 4 | import android.app.Activity; |
---|
| 5 | import android.view.Menu; |
---|
| 6 | import android.view.Window; |
---|
| 7 | import android.widget.ImageView; |
---|
| 8 | import android.widget.LinearLayout; |
---|
| 9 | import android.widget.TextView; |
---|
| 10 | |
---|
| 11 | public class ActivitySignerInfo extends Activity { |
---|
| 12 | |
---|
| 13 | @Override |
---|
| 14 | protected void onCreate(Bundle savedInstanceState) { |
---|
| 15 | |
---|
| 16 | //Estilando la barra de titulo |
---|
| 17 | final boolean customTitleSupported = requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); |
---|
| 18 | |
---|
| 19 | super.onCreate(savedInstanceState); |
---|
| 20 | setContentView(R.layout.activity_signer_info); |
---|
| 21 | |
---|
| 22 | //Estilando Barra de titulo |
---|
| 23 | if(customTitleSupported) |
---|
| 24 | getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title_bar); |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | Bundle bundle = getIntent().getExtras(); |
---|
| 28 | //String name = bundle.getString("name"); |
---|
| 29 | String cn = bundle.getString("cn"); |
---|
| 30 | String date = bundle.getString("date"); |
---|
| 31 | String certificateSerial = bundle.getString("certificateSerial"); |
---|
| 32 | String validFrom = bundle.getString("validFrom"); |
---|
| 33 | String validUntil = bundle.getString("validUntil"); |
---|
| 34 | String certificateIssuer = bundle.getString("certificateIssuer"); |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | TextView signerCN = (TextView) this.findViewById(R.id.signer_detail_cn); |
---|
| 38 | signerCN.setText(cn); |
---|
| 39 | |
---|
| 40 | TextView signatureDate = (TextView) this.findViewById(R.id.signature_date); |
---|
| 41 | signatureDate.setText(date); |
---|
| 42 | |
---|
| 43 | TextView certSerial = (TextView) this.findViewById(R.id.certificate_serial); |
---|
| 44 | certSerial.setText(certificateSerial); |
---|
| 45 | |
---|
| 46 | TextView certValidFrom = (TextView) this.findViewById(R.id.certificate_valid_from); |
---|
| 47 | certValidFrom.setText(validFrom); |
---|
| 48 | |
---|
| 49 | TextView certValidUntil = (TextView) this.findViewById(R.id.certificate_valid_until); |
---|
| 50 | certValidUntil.setText(validUntil); |
---|
| 51 | |
---|
| 52 | TextView certCertificateIssuer = (TextView) this.findViewById(R.id.certificate_issuer); |
---|
| 53 | certCertificateIssuer.setText(certificateIssuer); |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | LinearLayout shareButton = (LinearLayout) this.findViewById(R.id.button_share_zone); |
---|
| 57 | shareButton.setVisibility(LinearLayout.GONE); |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | ImageView backImage = (ImageView) this.findViewById(R.id.button_finish); |
---|
| 61 | backImage.setVisibility(ImageView.GONE); |
---|
| 62 | |
---|
| 63 | TextView buttonFinishText = (TextView) this.findViewById(R.id.button_finish_text); |
---|
| 64 | buttonFinishText.setVisibility(TextView.GONE); |
---|
| 65 | |
---|
| 66 | } |
---|
| 67 | |
---|
| 68 | @Override |
---|
| 69 | public boolean onCreateOptionsMenu(Menu menu) { |
---|
| 70 | // Inflate the menu; this adds items to the action bar if it is present. |
---|
| 71 | getMenuInflater().inflate(R.menu.activity_signer_info, menu); |
---|
| 72 | return true; |
---|
| 73 | } |
---|
| 74 | |
---|
| 75 | } |
---|