Metin görünümünde basit bir aktiviteye ve ardından iki düzenleme metnine sahibim. Yazmaya başladığımda, yazılım klavyesi düzeni hızlandırır ve işlem çubuğunu gizler ve ben metinleri seçip kopyalayamayacağım.Soft Keyboard Hides Actionbar
Yazmaya başladığımda
, eylem çubuğu böyle, gizli alır - ve daha da önemlisi, normal bir kopyala yapıştır çubuğu rağmen eksik olduğunu unutmayın bir metin vurgulanır:
Eminim eylem çubuğu gizlemez yapmak için ne yapabilirim?
- SO'dan (kaydırma görünümünü kullanma gibi) başka ipuçlarını denedim, ancak hiçbiri işe yaramadı.
- Uygulama, Çekmece Etkinliği ile Android Studio 1.4.1 sihirbazını kullanarak oluşturulmuştur.
Etkinlik bildirimimde adjustPan kullanıyorum. AdjustResize kullanmak istemiyorum.
android:windowSoftInputMode="stateAlwaysHidden|adjustPan"
Benim aktivite buradadır:
<?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>
bu http://stackoverflow.com/questions/8228514/keyboard-layout-hiding-android-action-bar adresini ziyaret edin – MHossein
Teşekkürler, ancak adjustPan kullanmam gerekiyor, adjustResize. – henry000
Tüm görünümleri AppBarLayout dışında bir ScrollView'de sarmayı denediniz mi? –