gpt4 book ai didi

java - 我应该能够在 Eclipse 图形布局中看到 android 滚动条吗?

转载 作者:行者123 更新时间:2023-12-02 07:18:25 25 4
gpt4 key购买 nike

我在程序的 XML 中放入了一个 ScrollView ,图形布局显示了屏幕上聚集的所有字段,而不是在这一侧有一个滚动条并且只显示一些字段(就像我'在视频中见过)。我想知道这是否正常,或者我的代码或 IDE 出了问题。我在 Windows 7 中使用 Eclipse。谢谢:)

我的代码与此代码几乎相同(唯一更改的是文本:和 ID)。

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:weightSum="100" android:layout_height="match_parent">
<ScrollView android:layout_weight="30" android:layout_width="fill_parent"
android:layout_height="fill_parent">

<LinearLayout android:orientation="vertical"
android:layout_width="match_parent" android:layout_height="match_parent">
<TextView android:text="Email address(es):"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etEmails">
</EditText>
<TextView android:text="Hateful Intro:"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etIntro"></EditText>
<TextView android:text="Person's name" android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etName"></EditText>
<TextView android:text="Stupid Things that this Person does"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etThings"></EditText>
<TextView android:text="What you want to do to this person:"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etAction"></EditText>
<TextView android:text="Hateful Outro" android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etOutro"></EditText>
</LinearLayout>
</ScrollView>
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent" android:layout_weight="40"
android:layout_height="fill_parent">
<Button android:text="Send Email" android:id="@+id/bSentEmail"
android:layout_width="match_parent" android:layout_height="match_parent"></Button>
</LinearLayout>
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent" android:layout_weight="30"
android:layout_height="match_parent">
<AnalogClock android:id="@+id/analogClock1"
android:layout_width="match_parent" android:layout_height="fill_parent"></AnalogClock>
</LinearLayout>

最佳答案

这是正常行为(至少在我之前见过的所有 Eclipse IDE 上,以及我的)。

关于java - 我应该能够在 Eclipse 图形布局中看到 android 滚动条吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14613012/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com