List of usage examples for android.widget ImageView setOnClickListener
public void setOnClickListener(@Nullable OnClickListener l)
From source file:net.inbox.InboxSend.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.send);// www.ja v a 2s . c o m // Get the database DBAccess db = Pager.get_db(); current_inbox = db.get_account(getIntent().getExtras().getInt("db_id")); Toolbar tb = (Toolbar) findViewById(R.id.send_toolbar); setSupportActionBar(tb); // Find the title TextView tv_t; for (int i = 0; i < tb.getChildCount(); ++i) { int idd = tb.getChildAt(i).getId(); if (idd == -1) { tv_t = (TextView) tb.getChildAt(i); tv_t.setTextColor(ContextCompat.getColor(this, R.color.color_title)); tv_t.setTypeface(Pager.tf); break; } } if (getSupportActionBar() != null) { String s_title = getIntent().getExtras().getString("title"); if (s_title != null) getSupportActionBar().setTitle(s_title.toUpperCase()); } TextView tv_send = (TextView) findViewById(R.id.tv_send); tv_send.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (sending_active) { toaster(false, ""); } else { send(); } } }); et_to = (EditText) findViewById(R.id.send_to); sw_cc = (Switch) findViewById(R.id.send_cc_check); et_cc = (EditText) findViewById(R.id.send_cc); sw_bcc = (Switch) findViewById(R.id.send_bcc_check); et_bcc = (EditText) findViewById(R.id.send_bcc); et_subject = (EditText) findViewById(R.id.send_subject); et_contents = (EditText) findViewById(R.id.send_contents); tv_attachments = (TextView) findViewById(R.id.send_attachments_count); et_cc.setVisibility(View.GONE); et_bcc.setVisibility(View.GONE); sw_cc.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton v, boolean isChecked) { if (isChecked) { et_cc.setVisibility(View.VISIBLE); } else { et_cc.setVisibility(View.GONE); } } }); sw_bcc.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton v, boolean isChecked) { if (isChecked) { et_bcc.setVisibility(View.VISIBLE); } else { et_bcc.setVisibility(View.GONE); } } }); tv_attachments.setTypeface(Pager.tf); ImageView iv_attachments = (ImageView) findViewById(R.id.send_attachments_img); iv_attachments.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dialog_attachments(); } }); // Setting up the SSL authentication application iv_ssl_auth = (ImageView) findViewById(R.id.ssl_auth_img_vw); iv_ssl_auth.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dialog_servers(); } }); // Starts encryption iv_encryption = (ImageView) findViewById(R.id.iv_encryption); iv_encryption.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { gpg_crypto_tests(); } }); tv_encryption_reset = (TextView) findViewById(R.id.tv_encryption_reset); tv_encryption_reset.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { tv_encryption_reset.setVisibility(View.GONE); current.set_contents_crypto(null); et_contents.setText(msg_contents); crypto_locked = false; crypto_padlock(); } }); // If replying to a message String reply_to; String subject_of = ""; if (getIntent().getExtras().containsKey("subject")) { subject_of = getIntent().getExtras().getString("subject"); } if (getIntent().getExtras().containsKey("reply-to")) { reply_to = getIntent().getExtras().getString("reply-to"); et_to.setText(reply_to); et_subject.setText(subject_of); } }
From source file:com.emergencyskills.doe.aed.UI.activity.TabsActivity.java
@Override public void onBackPressed() { if (checkcurrentfragment()) {/* w w w . j a v a 2 s .c o m*/ final Dialog dialog = new Dialog(TabsActivity.this); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.dialog_leaving_confirmation); dialog.getWindow() .setBackgroundDrawable(new ColorDrawable(getResources().getColor(android.R.color.transparent))); Button yes = (Button) dialog.findViewById(R.id.yesbtn); yes.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dialog.dismiss(); showpickupschool(); } }); Button no = (Button) dialog.findViewById(R.id.nobtn); no.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dialog.dismiss(); } }); ImageView close = (ImageView) dialog.findViewById(R.id.ivClose); close.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dialog.dismiss(); } }); dialog.show(); } else { super.onBackPressed(); } }
From source file:ca.cmput301f13t03.adventure_datetime.view.FragmentView.java
public void setUpView() { if (_fragment == null) return;/*from w w w. j a v a2s .c om*/ /** Layout items **/ _filmLayout = (LinearLayout) _rootView.findViewById(R.id.filmstrip); _filmstrip = (HorizontalScrollView) _rootView.findViewById(R.id.filmstrip_wrapper); _choices = (Button) _rootView.findViewById(R.id.choices); _content = (TextView) _rootView.findViewById(R.id.content); if (_fragment.getStoryMedia() == null) _fragment.setStoryMedia(new ArrayList<Image>()); /* Run on UI Thread for server stuff */ getActivity().runOnUiThread(new Runnable() { @Override public void run() { /** Programmatically set filmstrip height **/ if (_fragment.getStoryMedia().size() > 0) _filmstrip.getLayoutParams().height = FILM_STRIP_SIZE; else _filmstrip.getLayoutParams().height = 0; _content.setText(_fragment.getStoryText()); _filmLayout.removeAllViews(); // 1) Create new ImageView and add to the LinearLayout // 2) Set appropriate Layout Params to ImageView // 3) Give onClickListener for going to fullscreen LinearLayout.LayoutParams lp; //for (int i = 0; i < _fragment.getStoryMedia().size(); i++) { for (int i = 0; i < _fragment.getStoryMedia().size(); i++) { ImageView li = new ImageView(getActivity()); li.setScaleType(ScaleType.CENTER_INSIDE); li.setImageBitmap(_fragment.getStoryMedia().get(i).decodeBitmap()); _filmLayout.addView(li); lp = (LinearLayout.LayoutParams) li.getLayoutParams(); lp.setMargins(10, 10, 10, 10); lp.width = FILM_STRIP_SIZE; lp.height = FILM_STRIP_SIZE; lp.gravity = Gravity.CENTER_VERTICAL; li.setLayoutParams(lp); li.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(getActivity(), FullScreen_Image.class); intent.putExtra(FullScreen_Image.TAG_AUTHOR, false); startActivity(intent); } }); } if (_fragment.getChoices().size() > 0) { /** Choices **/ final List<String> choices = new ArrayList<String>(); for (Choice choice : _fragment.getChoices()) choices.add(choice.getText()); choices.add("I'm feeling lucky."); _choices.setText("Actions"); _choices.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { new AlertDialog.Builder(v.getContext()).setTitle("Actions").setCancelable(true) .setItems(choices.toArray(new String[choices.size()]), new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { /** You feeling lucky, punk? **/ if (which == _fragment.getChoices().size()) which = (int) (Math.random() * _fragment.getChoices().size()); Choice choice = _fragment.getChoices().get(which); Toast.makeText(FragmentView.this.getActivity(), choice.getText(), Toast.LENGTH_LONG).show(); Locator.getUserController().MakeChoice(choice); } }) .create().show(); } }); } else { /** End of story **/ Locator.getUserController().deleteBookmark(); _choices.setText("The End"); _choices.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { new AlertDialog.Builder(v.getContext()).setTitle("La Fin").setCancelable(true) .setPositiveButton("Play Again", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Locator.getUserController().StartStory(_fragment.getStoryID()); } }) .setNegativeButton("Change Adventures", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { if (!_isEditing) getActivity().onBackPressed(); } }).create().show(); } }); } } }); }
From source file:eu.iescities.pilot.rovereto.roveretoexplorer.fragments.event.info.EventDetailInfoAdapter.java
public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parentView) { EventInfoParent parent = this.fragment.parents.get(groupPosition); ///*from www . j av a 2s .c o m*/ // Log.i("GROUPVIEW", "************ init group view!! ************ "); // Log.i("GROUPVIEW", "COUNT: " + countGroupViewCall); // Log.i("GROUPVIEW", "GROUP POSITION: " + groupPosition); // Log.i("GROUPVIEW", "tag group set label: " + tagGroupLabelSet); // Inflate event_info_group_item.xml file for parent rows if (convertView == null) { LayoutInflater infalInflater = (LayoutInflater) this.fragment.context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = infalInflater.inflate(R.layout.event_info_group_item, null); } convertView.setBackgroundResource(getBackgroundColor(groupPosition)); // Get grouprow.xml file elements and set values TextView item = (TextView) convertView.findViewById(R.id.event_info_attribute_names); item.setTypeface(null, Typeface.BOLD); item.setText(parent.getText1()); ImageView image = (ImageView) convertView.findViewById(R.id.event_info_action); int imageId = fragment.groupImages.get(groupPosition); image.setImageResource(imageId); image.setOnClickListener(new GroupIconClickListener(this.fragment.context, parent)); countGroupViewCall++; return convertView; }
From source file:com.emergencyskills.doe.aed.UI.activity.TabsActivity.java
public void showconfirmationdialog(final int fragnumber) { final Dialog dialog = new Dialog(TabsActivity.this); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.dialog_leaving_confirmation); dialog.getWindow()//from ww w . jav a 2s. c o m .setBackgroundDrawable(new ColorDrawable(getResources().getColor(android.R.color.transparent))); Button yes = (Button) dialog.findViewById(R.id.yesbtn); yes.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { switch (fragnumber) { case 1: showpickupschool(); break; case 2: showdrill(); break; case 3: showservice(); break; case 4: showinstall(); break; case 5: showpending(); break; } dialog.dismiss(); } }); Button no = (Button) dialog.findViewById(R.id.nobtn); no.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dialog.dismiss(); } }); ImageView close = (ImageView) dialog.findViewById(R.id.ivClose); close.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dialog.dismiss(); } }); dialog.show(); }
From source file:com.linkedin.android.shaky.FormFragment.java
@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); Toolbar toolbar = (Toolbar) view.findViewById(R.id.shaky_toolbar); EditText messageEditText = (EditText) view.findViewById(R.id.shaky_form_message); ImageView attachmentImageView = (ImageView) view.findViewById(R.id.shaky_form_attachment); Uri screenshotUri = getArguments().getParcelable(KEY_SCREENSHOT_URI); String title = getArguments().getString(KEY_TITLE); toolbar.setTitle(title);// w ww.jav a 2 s. c o m toolbar.setNavigationIcon(R.drawable.ic_arrow_back_white_24dp); toolbar.setNavigationOnClickListener(createNavigationClickListener()); toolbar.inflateMenu(R.menu.shaky_feedback_activity_actions); toolbar.setOnMenuItemClickListener(createMenuClickListener(messageEditText)); String hint = getArguments().getString(KEY_HINT); messageEditText.setHint(hint); messageEditText.requestFocus(); attachmentImageView.setImageURI(screenshotUri); attachmentImageView.setOnClickListener(createNavigationClickListener()); }
From source file:bizapps.com.healthforusPatient.activity.RegisterActivity.java
public void termsDialog(String title, String text) { final Dialog dialog = new Dialog(this, android.R.style.Theme_Black_NoTitleBar_Fullscreen); dialog.setContentView(R.layout.terms_layout); TextView titleTv = (TextView) dialog.findViewById(R.id.title_text); titleTv.setText(title);/*from ww w . j a v a 2 s.c o m*/ ImageView imgView = (ImageView) dialog.findViewById(R.id.imageView1); imgView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dialog.cancel(); } }); String terms = ""; if (text.equalsIgnoreCase("pp")) { terms = "Welcome to Medico4us!\n" + "These terms and conditions outline the rules and regulations for the use of Medico4us Website/Application. \n" + "By accessing this website, we assume you accept these terms and conditions in full. Do not continue to use Medico4us application or website if you do not accept all of the terms and conditions stated on this page.\n" + "The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and any or all Agreements: \"Client\", You? and Your? refers to you, the person accessing this website and accepting the Companys terms and conditions. \"The Company\", Ourselves?, We?, Our? and \"Us\", refers to our Company. Party?, Parties?, or Us?, refers to both the Client and ourselves, or either the Client or ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner, whether by formal meetings of a fixed duration, or any other means, for the express purpose of meeting the Clients needs in respect of provision of the Companys stated services/products, in accordance with and subject to, prevailing law of India. Any use of the above terminology or other words in the singular, plural, capitalization and/or he/she or they, are taken as interchangeable and therefore as referring to same.\n" + "Cookies\n" + "We employ the use of cookies. By using Medico4us website you consent to the use of cookies in accordance with Medico4us privacy policy.\n" + "Most of the modern day interactive web sites/ applications use cookies to enable us to retrieve user details for each visit. Cookies are used in some areas of our site to enable the functionality of this area and ease of use for those people visiting. Some of our affiliate / advertising partners may also use cookies.\n" + "License\n" + "Unless otherwise stated, Medico4us and/or its licensors own the intellectual property rights for all material on Medico4us All intellectual property rights are reserved. You may view and/or print pages for your own personal use subject to restrictions set in these terms and conditions.\n" + "You must not:\n" + "Republish material from Medico4us\n" + "Sell, rent or sub-license material fromMedico4us\n" + "Reproduce, duplicate or copy material from Medico4us\n" + "Redistribute content from Medico4us (unless content is specifically made for redistribution).\n" + "\n" + "User Comments\n" + "This Agreement shall begin on the date hereof.\n" + "Certain parts of this application/website offer the opportunity for users to post and exchange opinions, information, material and data ('Comments') in areas of the feedback(website/application). Medico4us does not screen, edit, publish or review Comments prior to their appearance on the website and Comments do not reflect the views or opinions of Medico4us, its agents or affiliates. Comments reflect the view and opinion of the person who posts such view or opinion. To the extent permitted by applicable laws Medico4us shall not be responsible or liable for the Comments or for any loss cost, liability, damages or expenses caused and or suffered as a result of any use of and/or posting of and/or appearance of the Comments on this website/application.\n" + "Medico4us reserves the right to monitor all Comments and to remove any Comments which it considers in its absolute discretion to be inappropriate, offensive or otherwise in breach of these Terms and Conditions.\n" + "You warrant and represent that: You are entitled to post the Comments on our website and have all necessary licenses and consents to do so;\n" + "The Comments do not infringe any intellectual property right, including without limitation copyright, patent or trademark, or other proprietary right of any third party;\n" + "The Comments do not contain any defamatory, libelous, offensive, indecent or otherwise unlawful material or material which is an invasion of privacy\n" + "The Comments will not be used to solicit or promote business or custom or present commercial activities or unlawful activity.\n" + "You hereby grant to Medico4us a non-exclusive royalty-free license to use, reproduce, edit and authorize others to use, reproduce and edit any of your Comments in any and all forms, formats or media.\n" + "Hyperlinking to our Content\n" + "The following organizations may link to our Web site without prior written approval:\n" + "Government agencies;\n" + "Search engines;\n" + "News organizations;\n" + "\n" + "Online directory distributors when they list us in the directory may link to our Web site/application in the same manner as they hyperlink to the Web sites of other listed businesses; and System wide Accredited Businesses except soliciting non-profit organizations, charity shopping malls, and charity fundraising groups which may not hyperlink to our Web site.\n" + "These organizations may link to our home page, to publications or to other Web site information so long as the link: (a) is not in any way misleading; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products or services; and (c) fits within the context of the linking party's site.\n" + "We may consider and approve in our sole discretion other link requests from the following types of organizations:\n" + "Commonly-known consumer and/or business information sources such as Chambers of Commerce, community sites; associations or other groups representing charities, including charity giving sites, online directory distributors; internet portals; accounting, law and consulting firms whose primary clients are businesses; and trade associations.\n" + "We will approve link requests from these organizations if we determine that: (a) the link would not reflect unfavorably on us or our accredited businesses (for example, trade associations or other organizations representing inherently suspect types of business, such as work-at-home opportunities, shall not be allowed to link); (b)the organization does not have an unsatisfactory record with us; (c) the benefit to us from the visibility associated with the hyperlink outweighs the absence of Medico4us; and (d) where the link is in the context of general resource information or is otherwise consistent with editorial content in a newsletter or similar product furthering the mission of the organization.\n" + "These organizations may link to our home page, to publications or to other Web site information so long as the link: (a) is not in any way misleading; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and it products or services; and (c) fits within the context of the linking party's site.\n" + "Approved organizations may hyperlink to our Web site as follows:\n" + "By use of our corporate name; or\n" + "By use of the uniform resource locator (Web address) being linked to; or\n" + "By use of any other description of our Web site or material being linked to that makes sense within the context and format of content on the linking party's site.\n" + "No use of (name)s logo or other artwork will be allowed for linking absent a trademark license agreement.\n" + "\n" + "Reservation of Rights\n" + "We reserve the right at any time and in its sole discretion to request that you remove all links or any particular link to our Web site/application. You agree to immediately remove all links to our Web site upon such request. We also reserve the right to amend these terms and conditions and its linking policy at any time. By continuing to link to our Web site/application, you agree to be bound to and abide by these linking terms and conditions.\n" + "Whilst we endeavor to ensure that the information on this website is correct, we do not warrant its completeness or accuracy; nor do we commit to ensuring that the website remains available or that the material on the website is kept up to date.\nWelcome to Medico4us!\n" + "These terms and conditions outline the rules and regulations for the use of Medico4us Website/Application. \n" + "By accessing this website, we assume you accept these terms and conditions in full. Do not continue to use Medico4us application or website if you do not accept all of the terms and conditions stated on this page.\n" + "The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and any or all Agreements: \"Client\", You? and Your? refers to you, the person accessing this website and accepting the Companys terms and conditions. \"The Company\", Ourselves?, We?, Our? and \"Us\", refers to our Company. Party?, Parties?, or Us?, refers to both the Client and ourselves, or either the Client or ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner, whether by formal meetings of a fixed duration, or any other means, for the express purpose of meeting the Clients needs in respect of provision of the Companys stated services/products, in accordance with and subject to, prevailing law of India. Any use of the above terminology or other words in the singular, plural, capitalization and/or he/she or they, are taken as interchangeable and therefore as referring to same.\n" + "Cookies\n" + "We employ the use of cookies. By using Medico4us website you consent to the use of cookies in accordance with Medico4us privacy policy.\n" + "Most of the modern day interactive web sites/ applications use cookies to enable us to retrieve user details for each visit. Cookies are used in some areas of our site to enable the functionality of this area and ease of use for those people visiting. Some of our affiliate / advertising partners may also use cookies.\n" + "License\n" + "Unless otherwise stated, Medico4us and/or its licensors own the intellectual property rights for all material on Medico4us All intellectual property rights are reserved. You may view and/or print pages for your own personal use subject to restrictions set in these terms and conditions.\n" + "You must not:\n" + "Republish material from Medico4us\n" + "Sell, rent or sub-license material fromMedico4us\n" + "Reproduce, duplicate or copy material from Medico4us\n" + "Redistribute content from Medico4us (unless content is specifically made for redistribution).\n" + "\n" + "User Comments\n" + "This Agreement shall begin on the date hereof.\n" + "Certain parts of this application/website offer the opportunity for users to post and exchange opinions, information, material and data ('Comments') in areas of the feedback(website/application). Medico4us does not screen, edit, publish or review Comments prior to their appearance on the website and Comments do not reflect the views or opinions of Medico4us, its agents or affiliates. Comments reflect the view and opinion of the person who posts such view or opinion. To the extent permitted by applicable laws Medico4us shall not be responsible or liable for the Comments or for any loss cost, liability, damages or expenses caused and or suffered as a result of any use of and/or posting of and/or appearance of the Comments on this website/application.\n" + "Medico4us reserves the right to monitor all Comments and to remove any Comments which it considers in its absolute discretion to be inappropriate, offensive or otherwise in breach of these Terms and Conditions.\n" + "You warrant and represent that: You are entitled to post the Comments on our website and have all necessary licenses and consents to do so;\n" + "The Comments do not infringe any intellectual property right, including without limitation copyright, patent or trademark, or other proprietary right of any third party;\n" + "The Comments do not contain any defamatory, libelous, offensive, indecent or otherwise unlawful material or material which is an invasion of privacy\n" + "The Comments will not be used to solicit or promote business or custom or present commercial activities or unlawful activity.\n" + "You hereby grant to Medico4us a non-exclusive royalty-free license to use, reproduce, edit and authorize others to use, reproduce and edit any of your Comments in any and all forms, formats or media.\n" + "Hyperlinking to our Content\n" + "The following organizations may link to our Web site without prior written approval:\n" + "Government agencies;\n" + "Search engines;\n" + "News organizations;\n" + "\n" + "Online directory distributors when they list us in the directory may link to our Web site/application in the same manner as they hyperlink to the Web sites of other listed businesses; and System wide Accredited Businesses except soliciting non-profit organizations, charity shopping malls, and charity fundraising groups which may not hyperlink to our Web site.\n" + "These organizations may link to our home page, to publications or to other Web site information so long as the link: (a) is not in any way misleading; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products or services; and (c) fits within the context of the linking party's site.\n" + "We may consider and approve in our sole discretion other link requests from the following types of organizations:\n" + "Commonly-known consumer and/or business information sources such as Chambers of Commerce, community sites; associations or other groups representing charities, including charity giving sites, online directory distributors; internet portals; accounting, law and consulting firms whose primary clients are businesses; and trade associations.\n" + "We will approve link requests from these organizations if we determine that: (a) the link would not reflect unfavorably on us or our accredited businesses (for example, trade associations or other organizations representing inherently suspect types of business, such as work-at-home opportunities, shall not be allowed to link); (b)the organization does not have an unsatisfactory record with us; (c) the benefit to us from the visibility associated with the hyperlink outweighs the absence of Medico4us; and (d) where the link is in the context of general resource information or is otherwise consistent with editorial content in a newsletter or similar product furthering the mission of the organization.\n" + "These organizations may link to our home page, to publications or to other Web site information so long as the link: (a) is not in any way misleading; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and it products or services; and (c) fits within the context of the linking party's site.\n" + "Approved organizations may hyperlink to our Web site as follows:\n" + "By use of our corporate name; or\n" + "By use of the uniform resource locator (Web address) being linked to; or\n" + "By use of any other description of our Web site or material being linked to that makes sense within the context and format of content on the linking party's site.\n" + "No use of (name)s logo or other artwork will be allowed for linking absent a trademark license agreement.\n" + "\n" + "Reservation of Rights\n" + "We reserve the right at any time and in its sole discretion to request that you remove all links or any particular link to our Web site/application. You agree to immediately remove all links to our Web site upon such request. We also reserve the right to amend these terms and conditions and its linking policy at any time. By continuing to link to our Web site/application, you agree to be bound to and abide by these linking terms and conditions.\n" + "Whilst we endeavor to ensure that the information on this website is correct, we do not warrant its completeness or accuracy; nor do we commit to ensuring that the website remains available or that the material on the website is kept up to date.\nPrivacy Policy\n" + "The information provided in Medico4us are posted by registered members of this website and moderated by the team of Medico4us. Doctors & Patients full name, contact number and email id is the only identifying information that is being collected on the application about a user/reader/vendor when they list/post or comment. Medico4us will sell or make use of such information to third parties. We will occasionally analyze such information and will share the results of such analysis in our advisory section. Medico4us may change the policy anytime by posting changes online. Medico4us is not responsible for third party content accessible through the site, including opinions, advice, rating, reviews, statements, and advertisements, and user shall bear all risks associated with the use of such content. \n" + "Medico4us is not responsible for any loss or damage of any sort user may incur from dealing with any third party. This policy describes how Medico4us collects and handles Doctors/Patients/Customers information to help us serve our services better. Personal information is any information that identifies you, such as your name, address, email address, phone number, and previous use of Medico4us application. By visiting our site/application, you accept the practices outlined in this privacy policy.\n" + "COLLECTING INFORMATION\n" + "Medico4us collects information when you register with Medico4us or update your details to receive our newsletters, participate in discussions, events, promotions or any upcoming activities, which will be informed to you over time-to-time. When you register with Medico4us, we may ask for information such as your name, phone number, email address, city, state, and zip code. Once you create and sign into your account, Medico4us automatically receives information from your browser, such as your IP address, and cookies. Cookies enable our platform to recognize you as you move throughout our website. Your web browser also allows us to track statistics such as type of browsers on our platform, page views, navigational patterns, and high traffic areas. This information does NOT track personally identifiable information about our users.\n" + "\n" + "PROTECTING INFORMATION\n" + "Occasionally, we work with trusted partners who work on our behalf to improve our services to you. These partners may have access to your personal information after they have agreed to our confidentiality agreement. In the case whereMedico4us is acquired by or merged with another company, Medico4us may disclose your personal information to a purchaser that agrees to abide by the terms and conditions of this privacy policy.\n" + "We may disclose information about you if required to do so by law, governmental request, process, or court order or based on our good faith belief that there is suspected fraud or situation involving potential threats to the safety of any person or violation of the Medico4us terms of use.\n" + "MARKETING COMMUNICATIONS\n" + "In addition to using your personal information to improve and enhance your experience with Medico4us, we use information to better target our marketing to your behavioral preferences. If you create an account on our platform, you will be required to provide your email address & contact number and you may automatically be added to our email list and receive updates. If you do not wish to receive Medico4us updates, emails, you may opt out by clicking on the unsubscribe link found at the bottom of all Medico4us marketing emails. Please be aware that it can take up to 30 business days to remove you from our marketing email lists.\n" + "\n" + "\n" + "\n" + "NOTIFICATION OF CHANGES\n" + "Medico4us is committed to protecting your privacy and may update this policy from time-to-time. Changes will be updated on our website with the date of the most recent update. We will notify you about significant changes to our privacy policy by sending a notice to the primary email address on your account.\n" + "Privacy Policy Changes\n" + "Although most changes are likely to be minor, Medico4us may change its Privacy Policy from time to time, and in Medico4us sole discretion. Medico4us encourages visitors to frequently check this page for any changes to its Privacy Policy. Your continued use of this site after any change in this Privacy Policy will constitute your acceptance of such change.\n" + "Aggregated Statistics\n" + "Medico4us may collect statistics about the behavior of visitors to its website/ application. \n" + "Medico4us may display this information publicly or provide it to others. However, Medico4us does not disclose your personally-identifying information.\n"; } else { terms = "Welcome to Medico4us!\n" + "These terms and conditions outline the rules and regulations for the use of Medico4us Website/Application. \n" + "By accessing this website, we assume you accept these terms and conditions in full. Do not continue to use Medico4us application or website if you do not accept all of the terms and conditions stated on this page.\n" + "The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and any or all Agreements: \"Client\", You? and Your? refers to you, the person accessing this website and accepting the Companys terms and conditions. \"The Company\", Ourselves?, We?, Our? and \"Us\", refers to our Company. Party?, Parties?, or Us?, refers to both the Client and ourselves, or either the Client or ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner, whether by formal meetings of a fixed duration, or any other means, for the express purpose of meeting the Clients needs in respect of provision of the Companys stated services/products, in accordance with and subject to, prevailing law of India. Any use of the above terminology or other words in the singular, plural, capitalization and/or he/she or they, are taken as interchangeable and therefore as referring to same.\n" + "Cookies\n" + "We employ the use of cookies. By using Medico4us website you consent to the use of cookies in accordance with Medico4us privacy policy.\n" + "Most of the modern day interactive web sites/ applications use cookies to enable us to retrieve user details for each visit. Cookies are used in some areas of our site to enable the functionality of this area and ease of use for those people visiting. Some of our affiliate / advertising partners may also use cookies.\n" + "License\n" + "Unless otherwise stated, Medico4us and/or its licensors own the intellectual property rights for all material on Medico4us All intellectual property rights are reserved. You may view and/or print pages for your own personal use subject to restrictions set in these terms and conditions.\n" + "You must not:\n" + "Republish material from Medico4us\n" + "Sell, rent or sub-license material fromMedico4us\n" + "Reproduce, duplicate or copy material from Medico4us\n" + "Redistribute content from Medico4us (unless content is specifically made for redistribution).\n" + "\n" + "User Comments\n" + "This Agreement shall begin on the date hereof.\n" + "Certain parts of this application/website offer the opportunity for users to post and exchange opinions, information, material and data ('Comments') in areas of the feedback(website/application). Medico4us does not screen, edit, publish or review Comments prior to their appearance on the website and Comments do not reflect the views or opinions of Medico4us, its agents or affiliates. Comments reflect the view and opinion of the person who posts such view or opinion. To the extent permitted by applicable laws Medico4us shall not be responsible or liable for the Comments or for any loss cost, liability, damages or expenses caused and or suffered as a result of any use of and/or posting of and/or appearance of the Comments on this website/application.\n" + "Medico4us reserves the right to monitor all Comments and to remove any Comments which it considers in its absolute discretion to be inappropriate, offensive or otherwise in breach of these Terms and Conditions.\n" + "You warrant and represent that: You are entitled to post the Comments on our website and have all necessary licenses and consents to do so;\n" + "The Comments do not infringe any intellectual property right, including without limitation copyright, patent or trademark, or other proprietary right of any third party;\n" + "The Comments do not contain any defamatory, libelous, offensive, indecent or otherwise unlawful material or material which is an invasion of privacy\n" + "The Comments will not be used to solicit or promote business or custom or present commercial activities or unlawful activity.\n" + "You hereby grant to Medico4us a non-exclusive royalty-free license to use, reproduce, edit and authorize others to use, reproduce and edit any of your Comments in any and all forms, formats or media.\n" + "Hyperlinking to our Content\n" + "The following organizations may link to our Web site without prior written approval:\n" + "Government agencies;\n" + "Search engines;\n" + "News organizations;\n" + "\n" + "Online directory distributors when they list us in the directory may link to our Web site/application in the same manner as they hyperlink to the Web sites of other listed businesses; and System wide Accredited Businesses except soliciting non-profit organizations, charity shopping malls, and charity fundraising groups which may not hyperlink to our Web site.\n" + "These organizations may link to our home page, to publications or to other Web site information so long as the link: (a) is not in any way misleading; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products or services; and (c) fits within the context of the linking party's site.\n" + "We may consider and approve in our sole discretion other link requests from the following types of organizations:\n" + "Commonly-known consumer and/or business information sources such as Chambers of Commerce, community sites; associations or other groups representing charities, including charity giving sites, online directory distributors; internet portals; accounting, law and consulting firms whose primary clients are businesses; and trade associations.\n" + "We will approve link requests from these organizations if we determine that: (a) the link would not reflect unfavorably on us or our accredited businesses (for example, trade associations or other organizations representing inherently suspect types of business, such as work-at-home opportunities, shall not be allowed to link); (b)the organization does not have an unsatisfactory record with us; (c) the benefit to us from the visibility associated with the hyperlink outweighs the absence of Medico4us; and (d) where the link is in the context of general resource information or is otherwise consistent with editorial content in a newsletter or similar product furthering the mission of the organization.\n" + "These organizations may link to our home page, to publications or to other Web site information so long as the link: (a) is not in any way misleading; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and it products or services; and (c) fits within the context of the linking party's site.\n" + "Approved organizations may hyperlink to our Web site as follows:\n" + "By use of our corporate name; or\n" + "By use of the uniform resource locator (Web address) being linked to; or\n" + "By use of any other description of our Web site or material being linked to that makes sense within the context and format of content on the linking party's site.\n" + "No use of (name)s logo or other artwork will be allowed for linking absent a trademark license agreement.\n" + "\n" + "Reservation of Rights\n" + "We reserve the right at any time and in its sole discretion to request that you remove all links or any particular link to our Web site/application. You agree to immediately remove all links to our Web site upon such request. We also reserve the right to amend these terms and conditions and its linking policy at any time. By continuing to link to our Web site/application, you agree to be bound to and abide by these linking terms and conditions.\n" + "Whilst we endeavor to ensure that the information on this website is correct, we do not warrant its completeness or accuracy; nor do we commit to ensuring that the website remains available or that the material on the website is kept up to date.\n"; } TextView termsTv = (TextView) dialog.findViewById(R.id.tv_terms); termsTv.setText(terms); dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.WHITE)); dialog.show(); }
From source file:com.accia77.mockey.adapters.ManageEntriesCustomCursorAdapter.java
@Override public void bindView(View view, Context context, Cursor cursor) { final Entry entry = EntriesDataSource.cursorToEntry(cursor); TextView txtDesc = (TextView) view.findViewById(R.id.desc); // holder.txtTitle = (TextView) // convertView.findViewById(R.id.title); ImageView imageView = (ImageView) view.findViewById(R.id.icon); txtDesc.setText(entry.getUserEditedEntry()); //iconId defaults to ic_action_edit int iconId = R.drawable.ic_action_edit; // if(entry.getEntryType() == MySQLiteHelper.ENTRY_TYPE_PURE_TEXT) // iconId = R.drawable.ic_action_edit; if (entry.getEntryType() == MySQLiteHelper.ENTRY_TYPE_AUDIO) iconId = R.drawable.ic_action_microphone; //NOTE: PHOTO and VIDEO not supported yet if (entry.getEntryType() == MySQLiteHelper.ENTRY_TYPE_PHOTO) iconId = R.drawable.ic_action_photo; if (entry.getEntryType() == MySQLiteHelper.ENTRY_TYPE_VIDEO) iconId = R.drawable.ic_action_video; imageView.setImageResource(iconId);//from w ww . j a v a 2s . com imageView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { //No playback if the sdcard is not mounted if (MyApplication.getInstance().isSdCardMounted(false)) { MyApplication.getInstance().playSelection(entry); } } }); }
From source file:com.joravasal.comicagg.ComicDetailFragment.java
@SuppressLint({ "NewApi" }) @Override//from w w w. jav a 2 s . c om public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_comic_detail, container, false); if (comicItem == null && savedInstanceState.containsKey(ARG_ITEM_ID)) { comicItem = new ComicItem(savedInstanceState.getString(ARG_ITEM_ID), savedInstanceState.getString("comicname"), savedInstanceState.getString("comicurl"), savedInstanceState.getString("unreadcount")); } int unread = Integer.parseInt(comicItem.unreadCount); if (unread == 0) { rootView.findViewById(R.id.vote_bar).setVisibility(View.GONE); } LinearLayout stripList = (LinearLayout) rootView.findViewById(R.id.strips_list); LayoutParams layoutParams = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); if (comicItem.id.equals(ComicStripsContent.id) && ComicStripsContent.ITEMS.size() > unread) { unread = ComicStripsContent.ITEMS.size(); } for (int i = 1; i < unread; i++) { ImageView iv = new ImageView(getActivity()); iv.setId(Integer.MAX_VALUE - i); iv.setPadding(16, 16, 16, 0); iv.setContentDescription(getString(R.string.strip_description)); iv.setAdjustViewBounds(true); iv.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO check if there is need of opening? or always open? openFullscreenStrip(v); } }); TextView tv = new TextView(getActivity()); tv.setId(i); tv.setPadding(16, 4, 16, 4); tv.setGravity(Gravity.CENTER); stripList.addView(iv, layoutParams); stripList.addView(tv, layoutParams); } if (!comicItem.id.equals(ComicStripsContent.id)) { new GetComicsStrips(comicItem.id, unread, rootView).execute(); } else { new GetComicsStrips(comicItem.id, unread, rootView).onPostExecute(null); } if (savedInstanceState != null && savedInstanceState.containsKey(VERTICAL_SCROLLING_POSITION) && VERSION.SDK_INT >= 14) { rootView.findViewById(R.id.comic_scrollView).scrollTo(0, savedInstanceState.getInt(VERTICAL_SCROLLING_POSITION)); } return rootView; }
From source file:nz.co.wholemeal.christchurchmetro.PlatformActivity.java
public void setStopHeader(final Stop stop) { TextView platformNumber = (TextView) stopHeader.findViewById(R.id.platform_number); TextView platformName = (TextView) stopHeader.findViewById(R.id.platform_name); final ImageView favouriteIcon = (ImageView) stopHeader.findViewById(R.id.favourite_icon); platformNumber.setText(stop.platformNumber); platformName.setText(stop.name);/*from w w w. j a va 2 s. c om*/ if (FavouritesActivity.isFavourite(stop)) { favouriteIcon.setImageResource(R.drawable.favourite_active); } else { favouriteIcon.setImageResource(R.drawable.favourite_inactive); } favouriteIcon.setOnClickListener(new OnClickListener() { public void onClick(View view) { if (FavouritesActivity.isFavourite(stop)) { removeFromFavourites(stop); favouriteIcon.setImageResource(R.drawable.favourite_inactive); } else { addToFavourites(stop); favouriteIcon.setImageResource(R.drawable.favourite_active); } } }); }