android - 为什么我的 android 应用程序用户界面的某些部分被裁剪了?
问题描述
我正在为我的应用程序使用以下主题。但我无法找出某些部分裁剪的原因。
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="alertDialogTheme">@style/MyAlertDialogStyle</item>
<item name="alertDialogStyle">@style/MyAlertDialogStyle</item>
<item name="android:windowBackground">@drawable/background_splash</item>
</style>
这是我的应用程序用户界面的屏幕截图。边界边被裁剪。
这是我的 activity_main.XML
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/White"
tools:context="com.ff.foodbio.MainActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/reloadLayout"
android:layout_width="match_parent"
android:background="#000"
android:layout_height="45dp">
<ImageView
android:id="@+id/btnReload"
android:layout_width="20dp"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:src="@drawable/reload"
android:layout_alignParentLeft="true"
android:tint="#fff"
android:visibility="gone"
android:scaleType="fitCenter"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_toRightOf="@+id/btnReload"
android:layout_toLeftOf="@+id/settings"
android:textSize="20sp"
android:textColor="#fff"
android:gravity="center"
android:visibility="gone"
android:text="Food BIO"/>
<ImageView
android:layout_width="100dp"
android:layout_height="match_parent"
android:src="@drawable/foodbio_text"
android:layout_centerInParent="true"
android:gravity="center"/>
<ImageView
android:id="@+id/settings"
android:layout_alignParentRight="true"
android:layout_width="30dp"
android:layout_marginRight="20dp"
android:layout_height="match_parent"
android:tint="#fff"
android:src="@drawable/menu"
android:scaleType="fitCenter"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/tabLayout"
android:layout_width="wrap_content"
android:layout_height="55dp"
android:background="@color/Black"
android:layout_below="@+id/reloadLayout">
<android.support.v7.widget.RecyclerView
android:id="@+id/tabRecyclerView"
android:layout_width="wrap_content"
android:clipToPadding="false"
android:background="@color/Black"
android:layout_height="match_parent">
</android.support.v7.widget.RecyclerView>
</RelativeLayout>
<RelativeLayout
android:id="@+id/separatorBar"
android:layout_width="match_parent"
android:layout_below="@+id/tabLayout"
android:layout_marginTop="-2dp"
android:layout_height="5dp">
</RelativeLayout>
<FrameLayout
android:id="@+id/root_fragment_one"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/separatorBar">
</FrameLayout>
</RelativeLayout>
</FrameLayout>
我找不到问题所在。我的代码有什么问题?
我怎么解决这个问题?
解决方案
推荐阅读
- java - 构建最佳折线
- google-chrome - Lighthouse 在运行审计时显示 NO_FMP 错误
- java - 如何知道 IntentServer 的接收者选择了哪个动作?
- javascript - 使用 javascript 在 html 中显示 jpg
- php - ajax调用时保持保存的形式
- r - 如何仅在单击提交按钮时更新 Shiny 应用程序?
- javascript - 与反应路由器一起使用时,每个页面上的道具始终未定义
- javascript - JavaScript - 如何从 Promise 中获取特定数据
- python - python-msal 用于基于 Azure 活动目录的身份验证、缓存
- javascript - Javascript - SyntaxError: Illegal return statement 如何解决?