Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 75

Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
02/19/13 10:07 PM (12 years ago)

YouTube Android Plugin Theming Suggestion(Tutorial) !

This is the default screen of youtube android plugin. You dont like the play button with just play text on it. https://www.buzztouch.com/files/plugins/sp_youtube_android/screenshots/screen-1.png Then make it look like this. https://www.buzztouch.com/applications020113/JAF007400FCCB74C3646C3300/images/1.png I have just added a new play button and changed the background.. Prequesite:save this image https://www.buzztouch.com/applications020113/JAF007400FCCB74C3646C3300/images/button.png Here's how to: 1)load your project in eclipse..add the button.png to res>drawable.(You can use the button i provided or uses your own button image just rename it to button) 2)go to res>layout>screen_sp_youtube_android.xml 3)open it 4)Find this: <Button android:id="@+id/play" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:text="Play Video" /> 5) Replace with : <Button android:id="@+id/play" android:layout_width="100dp" android:layout_height="100dp" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:background="@drawable/button"/> 6)Checkity clikingon graphicallayouttoseeif the buttonis there..
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/19/13 11:12 PM (12 years ago)
Nice work! Great Plugin. ps. i cleaned up your links. They should all be working now. (they were showing web coding)
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
02/20/13 01:30 AM (12 years ago)
Could this be added as an option, since the background image for the video and the text are already there!? Speaking of which, some kind of suggestion on the size of the background image would be nice. I experimented and concluded that the size of 400 x 400 is relatively good. Would it be possible to load the images from a URL address? The example can be found in AT53 Video Player Plugin, under Video File Name.
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
02/20/13 01:32 AM (12 years ago)
@ian-Thanks so much..:) @dusko:YOu are paying me 10$s and asking 100$worth of support,updates will come accordingly..if you want evrything earlier pm me.
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
02/20/13 06:26 AM (12 years ago)
@SuVinay Do not bother, I won't be using your plugin at all.
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
02/20/13 07:09 AM (12 years ago)
@dusko-Bro! no-probs!
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
02/20/13 07:35 AM (12 years ago)
Good stuff @Suvinay, looks great. This will def help folks customize that screen. It's like an empty easel - you can add anything to it you want if you edit the code. Love the movie posters.
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
02/20/13 07:37 AM (12 years ago)
Thankz @atrain53 :)
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
02/20/13 07:53 AM (12 years ago)
I've been doing a similar thing - take a snapshot of the video starting, use the snapshot as the background and make a full screen transparent button: https://dl.dropbox.com/u/56760890/2013-02-20%2014.50.11.png click anywhere on the screen to open the video, but I guess most people will hit the 'play button'. *edit Doesn't look so good in landscape though!
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
02/20/13 07:56 AM (12 years ago)
what i suggest is,edit the the snapshot by removing the play button and other stuff in bottom and add youtube like transparent button with glass efect..
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.