Android 未显示滚动视图背景
大家好,我正在安卓系统中创建一个登录视图,并做了如下操作:Android 未显示滚动视图背景,android,android-layout,Android,Android Layout,大家好,我正在安卓系统中创建一个登录视图,并做了如下操作: <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillVi
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true"
android:background="@drawable/manila">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:background="#ffffff"
android:backgroundTintMode="screen">
<!-- Header Starts-->
<LinearLayout android:id="@+id/header"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@layout/login_header_gradient"
android:paddingTop="5dip"
android:paddingBottom="5dip"
android:weightSum="1"
android:gravity="center_horizontal">
<!-- Logo Start-->
<!-- Logo Ends -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="SSMIS"
android:id="@+id/textView"
android:layout_weight="0.10"
android:textColor="#ffe8ebff"
android:textSize="25px"
android:textStyle="bold"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:layout_gravity="center_horizontal" />
</LinearLayout>
<!-- Header Ends -->
<!-- Footer Ends -->
<!-- Login Form -->
<!-- Login Form Ends -->
</RelativeLayout>
</ScrollView>
但是,不会显示scrollview的背景。我想你的亲戚可能会阻止它
非常感谢您的回复
谢谢 尝试relativelayout bg,因为android:background=00000000无法在relativelayout上应用android:background。Android studio无法检测到它。Android:background=ffffff这是什么?Android:backgroundTint=@Android:color/transparent。我在relativelayout上加了这个。现在它开始工作了。无论如何,谢谢你。