2017-03-17 8 views
0

소스 코드 : HTTPS (대장 슬래시 슬래시) GitHub의 (점) COM/rileyclauss/PHSMobile 화면에안드로이드 앱 텍스트 잔상

안드로이드 스튜디오 텍스트 유령 건물입니다.

내 응용 프로그램을 만들 때 스크롤하면 [편집보기 3] 텍스트가 완전히 반투명 상태로 유지되어 텍스트를 읽을 수 없습니다. [특정 측면은 시각적 인 횡설수설, 이미지 "타일링", "정적"등입니다.] 이는 코드의 내용에 관계없이 모든 작업에서 발생합니다 (비어있는 상태에서도 마찬가지입니다).

이 예는 문제를 보여줍니다 : normal text 지금 보이는 것과 반대로 torn text

이 문제가 있습니까? 실행되는 유일한 코드는 이와 같이 레이아웃을 설정하는 것이므로 메모리 문제는 아닙니다. 어떤 도움이라도 대단히 감사하겠습니다.

EDIT1 : 여기 내가

package com.phsapp.phsapp; 

import android.os.Bundle; 
import android.support.v7.app.AppCompatActivity; 

public class aboutActivity extends AppCompatActivity { 
@Override 
protected void onCreate(Bundle savedInstanceState) { //Yeah, this is it 
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.activity_about); 

    } 
} 

를 사용하고 자바 코드와 XML은 여기에 있습니다 :

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 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:id="@+id/activity_about" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:paddingBottom="@dimen/activity_vertical_margin" 
android:paddingLeft="@dimen/activity_horizontal_margin" 
android:paddingRight="@dimen/activity_horizontal_margin" 
android:paddingTop="@dimen/activity_vertical_margin" 
tools:context="com.phsapp.phsapp.aboutActivity"> 

<ScrollView 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_alignParentLeft="true" 
    android:layout_alignParentStart="true" 
    android:layout_below="@+id/textView56"> 

    <LinearLayout 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:orientation="vertical" 
     android:weightSum="1"> 

     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 

     <TextView 
      android:text="@string/introtext" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView57" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 

     <TextView 
      android:text="@string/introtext2" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView58" /> 

     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 

     <TextView 
      android:text="@string/introstats" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView59" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/introtext3" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView60" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 

     <TextView 
      android:text="@string/points_of_pride" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView61" 
      android:textStyle="normal|bold" 
      android:textSize="16sp" /> 

     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 

     <TextView 
      android:text="@string/POP1" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView62" /> 

     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 

     <TextView 
      android:text="@string/POP2" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView63" /> 

     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 

     <TextView 
      android:text="@string/POP3" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView64" /> 

     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 

     <TextView 
      android:text="@string/POP4" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView65" /> 

     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 

     <TextView 
      android:text="@string/POP5" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView66" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/POP6" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView67" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/quick_facts" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView68" 
      android:textStyle="normal|bold" 
      android:textSize="16sp" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/enrollmentfact" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView69" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/tasfact" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView70" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/schedule" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView71" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/schoolcolors" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView72" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/mascot" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView73" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/constructed_1958" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView74" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/extensively_renovated_1996" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView75" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/buildingsize" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView76" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/class_structure" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView77" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="5dp"/> 
     <TextView 
      android:text="@string/schoolschedule" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/textView78" /> 
     <Space 
      android:layout_width="1dp" 
      android:layout_height="20dp"/> 

     <Button 
      android:text="Credits" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/button3" 
      android:layout_weight="0.05" /> 
    </LinearLayout> 
</ScrollView> 

<ImageView 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    app:srcCompat="@drawable/abouthead" 
    android:id="@+id/imageView3" 
    android:layout_alignParentLeft="true" 
    android:layout_alignParentStart="true" 
    android:cropToPadding="true" 
    android:adjustViewBounds="true" 
    android:contentDescription="@string/abouttext" /> 

<TextView 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:id="@+id/textView56" 
    android:text="@string/comittedexcelence" 
    android:textSize="18sp" 
    android:textStyle="normal|bold" 
    android:textAlignment="center" 
    android:layout_below="@+id/imageView3" 
    android:layout_alignParentRight="true" 
    android:layout_alignParentEnd="true" 
    android:layout_alignParentLeft="true" 
    android:layout_alignParentStart="true" /> 

모든 문자열 자원이 추출됩니다.

안드로이드 스튜디오 2.3

빌드 번호 AI-162.3764568 년 2 월 24 일에 내장 된 2017 년

JRE : 1.8.0_112 출시-B06 AMD64

JVM : 오픈 JDK 64 비트 서버 VM에 의해 JetBrains sro

이 코드를 얻는 과정에서 Android Studio 자체에서도 문제가 있음을 발견했습니다. 컴퓨터에 문제가 있습니까?

OS : 윈도우 10, 구축 14393

CPU : 인텔 제온 4 코어 2.67GHz

메모리 : 16기가바이트

EDIT 3

: 좀 더 테스트 후, 내가 확인할 수 있었다 이는 GPU를 사용하여 화면을 렌더링하지 않는 장치에서만 발생합니다. 예를 들어 GPU를 사용하지 않고도 Nexus 5X (Android 7.1.2)를 사용하면 GPU가 사용되지 않고 CPU가 모든 것을 렌더링하려고 시도 할 수 있습니다. 삼성 갤럭시 S7 (안드로이드 7.0)에서의 테스트는 당연히 GPU를 사용하며 모든 것이 정상적으로 보입니다. Moto E 2 Gen (Android 7.1.2)에서는 Force GPU 렌더링이 제대로 작동하도록 설정해야합니다. 안드로이드 매니페스트에 (android : hardwareAccelerated = "true") 넣었으나 아무 문제없이 문제가 지속됩니다. 이 문제는 IDE 자체에서도 발생합니다. XML 파일의 "디자인"모드에서 스크롤하면 동일한 문제가 발생합니다. 텍스트는 그려 지지만 지울 수는 없습니다. 이것은 하위 계층 및 중간 계층 컴퓨터에서 발생합니다. 해결 방법이나 해결 방법은 환영합니다.

+0

코드에서 멋진 것을하고 있습니까? ** overriding ** onDraw ** :) – waqaslam

+0

@waqaslam 아니요, 위에서 볼 수있는 것처럼 저는 코드에서 아무것도하지 않습니다. –

+0

회선 간격 –

답변

0

해결 방법 : 제공된 GitHub 링크를 방문하여 이전 버전을 방문하면 "NoActionBar"상위 항목이있는 사용자 정의 테마를 구현 한 것을 볼 수 있습니다. 테마가 액션 바를 갖기 위해 바뀌었을 때 IDE 자체를 포함하여 모든 장치에서 문제가 멈추었습니다.