Is there any way to change android:windowSoftInputMode value from java class?

后端 未结 5 1284
悲哀的现实
悲哀的现实 2020-12-02 12:00

I want to act my tabs to have different windowSoftInputMode properties for each tab. How to access this property from java class when all handling of your tab

5条回答
  •  死守一世寂寞
    2020-12-02 12:31

    In Xamarin Android You Can Do programatically Like This

     protected override void OnCreate(Bundle savedInstanceState)
            {
                base.OnCreate(savedInstanceState);
                SetContentView(Resource.Layout.DetailDesign);
                 Window.SetSoftInputMode(SoftInput.AdjustPan);
            }
    

提交回复
热议问题