滚动型不滚动? [英] ScrollView don't scroll?

查看:121
本文介绍了滚动型不滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一个的滚动型/ RelativeLayout的/的FrameLayout 的,我把里面programmaticaly一些小部件。

I've a ScrollView / RelativeLayout / FrameLayout and I inside put programmaticaly some widgets.

下面是GUI XML:

Here is the gui xml :

<?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/fond_app">
  <RelativeLayout
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  >
   <TextView
   android:id="@+id/titreAppli"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:text="My Big Application" 
   android:textStyle="bold"
   android:textColor="#9b9b71"
   android:textSize="15dp"
   />
   <FrameLayout
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
   android:id="@+id/out"
   android:layout_below="@id/titreAppli"
   />
  </RelativeLayout>
</ScrollView> 

在的FrameLayout,我把programaticaly另一个RelativeLayout的,和其他部件内。

In the FrameLayout, I put programaticaly another RelativeLayout, and other widgets inside.

对于某些部件(文字,图片,按钮),我不能滚动。与其他(有文字linearlist),我可以滚动。

With some widgets (text, image, buttons), I can't scroll. With other (a linearlist with text), I can scroll.

为什么呢?有没有解决的办法?

Why ? Is there a solution ?

感谢。

推荐答案

你试过没有的android:fillViewport =真正的

这篇关于滚动型不滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆