android studiyasida keyingi faoliyatda klaviaturani qanday o'chirish mumkin

Men klaviaturada muammo bor edi. Men qo'ng'iroq qilish faoliyatini qildim va u erda men biror narsani qidirish paytida tahrir matnini chaqiraman va klaviaturani qidirishni bosib, yana bir faoliyatda faollashadi. qanday qilib to'xtatishim mumkin. juda ko'p harakat qildim, lekin menga yordam kerak

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.search_activity);
    searchText = (EditText) findViewById(R.id.Search_Field);
    searchText.addTextChangedListener(this);
    resultView = (ListView) findViewById(R.id.Display_Result);
    resultView.setOnItemClickListener(this);

@Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {

        Intent intent = new Intent(SearchActivity.this, web_activity.class);
        intent.putExtra("url", links[position]);
        startActivity(intent);
    }

    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {

    }
2
Iltimos, web_activity.java-ni almashing
qo'shib qo'ydi muallif ND1010_, manba
Iltimos, web_activity.java-ni almashing
qo'shib qo'ydi muallif ND1010_, manba
Manifestingizda android: windowSoftInputMode parametrini o'rnatishga harakat qildingizmi?
qo'shib qo'ydi muallif Nicolás Carrasco, manba
Manifestingizda android: windowSoftInputMode parametrini o'rnatishga harakat qildingizmi?
qo'shib qo'ydi muallif Nicolás Carrasco, manba

6 javoblar

Buni faqat o'zingizning faoliyatingizga qo'shishingiz mumkin

        
0
qo'shib qo'ydi

Buni faqat o'zingizning faoliyatingizga qo'shishingiz mumkin

        
0
qo'shib qo'ydi

buni web_activity.class onCreate usulida yozing

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

Umid qilamanki bu sizning ishingiz uchun rahmat.

0
qo'shib qo'ydi

buni web_activity.class onCreate usulida yozing

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

Umid qilamanki bu sizning ishingiz uchun rahmat.

0
qo'shib qo'ydi

try that in onItemClick before startActivity

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
0
qo'shib qo'ydi

try that in onItemClick before startActivity

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
0
qo'shib qo'ydi