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