乔利 2022-10-09 21:05 采纳率: 0%
浏览 137
已结题

安卓软件在屏幕上只显示一半

只有主界面只显示在右边,
系统是安卓5.1系统,分辨率1280*480 ,
请教是修改哪里的代码可以全屏显示?
致谢~
附上 activity_main文件

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="-1"
    android:layout_height="-1"
    android:layout_marginLeft="@7F0600C9"
    >
    <androidx.fragment.app.FragmentContainerView
        android:name="cn.kuwo.base.uilib.kwnavigation.KwNavHostFragment"
        android:id="@7F080233"
        android:layout_width="0.0dip"
        android:layout_height="0.0dip"
        app:defaultNavHost="true"
        app:layout_constraintBottom_toBottomOf="0"
        app:layout_constraintLeft_toLeftOf="0"
        app:layout_constraintRight_toRightOf="0"
        app:layout_constraintTop_toTopOf="0"
        app:navGraph="@7F0D0001"
        >
    </androidx.fragment.app.FragmentContainerView>
    <LinearLayout
        android:gravity="0x00000010"
        android:orientation="0"
        android:id="@7F0801DE"
        android:background="@7F070289"
        android:paddingLeft="@7F0602BA"
        android:paddingRight="@7F0602BA"
        android:visibility="2"
        android:layout_width="-2"
        android:layout_height="@7F06041E"
        android:layout_marginTop="@7F0601FF"
        app:layout_constraintEnd_toEndOf="0"
        app:layout_constraintHorizontal_bias="0.5"
        app:layout_constraintStart_toStartOf="0"
        app:layout_constraintTop_toTopOf="0"
        >
        <ImageView
            android:id="@7F080153"
            android:layout_width="@7F060340"
            android:layout_height="@7F060340"
            android:layout_marginRight="@7F0601F3"
            android:src="@7F0702C1"
            >
        </ImageView>
        <TextView
            android:textColor="@7F05010F"
            android:id="@7F080338"
            android:layout_width="-2"
            android:layout_height="-2"
            android:text="数专辑专辑群益"
            >
        </TextView>
    </LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
  • 写回答

2条回答 默认 最新

  • 灯塔@kuaidao 2022-10-10 10:16
    关注

    看着倒像是分屏显示了。长按屏幕看可以分屏不

    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 10月16日
  • 修改了问题 10月15日
  • 修改了问题 10月12日
  • 修改了问题 10月12日
  • 展开全部