我正在开发一个应用程序并且我已经设置了
enter code here
<activity
android:name=".ui.base.BaseActivity"
android:windowSoftInputMode="adjustResize|stateHidden|adjustPan|stateAlwaysHidden"
android:theme="@style/MyTheme"/>
在这个 Activity 中,我使用了不同的 fragment ,而且所有的布局都在缩小。如果您需要任何代码,请提供帮助,请告诉我。 谢谢 我正在与您分享我的屏幕图像,请检查。
这个布局是家庭 Activity
enter code here
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:orientation="vertical"
android:isScrollContainer="false">
<include
android:id="@+id/actionbar"
layout="@layout/actionbar"
android:layout_width="match_parent"
android:layout_height="48dp" />
<FrameLayout
android:id="@+id/base_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_above="@+id/tab_layout"
android:layout_alignParentTop="true"
android:layout_weight="1">
</FrameLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="@color/light_grey"/>
<LinearLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:background="@color/white"
android:padding="@dimen/tab_horizontal_margin"
android:orientation="horizontal">
<!--android:background="@color/tab_background_color"-->
<include
android:id="@+id/tab_1"
layout="@layout/activity_base_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"/>
<include
android:id="@+id/tab_2"
layout="@layout/activity_base_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"/>
<include
android:id="@+id/tab_3"
layout="@layout/activity_base_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"/>
<include
android:id="@+id/tab_4"
layout="@layout/activity_base_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"/>
<include
android:id="@+id/tab_5"
layout="@layout/activity_base_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"/>
</LinearLayout>
</LinearLayout>
最佳答案
将此添加到您的 list
<activity
android:name="com.companyname.applicationname"
android:windowSoftInputMode="stateVisible|adjustPan">
如果你使用的是 ScrollView 添加这个
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:isScrollContainer="false">
https://stackoverflow.com/questions/38875256/
相关文章:
mysql - 如何匹配两个表之间varchar字段中的字符串
android - 如果暂停时间太长,为什么应用程序无法从最近启动
php - 模拟 Controller 从 WebTestCase 调用的服务
python - 冲突的 OpenCV 和 Matplotlib
google-maps - 谷歌地图 -> 根据给定距离制作环形路线?
python - 在 Python 中查找对称矩阵的 SVD
maven - 如何配置 pom.xml 文件以使用 Nexus Repository manage
c++ - 如何从 MAC 中的/Library/Framework 文件夹中包含 C++ 中的文件