2016-11-12 7 views
0

id = "credit_wallet"인 textview가있는 레이아웃이 있습니다.TextView가 레이아웃에 표시되지 않습니다.

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:background="@color/md_brown_900" 
    android:orientation="vertical" > 

    <include 
     android:id="@+id/lay_include" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:layout_alignParentTop="true" 
       layout="@layout/top_points_bar" /> 
    <TextView 
     android:id="@+id/credit_wallet" 
     android:gravity="center" 
     android:textColor="@color/md_brown_700" 
     android:layout_marginTop="65dp" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:layout_alignParentTop="true" 
     /> 
    <com.justfashion.Logo 
android:id="@+id/logo" 
     android:text="Fashion Wallet" 
     android:gravity="center" 
     android:textSize="20dp" 
     android:textColor="@color/md_brown_700" 
     android:layout_marginTop="60dp" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:layout_alignParentTop="true" 
     /> 

    <ListView 
     android:id="@+id/listearncredit" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:layout_marginTop="70dp" 
     android:layout_below="@+id/logo" 
     android:cacheColorHint="@color/AliceBlue" 
     android:textColor="@color/AntiqueWhite" 

     android:dividerHeight="0dp" 
     android:divider="@color/Aqua"/> 

</RelativeLayout> 

내 JAVA : 그것은 credit_wallet의 값을 표시하지 않습니다

http://pastebin.com/raw/bgf4njkT

. 뭐가 잘못 되었 니? 제발 도와주세요!

btw. 몇 가지 샘플 텍스트를 추가하면 표시되지만 값은 표시되지 않습니다.

+1

스크린 샷을 제공 할 수 있습니까? –

+0

textColor 문제 일 수 있습니다. 그에 따라 textColor를 적절하게 설정해보십시오. – HelloSadness

+0

왜 레이아웃을 포함하고 TextView를 사용하려면 android : layout_alignParentTop = "true"를 사용하고 있습니까? 그것을하는 올바른 방법이 아닌 것 같습니다. 그것은 문제가 발생할 수 있습니다 –

답변

0

사실, 텍스트가 흰색이지만 "배경과 동일합니다. 갈색 인 경우"입니다. 그것을 설정해보십시오! 당신의 배경 갈색, 그리고 TextView textcolor도 갈색처럼

+0

아니, 그것을 보지 마세요, 그것은 다른 색상, 비슷한 이름 : –

0

그것은
그것이 텍스트 색상 문제의 경우 textColor에 흰색 ANS 볼 변경해보십시오 ... loosks. 당신이 텍스트를 점점 여부와 브라운 브라운 => 가지 눈에 보이지 않는 가치 ...

+0

아니, 그것을 보지 마세요, 그것은 다른 색상, 비슷한 이름입니다 :) –

0

은 당신의 자바 코드

creditWallet.setText(PreferenceConnector.readInteger(aiContext, PreferenceConnector.WALLETPOINTS,0)+""); 

이 라인을 확인합니다. 거기에 디버그하기

+0

하지만, 나는 디버그 오류를 참조하십시오. –

관련 문제