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

JQueryMobile - styles not applied in Webview (Android)
Update Application Feature in Android
Actionbarsherlock background image
Can I integrate samsung “All Share” with my android application on samsung phones
How to update datas with ContentProvider?
Can error in opening a camera be fixed in android?
How to tell if the user has finally quit all your activities in android application
How to synchronize client IDs from different devices (Android, iPhone, etc.) and backend server IDs
What's the best way to handle similar applications with almost identical core functions?
How to create a bigger bitmap from an existing bitmap
application crashes when I use a broadcast reciever
How to find the amount of data that is transferred when I make a web service call from my android app? [closed]
cocos2d-android: how to play/pause a game state
how to add background music each and every image in scroll view in android
ListView.getSelectedItemPosition() return 0 unexpectedly
How to verify server certificate on Android4?

Categories

HOME
nunit
apache-spark-mllib
rendering
permissions
cakephp-3.4
emscripten
gembox-spreadsheet
tvos
gluon-mobile
pattern-matching
owin
fhir
angular-dart
jsonpath
radgridview
renjin
zerobrane
enterprise-architect
bitnami
xmonad
sar
visual-glitch
parcelable
strongname
bulletphysics
licensing
inversion-of-control
handler
xbox
spring-security4
indy10
getlasterror
fiware-cygnus
raft
apic
p4merge
signals-slots
tasm
microsoft-metro
ssrs-2014
mesosphere
hammer.js
swingworker
rsa-archer-grc
polyline
reporting-services-2012
centrifuge
mongodb-php
vorpal.js
jtwig
kango-framework
phpwebsocket
fuzzywuzzy
phpgrid
atan2
state-restoration
include-guards
rpart
uncompress
rdflib
ejb-2.x
entry-point
rmysql
malformedurlexception
extjs2
windows-embedded-standard
artemis
light
modular
merb
wimax
device-width
android-loadermanager
wcf-configuration
adobe-media-server
jsr286
cgimage
role
fsevents
presentation-layer
objective-j
load-time
cruisecontrol.rb
silent
vs-android
openfaces
opml
scrollbars
google-wave
flvplayback
change-management
mathematical-typesetting

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