【问题标题】:auto-scrolling text view in AndroidAndroid中的自动滚动文本视图
【发布时间】:2021-02-10 11:30:52
【问题描述】:

我想在我的安卓应用中添加一个滚动textView,就像我们在电影结尾看到的那样,它应该会自动滚动到内容的结尾。滚动将自动执行,无需任何用户交互。

我怎样才能实现这样的动画效果? 它需要scrollView 还是某个android 库?

我访问过 Stack 上的文章,例如 thisthis,但没有一个能解决我的问题

【问题讨论】:

    标签: android android-studio textview


    【解决方案1】:

    将它添加到你的根 build.gradle 的存储库末尾:

    repositories {
                
       maven { url 'https://jitpack.io' }
    }
    
    dependencies {
       implementation 'com.github.BosnianDev:ScrollingTextView:1.0'
    }
    

    用法

    <com.github.BosnianDev.ScrollingTextView
          android:id="@+id/ScrollTextView"
          android:layout_width="match_parent"
          android:layout_height="match_parent"/>
    

    更多详情visit here

    【讨论】:

      猜你喜欢
      • 2014-04-20
      • 2015-10-07
      • 1970-01-01
      • 1970-01-01
      • 2011-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-07
      相关资源
      最近更新 更多