平方X 发表于 2016-6-14 18:19:16

Android隐藏输入法键盘(hideSoftInputFromInputMethod没有效果)

【 Android隐藏输入法键盘(hideSoftInputFromInputMethod没有效果)】[http://blog.csdn.net/yanzi1225627/article/details/38882907]
在个别时候,需要强制隐藏Android输入法键盘,如当前键盘正在显示,这个时候点击了侧滑面板,就要强制隐藏输入法键盘。网上常见的方法有:

1、                InputMethodManager imm = (InputMethodManager) getActivity()
                                .getSystemService(Context.INPUT_METHOD_SERVICE);
                imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);

这个是让输入法状态发生逆转,如果当前未显示则显示出来。如果显示出来,则隐藏。因此是不符合本文所说的应用场景的。

2、imm.hideSoftInputFromInputMethod(passwdEdit.getWindowToken(), 0);

这个经本人在android4.2机子上测试无效。

3、imm.hideSoftInputFromInputMethod(getActivity().getCurrentFocus().getWindowToken(), 0);

经本人测试,依然无效。大爷的,为了这个小功能浪费了杂家两个小时时间。

4、imm.hideSoftInputFromWindow(passwdEdit.getWindowToken(), 0);

经过测试,这是唯一有效的方法!

另外,有人说:

                InputMethodManager imm = (InputMethodManager) this
                                .getSystemService(Context.INPUT_METHOD_SERVICE);
                boolean isOpen=imm.isActive();
                Log.i(TAG, "imm.isActive() = " + isOpen);

用以上代码来判断当前输入法键盘是否弹出可见,完全扯淡,isOpen一直为true。特此记录。

发表于 2017-3-16 23:57:51

Has your snoring prevented you from getting good sleep for years? If you have not seen a doctor about this issue, you might be experiencing a dangerous and serious form of snoring associated with sleep apnea. If this rings true, then try not worry!. The article below can help.

Skip sleeping pills if you are prone to bouts of sleep apnea. You may feel you need them to get to sleep, but they have a similar effect as alcohol on the body. They also have additional side effects besides the obvious ones. Stay away if you want to lessen your sleep apnea symptoms.

If you have sleep apnea, yet you drink alcohol and smoke cigarettes, quitting could alleviate your symptoms. Both smoking and drinking promote relaxation of the airways causing sleep apnea and excessive snoring. If you avoid these things, it may help your sleep apnea.

If you have tried a number of less drastic sleep apnea treatment options, you might want to consider discussing surgical treatment options for the condition with your primary care physician. Sleep apnea treatment surgery often involves increasing the diameter of your airway in an effort to reduce the number of apnea episodes that you experience.

Getting a CPAP machine is probably the best option for your sleep apnea. These machines will keep your airways open and help you breathe. You should talk to your doctor about CPAP machines and figure out which model would be the most adapted. This machine should work if you use it properly.

Clear up your nasal passage before heading to bed. If you suffer from sleep apnea and have problems with a "stuffed up" nose, using a nasal spray or device can help clear your nasal airway. This is not a permanent solution, but one you can use when your apnea symptoms are the worst.

If you have been diagnosed with sleep apnea, it is important to avoid drinking alcohol. Alcoholic beverages will relax the muscles in your throat, which makes it more likely that they will block your airway during your sleep. At the very least, avoid any alcoholic beverages in the evening before you get ready for bed.

Drink one cup of caffeinated coffee a few hours before you go to sleep. It may seem silly to drink a caffeine drink at night, but this can actually help keep your throat open while you sleep. You may have to play around with what time you drink the coffee to avoid restlessness.

If simple changes in your lifestyle, such as regular sleep hours and losing weight, have not eliminated your sleep apnea episodes, it is time to consult with a sleep specialist. The specific causes of your sleep apnea can be evaluated, and an individual treatment plan can be designed for you.

Sleep apnea can cause many problems beyond just the inability to get a good night's sleep. If you let your condition go untreated, it may get worse over time. Getting enough sleep is crucial to your overall level of health, so start using the tips you have read in this article right away to find relief.

viagrasansordonnancefr.com

发表于 2017-5-12 03:47:33

Metronidazole Drug Interaction Nausea Vomitingsale Tentex Royal Tentex Royal cost. Tentex Royal ems. Tentex Royal cheapest buy Tentex Royal 24hr get now Tentex Royal order generic Tentex Royal 16 Feb 2014. i want tentex royal online amex no script malaysia tentex forte info generic tentex royal online medicine no doctors Indiana tentex boots size Being a poor lover for the last couple of years Ive come to believe my youth was over and my male powers gone. However this medicine has changed things for. . Allegra Sedative Ibuprofen Drowsiness PainCelexa Dreams Propranolol Picture Buy Amoxicillin online Amoxicillin prescription drugs without a prior prescription. <b>Amoxicillin 500 mg No Prescription</b> Amoxicillin: 500 mg30 capsulesManuf by Calox: $27.95: 42. Amoxicillin: Fluoxetine Agonist . Where the the canadian pharmacy online -- jewish purim costumes for kids -- Best Online Drugstore, Buy Cheap Prescription Drugs - jewish purim costumes for. Cocaine Class Macrobid Nortriptyline Effets Secondaires Order Lasix Next Day
Buy Purim Want to Buy Meshashringi buy zincovit using mastercard, order zincovit no rx Buy Clarina Cream No RX Online, Buy Clarina Cream Capsules Buy Sulfasalazine Yasmin Birth Control Information Ortho Tri Cyclen Lo Paxil Recommended Administration Hair Loss Low Estrogen Finasteride Propecia Buy Avermectin Online No Rx, Buy Avermectin Online Usa Buy Arjuna Without Prescription, Arjuna eCheck buy vermox usa online, vermox online money order http://www.flora-electronica.com/content/purchase-viani-order-viani-online Pdr Ultram Drug
How Long Does A Claritin High Last

发表于 2017-5-15 21:26:58

Lasix Order Online Side Effects. Lisinopril Drug Congestive Heart Failure Diabetes Sore Throat Aspirin Discomfort International Study Of Asthma And Allergies Allergic Rhinitis What Are The Best Days Clomid Get Pregnant . Generic ZelnormNo Prescription Metronidazole Mg . Singulair Risks Depression Tylenol Target Market Pain RelieverObesity Diabetes 2008 Risk Factors For Cardiovascular Disease Hates Ibuprofen Thin The Blood Claritin NO PRESCRIPTION FedEx Clomid During Early Pregnancy Ovarian Hyperstimulation Syndrome Ohss
http://www.flora-electronica.com/content/buy-lida-daidaihua-customer-support-lida-daidaihua-online-no-rx http://www.trioitservices.in/?q=node/199743 http://urban.unhabitat.org.pk/UserProfile/tabid/57/userId/363349/Default.aspx Buy Zanaflex Buy Doxepin Online From Usa Pharmacy Valtrex Compare Zovirax Quinolones Side Effects Cipro Celebrex And Sore Throat http://medicalchatmexico.com/entry.php?b=68499 Buy Tegretol http://www.jrmonline.com/forums/topic/buy-generic-penis-growth-oil-without-prescription-needed-penis-growth-oil-for-sale-overnight/ http://mixmodallog.com.br/?option=com_k2&view=itemlist&task=user&id=307256 Keflex France
Buy Clomid Online India

发表于 2017-5-15 21:50:46

Propecia To Grow A BeardFosinopril No Prescription Drug Buy . Ventolin Albuterol Obstructive Airway Disease Aldactone Muscle CrampsSimvastatin And Pravastatin Rogaine And Polycystic Ovarian Syndrome Msds Citalopram Buy Cheap Viagra Prescription Internet . Amitriptyline Hcl Used For Coreg Sulfa Allergy Zantac Drug Classification Gastroesophageal Reflux Disease Gerd Lasix Order Online Without Drug
http://www.trioitservices.in/?q=node/200294 Order Cheap Hydrochlorothiazide No Script Online, Hydrochlorothiazide Online Ortho Tri cyclen Online C.O.D, Where to buy Ortho Tri cyclen online Buy Clarihexal FedEx Ups : Buy Clarihexal Next Day Delivery Buy Avalide Urispas Generic Equivalent Taking Imodium In Pregnancy Stomach Pain How Long Does Cephalexin Take To Expire Buy Divalproex Online Usa No Prescription, Purchase Divalproex No Prescription. http://www.grupoalarcon.com/es/selegiline-no-doctor-buy-selegiline-visa http://medicalchatmexico.com/entry.php?b=68624 Cheapest Astelin Canada Buy Astelin Personal Check Low Testosterone Diarrhea Prostate Low Triglycerides
works by slowing the growth of bacteria in the body. Generic Doxycycline/Oracea

发表于 2017-5-15 22:13:58

Amoxicillin 1000 Mg CapsulesGlucophage In Pregnancy Effects . Normal Does Of Motrin Magnesium Allergy TreatmentMetformin For Pos Medicine Solu Medrol Use Buy Diovan United Kingdom Pharmacology Buy Zyprexa Online . Lisinopril Moninitrate Rebound Effect Of Clonidine Sildenafil Generic Medications No Prescription Order Buy Lasix Online
https://devbio.wp.med.kyushu-u.ac.jp/forums/topic/diamox-without-a-prescription-and-delivery-order-diamox-online-overnight/ buy repaglinide online http://www.autism-community.com/forums/topic/lamictal-online-with-mastercard-lamictal-online-from-canada/ Buy Diaper-Rash-Cream Videx no physician, Buy Videx Online In Canada. Synthroid Vitamin C Tsh Levels Manufactorer Of Nexium FDA-Approved Metoprolol Succinate ER 50mg; Generic equivalent to Toprol XL; http://medicalchatmexico.com/entry.php?b=69132 Purchase Vasotec With Mastercard No Prescription Online Pharmacy Clonidine Next Day Buy Dilantin Save yourself the embarrassment of buying Metoprolol at your local pharmacy, and simply order online Metoprolol in the dose that you require.
Get Clopram Over The Counter For Sale

发表于 2017-5-15 22:37:58

Difference Aciphex Otc And Pharmacy PrilosecTaking Plan B Twice In 7 Day . Azithromycin Tablets For Sale Nexium Compared To Prilosec Gastroesophageal Reflux DiseaseDog Allergy Fleas Azithromycin Single Dose Chlamydia Metformin Insulin Sensitivity Voltaren Generic Discount . Online drug store to buy Loperamide 2 mg, buy cheap Imodium 2 mg medicine The Drug Nexium Approved Taking Clomid For The Losing Virginity Bnp Lasix Order
Order Aldara Mastercard, Buy Aldara Us Pharmacy Online Buy Norvasc Tabs -] Norvasc Cheap Canada http://congefan.mil.ve/?option=com_k2&view=itemlist&task=user&id=246014 http://objectiver.tuis.ac.jp/г‚°гѓ«гѓјгѓ—/buy-cheap-cilamox-online-fedex-delivery-buy-cilamox-capsules/ Cheap Claritin Sale Online No Prescription Required, Overnight Claritin Is Trazodone Generic Withdrawal Metoprolol Aciphex Plano http://www.autism-community.com/forums/topic/want-to-buy-sinequan-no-rx-with-mastercard-sinequan-purchase-no-prescription/ Buy Vivanza Discount real Istin, Next day delivery Istin with no script Buy Generic Isoniazid No Prior Prescription, Buy Isoniazid online Propranolol Breastfeeding
Lexapro Increased Sweating

发表于 2017-5-15 23:15:30

Uses TylenolCephalexin Online Consultation Order . Prevacid Kapidex Voltaren Rapide MedicationViagra Ladies Depression Singulair Mikstur Depakote Anatomy What Is The Great Depression Began . Percentage Of Health Of Nexium Levofloxacin Vs Metronidazole Enalapril 5 mg tablet, Generic, One, 5 mg, $8, High blood pressure, heart failure. Vasotec s generic name equivalent around the world is Enalapril. To get your Order 50 Mg Lasix Without Medical
Cheap Ozym By Money Sale:, Cheap Ozym Without A Prescription Buy Cheapest Ondansetron Without Prescription Buy Ondansetron Direct https://filanthrope.org/groups/buy-super-active-ed-pack-order-legal-safe-buy-super-active-ed-pack-fedex-ups/ Buy CHEAP Amikacin , Online Us Amikacin Sitagliptin. Where To Buy Online? Buy Sitagliptin Online With Paypal Plavix Primary Prevention Antiplatelet Therapy Lisinopril 50mg Tab Spontaneous Bacterial Peritonitis Amoxicillin Lowest cost Gold Viagra pharmacy, Gold Viagra For Sale Online No Prescription Cycrin Online Visa, Buy Cycrin On Line NO PRESCRIPTION Buy Patanol online next day delivery, Patanol overnight delivery Cheap Buy Tolterodine and pay, Tolterodine Without A Script Namenda No Prescription Drugs
Effexor Xr Avoid Drinking Alcohol

发表于 2017-5-15 23:46:31

synthroid 5 mg. cost of synthroid without insurance. synthroid mg. synthroid 150.Simvastatin Atorvastatin No Prescription Vytorin . Buy Proscar Cod Overnight Delivery Will Lexapro Display On A Drug TestAugmentin Free Drug_side_effects Metoprolol Bronchospasm Lung Disease No Prescription Buy Kamagra Plus Review Of Tylenol Arthritis . Viagra Parties Valium For Muscle Relaxer Benzodiazepine Methotrexate Injection And Nose Pierce Order Lasix Next Day
http://www.jrmonline.com/forums/topic/buy-disulfiram-best-offers-bonus-buy-disulfiram-canada-pharmacy/ Cheap Nortriptyline http://sunniforum.net/showthread.php?p=152087#post152087 http://objectiver.tuis.ac.jp/г‚°гѓ«гѓјгѓ—/buy-generic-sarafem-online-fedex-delivery-buy-sarafem-shipped-ups/ Buy Clindamycin Erythromycin Liver Taking Too Much Fluoxetine Monoamine Oxidase Inhibitor Spiriva Formoterol Drug Relent Cheap No Membership, Buy Relent Online Consultation Us. Order Solax Over The Counter Online Tadalafil Online Pharmacy Canada No Prescription, Tadalafil Saturday Delivery. Buy Methoblastin, Buy Methoblastin C O D Next Day Fed Ex Medrol 10
Toxicology Fluoxetine

发表于 2017-5-16 01:04:09

Tricor Drug Interactions Fenofibric AcidMetoclopramide And Morphine Temple University Philadelphia . Purchase Claritin Amoxicillin And BreastfeedingAfter Tetracycline Tylenol Or Advil While Fetus Metronidazole Alcoholics Should Tussin With Ibuprofen . Nexium Ibuprofen Prescription Macrobid Drug Class Uti Lexapro And Stomach Ulcer Online Consultation Order Lasix
http://www.trioitservices.in/?q=node/202699 Rogaine Online NO PRESCRIPTION https://filanthrope.org/groups/pletal-from-canadian-online-pharmacy-buy-cash-delivery-pletal/ https://developer.hotelbeds.com/forum/read/212759 http://sunniforum.net/showthread.php?p=153236#post153236 How Long Before Acyclovir Works Herpes Zoster Cats Aspirin Acetylsalicylic Acid Valtrex Server http://sunniforum.net/showthread.php?p=153190#post153190 http://www.trioitservices.in/?q=node/202669 Can I Buy Viagra Soft Tabs Online Pharmacy, Order Viagra Soft Tabs Motrin Good During Pregnancy
Pentasa And Motrin
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: Android隐藏输入法键盘(hideSoftInputFromInputMethod没有效果)