android


Android - How to add to ViewFlipper 2 different layouts s.t each has one YouTubePlayerView?


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>`

Related Links

How to https link which are registered with self signed certificate in android?
Preventing SystemUI from automatically restarting
addToBackStack Function is not Working Correctly in Android Studio
Play video file in Smart Watch and Android Wear
cocos2d-x 1.0.1 libpng fix
Read text file on Android with Phonegap
Android application compatibility with old APIs
How can Android Stop Login through facebook when there is no email id
Pass AsyncTask result to onCreateView in Fragment
Cordova update from 3.6.3 to 5.2.1
Android: Collapsing Linearlayout instead of Collapsing Toolbar
Android - Swipe to refresh Fragment
How to access android root directory
ClassNotFoundException when trying to put Android component into a library
Getting the same picture onItemClick in GridView
Trying to build ionic project for android

Categories

HOME
windows
apache-jena
github-for-windows
babeljs
mvc5
frontend
modal-dialog
g++
google-schemas
redis-sentinel
dynatrace
plink
eip
event-sourcing
azure-iot-hub
pyramid
sigma.js
nim
delphi-xe5
swagger-2.0
apache2.4
lilypond
drive
postscript
string-concatenation
highstock
beta
strongname
google-cloud-print
stackexchange
shared
wcag
tizen-tv
cognos-bi
angularjs-material
glib
android-gridview
login-script
hunspell
pdw-file-browser
mnist
hivemq
reactivekit
android-augmented-reality
railstutorial.org
apache-stanbol
xv6
stylecop
vaadin-elements
mschart
fclose
tinymce-3
tinkerpop
azure-cli
otp
rxtx
restore
stripe-connect
simplepie
qiime
data-protection
cortex-m
realsense
concept-insights
inf
directdraw
boomerang
file-move
microsoft-reporting
flock
cgi-bin
sapscript
canalyzer
typemock
dulwich
airbrake
matlab-deployment
qtwebengine
angular-gettext
ghcjs
psr-4
nsmenu
with-statement
ora-00904
cancellation
twitter-bootstrap-rails
http-patch
model-driven-development
beaker-testing
merb
actiondispatch
twisted.web
paginator
josql
jsr286
virtualpathprovider
jquery-address
procedures
codebase
cloudfiles
hbm2java
tabpanel
request-headers
lalr
dsoframer
commercial-application

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App