window-soft-input-mode


adjustPan pushing my layout and hiding status bar

断了今生、忘了曾经 提交于 2020-01-03 15:38:21
问题 Using adjustPan in manifest pushes my layout to the top and makes my UI look ridiculous. This is my Android manifest: <activity android:name=".AddNote" android:label="@string/title_activity_add_note" android:windowSoftInputMode="stateVisible|adjustPan"> This is my XML file: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical

Android: Resize only parts of view with soft keyboard on screen

試著忘記壹切 提交于 2019-12-17 04:17:24
问题 I have a view with a Edittext field on top of an ImageView. When the keyboard comes up I want the window to resize so that EditText is no longer hidden by the keyboard. In the AndroidManifest file I declared android:windowSoftInputMode="adjustResize" and the screen is resized but the issue is that I want the ImageView to not be re-sized. How can I make the ImageView unaffected? Could I inflate an additional layout with just the ImageView or will the resize still affect it? 回答1: The full

Still my layout not shifting up side.

北城余情 提交于 2019-12-13 09:39:50
问题 I am trying to shift my layout up when soft keyboard will open. I have edittext and button. I can see edittext clearly whether keyboard is open or not but problem is that i am showing drop down for edittext. When drop down open it open on top of edittext because there is no sufficient space between keyboard and dropdown. So i am trying to shift my entire screen up (only edittext will show). So can show dropdown below of Edittext. I try following things... I add following attribute in my

android - AdjustResize for Fragment

一世执手 提交于 2019-12-12 04:46:15
问题 Good day, sirs! I have an Activity with a TabLayout+ViewPager and 2 Fragments in it. In the first Fragment I have a RecyclerView with some items and the SearchView in the Toolbar. I want to show the placeholder when your search query makes RecyclerView disappear (I mean you found no results and RecyclerView.setVisibility(GONE) ). So there's my Fragment.xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http:/

Scrollview inside a viewpager fragment doesnt scroll when keyboard is shown

本小妞迷上赌 提交于 2019-12-07 04:25:03
问题 I have an activity which has a layout content as follows: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:minHeight="?attr/actionBarSize" style="

adjustResize does not work with CoordinatorLayout

走远了吗. 提交于 2019-12-04 09:33:53
问题 I have the following layout in my android app but I have a problem with windowSoftInputMode="adjustResize" in the activity: The LinearLayout named "container" contains multiple EditTexts but when one of them has focus and the keyboard appears, the Activity does not resize and the EditText is hidden behind the keyboard. I think this has something to do with the CoordinatorLayout but I can't figure out what is wrong with it. <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget

adjustResize does not work with CoordinatorLayout

社会主义新天地 提交于 2019-12-03 04:17:01
I have the following layout in my android app but I have a problem with windowSoftInputMode="adjustResize" in the activity: The LinearLayout named "container" contains multiple EditTexts but when one of them has focus and the keyboard appears, the Activity does not resize and the EditText is hidden behind the keyboard. I think this has something to do with the CoordinatorLayout but I can't figure out what is wrong with it. <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas

How to add custom InputMethodService to Activity?

我是研究僧i 提交于 2019-12-02 06:09:45
问题 I decided to create a custom keyboard for my application. I know that this is not the best idea, since it's hurting the user friendliness, that's why I will just make it optional in Preferences. After having it all done in a class public class CustomKeyboard extends InputMethodService implements KeyboardView.OnKeyboardActionListener . I struggle to add it as a softInputMethod . I tried with the InputMethodManager but I get incompatible types when casting it. I found that I can get it w/o the

Keyboard hiding EditTexts in Fragments

末鹿安然 提交于 2019-11-30 12:03:10
问题 edit: I need to use the keyboard, but it hides my EditText , I need it to scroll so the keyboard is not hiding it. I am using a Samsung tablet. My style: parent="android:Theme.Holo.NoActionBar.Fullscreen" The EditText fields are in a scrollable view, like so: The fragment layout: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android

Keyboard hiding EditTexts in Fragments

假装没事ソ 提交于 2019-11-30 03:35:47
edit: I need to use the keyboard, but it hides my EditText , I need it to scroll so the keyboard is not hiding it. I am using a Samsung tablet. My style: parent="android:Theme.Holo.NoActionBar.Fullscreen" The EditText fields are in a scrollable view, like so: The fragment layout: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin"

工具导航Map