From e66df676f083d84d3607db8911cf187af78786e6 Mon Sep 17 00:00:00 2001 From: xiaweizi <1012126908@qq.com> Date: Tue, 26 Dec 2017 13:47:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=20MarqueeTextView?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/xiaweizi/marqueetextview/MainActivity.kt | 4 +++- app/src/main/res/layout/activity_main.xml | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/xiaweizi/marqueetextview/MainActivity.kt b/app/src/main/java/com/xiaweizi/marqueetextview/MainActivity.kt index cc0fdcd..fe5d6d3 100644 --- a/app/src/main/java/com/xiaweizi/marqueetextview/MainActivity.kt +++ b/app/src/main/java/com/xiaweizi/marqueetextview/MainActivity.kt @@ -1,12 +1,14 @@ package com.xiaweizi.marqueetextview -import android.support.v7.app.AppCompatActivity import android.os.Bundle +import android.support.v7.app.AppCompatActivity +import kotlinx.android.synthetic.main.activity_main.* class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) + marquee.startScroll() } } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 5003d6a..71cfcec 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -6,10 +6,14 @@ android:layout_height="match_parent" tools:context="com.xiaweizi.marqueetextview.MainActivity"> -