簡體   English   中英

如何滾動android小部件中的所有文本視圖?

[英]How can I scroll all textviews in android widget?

我用兩個textview制作了widget,只有一個TextView在滾動...我怎么能

滾動所有textviews

我從另一個問題使用此解決方案,但它只適用於一個TextView ..

鏈接: 擴展AppWidgetProvider的Widget中的TextView Marquee是否可能?

 <TextView android:id="@+id/fact" android:layout_width="200dp"
            android:text="Loading... More text to see if it spans or not and want more"
            android:singleLine="true" 
            android:ellipsize="marquee"
            android:marqueeRepeatLimit ="marquee_forever"
            android:scrollHorizontally="true"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:duplicateParentState="true">
        <requestFocus android:focusable="true" android:focusableInTouchMode="true"
            android:duplicateParentState="true" />
    </TextView>

如何滾動所有文本視圖 謝謝

滾動滾動視圖中的所有內容

的manifest.xml

<application>    
<activity
            android:name=".ui.activity.ApsessionMainActivity"
            android:screenOrientation="portrait"
            android:configChanges="orientation|screenSize"
            android:windowSoftInputMode="adjustResize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
</application>

activity.xml

    <ScrollView 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"
        android:fitsSystemWindows="true"
        android:isScrollContainer="true"
        tools:context=".ui.activity.ApsessionMainActivity">

    // All other tag


    </ScrollView >

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM