خرید بک لینک

Vote count: 0

Is it possible to add to ViewFlipper 2 different layouts one YouTubePlayerView ? I tried to do something like the code I added, but the player collapses.Is there any way to initialize the player again after the ViewFlipper shows the next view?

 <ViewFlipper
    android:id="@+id/view_flipper"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <RelativeLayout
        android:id="@+id/video_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:orientation="vertical">

        <com.google.android.youtube.player.YouTubePlayerView
            android:id="@+id/view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentStart="true"
        </com.google.android.youtube.player.YouTubePlayerView>

        <TextView
        </TextView>

    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/view2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:orientation="vertical">

        <com.google.android.youtube.player.YouTubePlayerView
            android:id="@+id/youtube_view_2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentStart="true"
        </com.google.android.youtube.player.YouTubePlayerView>

        <TextView
        </TextView>


    </RelativeLayout>
</ViewFlipper>`

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 12 ارديبهشت 1395 ساعت: 5:04

صفحه بندی