是否有可能使用嵌套的滚动型? [英] Is it possible to use nested ScrollView?

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

问题描述

我有一个滚动型在完整视图。而在同样的观点我有一个小的滚动型滚动其中一些文本。我现在面临的问题是,当我尝试滚动滚动型小我几乎不能滚动它。这是一个不断滚动的主要滚动型。结果
我尝试使用以下

I have a ScrollView over the complete view. And in the same view I am having a smaller ScrollView which scrolls some text. The problem I am facing is that when I try scrolling the smaller ScrollView I can hardly scroll it. It is the main ScrollView which keeps on scrolling.
I tried using the following

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.article);
    if(scrollText.isInTouchMode())
    {
        scrollArticle.setEnabled(false);
    }  
    /*  

    Some code  

    */  

}  

但它没有工作。可能是什么问题?

But it didn't work. What might be the problem?

感谢

推荐答案

问题是把滚动型在另一个滚动型。这是行不通的。试着重新考虑你的UI。

Problem is in putting ScrollView inside another ScrollView. It wouldn't work. Try rethink your UI.

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

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