TVme Vodcast Android Template

TVme, your TV station in an app.

Want an app to broadcast video?  We’ve made it easy with TVme, the app template that makes it easy to launch your own digital TV station!  It’s got a full screen video player, with awesome content rich scrolling video views, search, and Android style slide menu. We’ve even gone ahead and hooked it into Youtube’s API so it’s set up to pull in videos directly from youtube already.  Download the APK file and try it out on your device now, you’ll be impressed. Like all our templates, it’s got super high quality design and UX, so you really don’t have to change much of the UI to have an awesome looking Video app front end.  And it has top notch modern, native Java code, with example feeds already plugged in from YouTube. It’s ready and waiting to be turned into your own TV station on the Play Store.

What’s included in this download

  • Working, Sample .apk Project Download
  • Native Java code that builds in Android Studio View Code
  • Original layered Adobe Photoshop .psd files you can edit
  • 25+ Sliced .png files
  • Extensive Documentation Download
myapptemplates TVme Vodcast Android Template

TVme, your TV station in an app. Want an app to broadcast video?  We’ve made it easy with TVme, the app template that makes it easy to launch your own digital TV station!  It’s got a full screen video player, with awesome content rich scrolling video views, search, and Android style slide menu. We’ve even gone […]

  • License Details
  • Android Sample Project
  • .PNG Artwork
  • .PSD Files
  • Android 7 Nougat Optimized
  • XHDPI Support
Our iOS and Android app templates are a perfect place to start building awesome apps. Get a functional native code base, eye-catching beautiful artwork with excellent UX, icon artwork and documentation. Make your app so beautiful it can't be ignored

Splash Screen

Categories screen - content rich custom Table views

Slide Menu with expandable lists

Full screen video player

Integrated with YouTube API

Custom Search View

Intricate Video detail view

Elements screen, with cool custom UI elements

Code Snippet

package com.tvme;

import java.util.ArrayList;

import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager.OnBackStackChangedListener;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.View;
import android.widget.ExpandableListView;
import android.widget.ExpandableListView.OnChildClickListener;
import android.widget.ExpandableListView.OnGroupClickListener;

import com.tvme.custom.CustomActivity;
import com.tvme.model.Data;
import com.tvme.ui.About;
import com.tvme.ui.Categories;
import com.tvme.ui.Home;
import com.tvme.ui.LeftNavAdapter;
import com.tvme.ui.Settings;
import com.tvme.ui.VideoList;

/**
 * The Class MainActivity is the base activity class of the application. This
 * activity is launched after the Splash and it holds all the Fragments used in
 * the app. It also creates the Navigation Drawer on left side.
 */
public class MainActivity extends CustomActivity
{

	/** The drawer layout. */
	private DrawerLayout drawerLayout;

	/** ExpandableListView for left side drawer. */
	private ExpandableListView drawerLeft;

	/** The drawer toggle. */
	private ActionBarDrawerToggle drawerToggle;

	/** The left navigation list adapter. */
	private LeftNavAdapter adapter;

	/* (non-Javadoc)
	 * @see com.newsfeeder.custom.CustomActivity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		setupContainer();
		setupDrawer();
	}

	/**
	 * Setup the drawer layout. This method also includes the method calls for
	 * setting up the Left side drawer.
	 */
	private void setupDrawer()
	{
		drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
		drawerLayout.setDrawerShadow(R.drawable.drawer_shadow,
				GravityCompat.START);
		drawerToggle = new ActionBarDrawerToggle(this, drawerLayout,
				R.drawable.ic_drawer, R.string.drawer_open,
				R.string.drawer_close) {
			@Override
			public void onDrawerClosed(View view)
			{
				setActionBarTitle();
			}

			@Override
			public void onDrawerOpened(View drawerView)
			{
				setActionBarTitle();
			}
		};
		drawerLayout.setDrawerListener(drawerToggle);
		drawerLayout.closeDrawers();

		setupLeftNavDrawer();
	}

	/**
	 * Setup the left navigation drawer/slider. You can add your logic to load
	 * the contents to be displayed on the left side drawer. You can also setup
	 * the Header and Footer contents of left drawer if you need them.
	 */
	private void setupLeftNavDrawer()
	{
		drawerLeft = (ExpandableListView) findViewById(R.id.left_drawer);

		adapter = new LeftNavAdapter(this, getDummyLeftNavItems());
		drawerLeft.setAdapter(adapter);

		drawerLeft.setOnChildClickListener(new OnChildClickListener() {

			@Override
			public boolean onChildClick(ExpandableListView parent, View v,
					int groupPosition, int childPosition, long id)
			{
				drawerLayout.closeDrawers();
				launchFragment(groupPosition, childPosition);
				return true;
			}
		});

		drawerLeft.setOnGroupClickListener(new OnGroupClickListener() {

			@Override
			public boolean onGroupClick(ExpandableListView parent, View v,
					int groupPosition, long id)
			{
				if (adapter.getChildrenCount(groupPosition) == 0)
				{
					drawerLayout.closeDrawers();
					launchFragment(groupPosition, 0);
					return true;
				}
				return false;
			}
		});

	}

	/**
	 * This method returns a list of dummy items for left navigation slider. You
	 * can write or replace this method with the actual implementation for list
	 * items.
	 * 
	 * @return the dummy items
	 */
	private ArrayList<Data> getDummyLeftNavItems()
	{
		ArrayList<Data> al = new ArrayList<Data>();
		al.add(new Data("Home", R.drawable.icon_home, null));
		al.add(new Data("Categories", 0, new String[] { "Art and Culture",
				"Comedy", "Drama", "Lifestyle", "News", "Movie", "Sport",
				"Trailers" }));
		al.add(new Data("Watchlist", 0, null));
		al.add(new Data("History", 0, null));
		al.add(new Data("Watch Later", 0, null));
		al.add(new Data("Settings", 0, null));
		al.add(new Data("About", 0, null));
		return al;
	}

	/**
	 * This method can be used to attach Fragment on activity view for a
	 * particular left navigation slider item position. You can customize this method as per your need.
	 *
	 * @param pos the group position of left navigation slider item selected.
	 * @param chPos the child position
	 */
	public void launchFragment(int pos, int chPos)
	{
		Fragment f = null;
		String title = null;
		if (pos == 0)
		{
			title = "";
			f = new Home();
			f.setArguments(null);
		}
		else if (pos == 1)
		{
			title = adapter.getChild(pos, chPos);
			f = new Categories();
		}
		else if (pos == 2 || pos == 3 || pos == 4)
		{
			title = adapter.getGroup(pos).getTitle1();
			f = new VideoList();
		}
		else if (pos == 5)
		{
			title = "Settings";
			f = new Settings();
		}
		else if (pos == 6)
		{
			title = "About";
			f = new About();
		}

		if (f != null)
		{
			while (getSupportFragmentManager().getBackStackEntryCount() > 0)
			{
				getSupportFragmentManager().popBackStackImmediate();
			}
			getSupportFragmentManager().beginTransaction()
					.replace(R.id.content_frame, f).addToBackStack(title)
					.commit();
		}
	}

	/**
	 * Setup the container fragment for drawer layout. The current
	 * implementation of this method simply calls launchFragment method for 
	 * position 0. You can customize this method as per your need to display
	 * specific content.
	 */
	private void setupContainer()
	{
		getSupportFragmentManager().addOnBackStackChangedListener(
				new OnBackStackChangedListener() {

					@Override
					public void onBackStackChanged()
					{
						setActionBarTitle();
					}
				});
		launchFragment(0, 0);
	}

	/**
	 * Set the action bar title text.
	 */
	private void setActionBarTitle()
	{
		if (drawerLayout.isDrawerOpen(drawerLeft))
		{
			getActionBar().setTitle("");
			getActionBar().setLogo(R.drawable.icon);
			return;
		}
		if (getSupportFragmentManager().getBackStackEntryCount() == 0)
			return;
		String title = getSupportFragmentManager().getBackStackEntryAt(
				getSupportFragmentManager().getBackStackEntryCount() - 1)
				.getName();
		getActionBar().setTitle(title);
		getActionBar().setLogo(
				title.length() == 0 ? R.drawable.icon : R.drawable.trans1);
	}

	/* (non-Javadoc)
	 * @see android.app.Activity#onPostCreate(android.os.Bundle)
	 */
	@Override
	protected void onPostCreate(Bundle savedInstanceState)
	{
		super.onPostCreate(savedInstanceState);
		// Sync the toggle state after onRestoreInstanceState has occurred.
		drawerToggle.syncState();
	}

	/* (non-Javadoc)
	 * @see android.app.Activity#onConfigurationChanged(android.content.res.Configuration)
	 */
	@Override
	public void onConfigurationChanged(Configuration newConfig)
	{
		super.onConfigurationChanged(newConfig);
		// Pass any configuration change to the drawer toggle
		drawerToggle.onConfigurationChanged(newConfig);
	}

	/*@Override
	public boolean onCreateOptionsMenu(Menu menu)
	{
		getMenuInflater().inflate(R.menu.main, menu);
		return super.onCreateOptionsMenu(menu);
	}*/

	/* (non-Javadoc)
	 * @see com.newsfeeder.custom.CustomActivity#onOptionsItemSelected(android.view.MenuItem)
	 */
	@Override
	public boolean onOptionsItemSelected(MenuItem item)
	{
		if (drawerToggle.onOptionsItemSelected(item))
		{
			return true;
		}

		return super.onOptionsItemSelected(item);
	}

	/* (non-Javadoc)
	 * @see android.support.v4.app.FragmentActivity#onKeyDown(int, android.view.KeyEvent)
	 */
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event)
	{
		if (keyCode == KeyEvent.KEYCODE_BACK)
		{
			if (getSupportFragmentManager().getBackStackEntryCount() > 1)
			{
				getSupportFragmentManager().popBackStackImmediate();
			}
			else
				finish();
			return true;
		}
		return super.onKeyDown(keyCode, event);
	}

	/* (non-Javadoc)
	 * @see com.events.custom.CustomActivity#onClick(android.view.View)
	 */
	@Override
	public void onClick(View v)
	{
		super.onClick(v);

	}

}

Template Benefits

  • Android 7 Nougat ready
  • Beautiful, minimal design with excellent UX flow
  • Ready to build and customise right away in Android Studio
  • Prebuilt functionality saves you hundreds of hours of designing, programming, and testing
  • Adheres to Android Design Guidelines for easier app approval
  • The easiest way to create your own app!