簡體   English   中英

聚焦視圖且可訪問性為ON時,一些文本消失

[英]Some text disappears when view is focussed and accessibility is ON

我在自定義標題欄中有一個textview。在標題欄中,我正在顯示一個負責顯示頁面標題的textview。

下面是我正在使用的代碼

活動:

getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,
                    R.layout.custom_title_layout);

布局文件:

<RelativeLayout 
 xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="200dp"
    android:background="@color/red"
    >

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <TextView
            android:id="@+id/title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:ellipsize="end"
            android:maxLines="2"
            android:layout_marginTop="5dp"
            android:layout_marginRight="5dp"
            android:layout_marginLeft="5dp"
            android:layout_marginBottom="5dp"
            android:paddingBottom="5dp"
            android:text="Test Content Transfer"
            android:textColor="#FFFFFF"
            android:textSize="25sp" />
</RelativeLayout>
 - - - - - - -
 - - - - - - - 

</RelativeLayout>

將字體大小更改為巨大並打開應用程序,請注意,應用程序將“標題”視圖顯示為“ Test Content Tra ...” (觀察到...在此處)

當用戶啟用輔助功能(“對白”)並選擇“標題”時,將在視圖周圍顯示邊框,這是預期的,在此移動中,焦點移到同一屏幕的另一個視圖(此處“標題”失去了焦點,而其他視圖現在處於活動狀態) ,“標題”視圖文本顯示為“測試內容”,此處缺少“傳輸”字樣。

僅在分辨率較低的某些設備上會發生這種情況。

有什么想法嗎?

這僅在最新版本的三星設備中發生(我在android O中已經遇到過)。

開發人員方面無需執行任何其他操作。 這是三星的OEM問題。

暫無
暫無

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

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