中文键盘隐藏EditText

时间:2019-04-09 08:49:39

标签: android android-edittext keyboard

当我尝试在屏幕底部的EditText中填充某些内容时,中文键盘会隐藏EditText。 我应该如何解决这个问题? 下面是我的xml代码和图片。

public static IHtmlString HrefLangLinks(this PageData currentPage)
{

var hrefLangTags = string.Empty;
var availablePageLanguages = currentPage.ExistingLanguages.Select(culture => culture.Name).ToArray();

var contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>();
var urlResolver = ServiceLocator.Current.GetInstance<UrlResolver>();

foreach (string cultureName in availablePageLanguages)
{  
    var culturePage = contentLoader.Get<PageData>(currentPage.ContentGuid, new LanguageSelector(cultureName));
    var culturePath = urlResolver.GetVirtualPath(culturePage.ContentLink, culturePage.Language.Name);

    hrefLangTags += String.Format("<link hreflang=\"{0}\" rel=\"alternate\" href=\"{1}\" >", culturName, culturePath.GetUrl());

}

return new HtmlString(hrefLangTags);

}

以下是我的照片

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

  • 删除约束布局
  

从此

<android.support.constraint.ConstraintLayout>
    <ScrollView>
        <LinearLayout>
              <EditText>

              </EditText>
        </LinearLayout>
     </ScrollView>
</android.support.constraint.ConstraintLayout>
  

对此

    <ScrollView>
        <LinearLayout>
              <EditText>

              </EditText>
        </LinearLayout>
     </ScrollView>