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. 몇 가지 샘플 텍스트를 추가하면 표시되지만 값은 표시되지 않습니다.
스크린 샷을 제공 할 수 있습니까? –
textColor 문제 일 수 있습니다. 그에 따라 textColor를 적절하게 설정해보십시오. – HelloSadness
왜 레이아웃을 포함하고 TextView를 사용하려면 android : layout_alignParentTop = "true"를 사용하고 있습니까? 그것을하는 올바른 방법이 아닌 것 같습니다. 그것은 문제가 발생할 수 있습니다 –