這篇文章主要為大家展示了Android自定義textview如何實(shí)現(xiàn)豎直滾動(dòng)跑馬燈效果,內(nèi)容簡(jiǎn)而易懂,希望大家可以學(xué)習(xí)一下,學(xué)習(xí)完之后肯定會(huì)有收獲的,下面讓小編帶大家一起來(lái)看看吧。
創(chuàng)新互聯(lián)建站主營(yíng)來(lái)賓網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,成都App定制開發(fā),來(lái)賓h5微信平臺(tái)小程序開發(fā)搭建,來(lái)賓網(wǎng)站營(yíng)銷推廣歡迎來(lái)賓等地區(qū)企業(yè)咨詢xml布局
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="myandroidstituds.test3.MainActivity"> <LinearLayout android:layout_centerInParent="true" android:layout_width="180dp" android:layout_height="50dp"> <TextView android:padding="10dp" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#55000000" /> </LinearLayout> <myandroidstituds.test3.MarqueeLayout android:id="@+id/mar" android:layout_centerInParent="true" android:layout_width="180dp" android:layout_height="50dp"> <TextView android:id="@+id/tv1" android:textSize="20sp" android:gravity="center" android:background="@android:color/transparent" android:layout_width="match_parent" android:layout_height="match_parent" android:textColor="#000000" android:visibility="gone" android:text="兩個(gè)黃鸝鳴翠柳" /> <TextView android:id="@+id/tv2" android:textSize="20sp" android:background="@android:color/transparent" android:gravity="center" android:layout_width="match_parent" android:layout_height="match_parent" android:textColor="#000000" android:visibility="gone" android:text="一行白鷺上青天" /> </myandroidstituds.test3.MarqueeLayout> </RelativeLayout>
分享題目:Android自定義textview如何實(shí)現(xiàn)豎直滾動(dòng)跑馬燈效果-創(chuàng)新互聯(lián)
本文鏈接:http://bm7419.com/article8/hdeop.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制開發(fā)、網(wǎng)站內(nèi)鏈、品牌網(wǎng)站設(shè)計(jì)、靜態(tài)網(wǎng)站、網(wǎng)站設(shè)計(jì)公司、網(wǎng)站收錄
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容