構建應用程序後,我無法看到任何內容(文字瀏覽)。 只有背景圖像顯示,沒有別的。嘗試了一切,但仍然沒有顯示文本。 在scrollview下我做了一個線性佈局,在那之下還有幾個其他的文字瀏覽。但是當我構建應用程序時,它們都沒有顯示出來。 我如何使scrollview下的所有內容都可見? 這裏是我的代碼:在滾動視圖內無法查看任何內容(textviews)
`
<ScrollView 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="@drawable/blck"
android:weightSum="1"
tools:context="com.gnulinuxusersgroup.nitdgp.glug.faqs"
app:layout_collapseParallaxMultiplier="1.0">
<!-- TODO: Update blank fragment layout -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="75dp"
android:id="@+id/F"
tools:text="@string/faq"
tools:textColor="#ffffff"
tools:textSize="100px"
android:textAppearance="@style/TextAppearance.AppCompat"
android:layout_weight="0.02" />
<TextView
android:layout_width="match_parent"
android:layout_height="130px"
tools:text="@string/hwr"
tools:textColor="#fff"
tools:textSize="40px"
tools:textStyle="bold"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="300px"
tools:text="@## `string/hwr2"
tools:textColor="#fff"
tools:textSize="40px"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="130px"
tools:text="@string/foss"
tools:textColor="#fff"
tools:textSize="40px"
tools:textStyle="bold"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="269dp"
tools:text="@string/foss2"
tools:textColor="#fff"
tools:textSize="40px" />
<TextView
android:layout_width="match_parent"
android:layout_height="130px"
tools:text="@string/work1"
tools:textColor="#fff"
tools:textSize="40px"
tools:textStyle="bold"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="300px"
tools:text="@string/work2"
tools:textColor="#fff"
tools:textSize="40px"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="130px"
tools:text="@string/free"
tools:textColor="#fff"
tools:textSize="40px"
tools:textStyle="bold"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="300px"
tools:text="@string/free2"
tools:textColor="#fff"
tools:textSize="40px"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="46dp"
tools:text="@string/git"
tools:textColor="#fff"
tools:textSize="40px"
tools:textStyle="bold"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="300px"
tools:text="@string/git2"
tools:textColor="#fff"
tools:textSize="40px"
/>
<TextView
android:layout_width="394dp"
android:layout_height="50dp"
tools:text="@string/gsoc"
tools:textColor="#fff"
tools:textSize="40px"
tools:textStyle="bold"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="700px"
tools:text="@string/gsoc2"
tools:textColor="#fff"
tools:textSize="40px"
/>
</LinearLayout>
</ScrollView>
`