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