01/10/2018, 00:57
Về YoutubeFragment và ScrollView
Hiện tại thì xml của mình sắp xếp khi không có ScrollView thì YoutubeFragment vẫn hiện nhưng khi cho Scroll vào thì nó mất đi bạn nào có cách sửa lỗi này không hỗ trợ mình với ^^
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:id="@+id/main"
android:orientation="vertical"
android:layout_height="match_parent" >
<include layout="@layout/toolbar"
android:layout_width="match_parent"
android:id="@+id/toolbar_android_co_ban_manager"
android:layout_height="wrap_content"
/>
<LinearLayout
android:id="@+id/youtube_layout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:visibility="visible" />
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:id="@+id/textView_Par2_HelloAndroid"
android:layout_height="wrap_content" />
</LinearLayout>
</ScrollView>
</LinearLayout>
Bài liên quan