对于在android开发中我们的问题解决之后就会又有一个接踵而至,那么今天我们就来说“在android中怎么实现跑马灯效果效果?”这个较为基础的问题的解决方法吧!
具体内容如下
先上效果图:此为静态图,实际动态中文字匀速向左滑动。
实现步骤:
第一步:创建好布局页面
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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"
tools:context=".MainActivity">
<TextView
android:id="@+id/textview"
android:layout_width="match_parent"
android:layout_height&