मेरे पास एक टेक्स्ट व्यू के साथ एक सरल गतिविधि है जिसके बाद दो संपादन ग्रंथ हैं। जब मैं टाइपिंग शुरू करता हूं, तो सॉफ्ट कीबोर्ड लेआउट को धक्का देता है और एक्शन बार छुपाता है, और मैं पाठ को कॉपी/कॉपी/पेस्ट करने में सक्षम नहीं होगा।सॉफ्ट कीबोर्ड छुपाएं एक्शनबार
मेरे गतिविधि इस तरह दिखता है:
जब मैं टाइप करना आरंभ करें, कार्रवाई बार छिपा हुआ हो जाता है, इस तरह है - और अधिक महत्वपूर्ण बात यह ध्यान दें कि सामान्य कॉपी पेस्ट बार भले ही याद आ रही है एक पाठ पर प्रकाश डाला गया है:
मुझे यकीन है कि कार्रवाई बार नहीं छुपाती बनाने के लिए क्या कर सकते हैं?
- मैंने SO से कुछ अन्य युक्तियों का प्रयास किया है (जैसे स्क्रॉल व्यू का उपयोग करना) लेकिन कोई भी काम नहीं किया।
- ऐप ड्रॉवर गतिविधि के साथ एंड्रॉइड स्टूडियो 1.4.1 विज़ार्ड का उपयोग करके बनाया गया है।
मेरी गतिविधि में प्रकट मैं एड्रेसपैन का उपयोग कर रहा हूं। मैं adjustResize का उपयोग नहीं करना चाहता।
android:windowSoftInputMode="stateAlwaysHidden|adjustPan"
मेरे गतिविधि यहाँ है: उपकरण पट्टी में app:layout_collapseMode="pin"
जोड़कर
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/navigation_drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".MainActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/app_theme.app_bar_overlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/app_theme.popup_overlay" />
</android.support.design.widget.AppBarLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/activity_margin"
android:fillViewport="true"
android:orientation="vertical"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.5"
android:background="@android:color/darker_gray"
android:text="My holiday story here." />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/activity_margin" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/gap_normal"
android:gravity="top"
android:text="My Holiday in Europe" />
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.5"
android:gravity="top"
android:text="My holiday story is blah blah blah blah blah blah blah blah blah..." />
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>
<com.magicparcel.app.mysampleapp.ui.CustomNavigationView
android:id="@+id/navigation_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/navigation_drawer_header"
app:itemIconTint="@color/app_grey_500"
app:menu="@menu/drawer_main" />
</android.support.v4.widget.DrawerLayout>
इस http://stackoverflow.com/questions/8228514/keyboard-layout-hiding-android-action-bar – MHossein
धन्यवाद, लेकिन मुझे एडजस्टपैन का उपयोग करने की आवश्यकता है, समायोजित नहीं करें। – henry000
क्या आपने AppBarLayout को छोड़कर स्क्रॉलव्यू में सभी विचारों को लपेटने का प्रयास किया था? –