0
프로필보기를 만들고 싶습니다 (아래 참조). 뷰 호출기에 내용을 추가하는 방법. 내용을 볼 수 없습니다.
현재 프로필 사진과 두 개의 탭 (일기 및 친구)이있는보기가 있습니다.
두 개의 탭이있는 나의 활동 레이아웃입니다.
이 내 일기 조각
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/base_background"
android:id="@+id/app_bar">
<include layout="@layout/dog_profile" />
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/dog_header"
android:background="@color/base_background"
app:tabGravity="fill"
app:tabMode="fixed" />
</android.support.design.widget.AppBarLayout>
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primary"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</RelativeLayout>
그러나 나는 일기 조각 내에서 아무것도 볼 수 없습니다. 아마 왼쪽 상단에 있습니다.
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_below="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical"
android:background="@color/accent"
android:layout_alignParentBottom="true"/>
<TextView
android:id="@+id/tv_no_memories"
style="@style/NoItemsStyle"
android:text="@string/no_memories" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
style="@style/FabStyle"/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
나는 내가 조각 내부의 내용을 볼 수 있음을 변경해야하는지 모른다. 내 활동에
은 내가 활동 XML의 수직 방향으로 선형 레이아웃에 상대적 레이아웃을 변경하여 해결 조언
자바 코드를 가져 오는 중 오류가 발생하면 ... – androidnoobdev
자바 코드를 추가했습니다. 나는 어떤 오류도 일어나지 않고있다. 나는 그저 내용을 보았다. 나는 일기 단편을 잘못 설정하고 있다고 생각합니다. – user3637775