This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// FileDownloader.m | |
// | |
#import <Foundation/Foundation.h> | |
#import "FileDownloader.h" | |
#import "NSMutableArray+QueueAdditions.h" | |
@interface FileDownloader() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<video id='vid' /> | |
<script type="text/javascript" | |
src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"> | |
</script> | |
<script type="text/javascript" | |
src="//www.gstatic.com/cast/sdk/libs/mediaplayer/1.0.0/media_player.js"> | |
</script> | |
<script type="text/javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface OnItemViewClickListener { | |
void onItemClick(View view, int position, AudioFile file); | |
} | |
public class RecyclerAdapter extends RecyclerView.Adapter<RecyclerAdapter.ViewHolder> { | |
private List<Item> list; | |
private OnItemViewClickListener mItemClickListener; | |
public RecyclerAdapter(List<AudioFile> itemsData) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void createFragment(){ | |
FragmentTransaction transaction = mFragmentManager.beginTransaction(); | |
transaction.setCustomAnimations(R.anim.slide_in_up, R.anim.slide_out_down, R.anim.slide_in_up,R.anim.slide_out_down); | |
transaction.addToBackStack(MyFragment.class.getSimpleName()); | |
transaction.replace(R.id.baseLayout, fragment).commit(); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////// | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main_activity); | |
setSupportActionBar(toolbar); | |
ActionBar ab = getSupportActionBar(); | |
if ((ab != null) && (getSupportParentActivityIntent() != null)) { | |
ab.setDisplayHomeAsUpEnabled(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onBackPressed() { | |
FragmentManager fm = getSupportFragmentManager(); | |
for (Fragment frag : fm.getFragments()) { | |
if (frag.isVisible()) { | |
FragmentManager childFm = frag.getChildFragmentManager(); | |
if (childFm.getBackStackEntryCount() > 0) { | |
for (Fragment childfragnested: childFm.getFragments()) { | |
FragmentManager childFmNestManager = childfragnested.getFragmentManager(); | |
if(childfragnested.isVisible()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<declare-styleable name="CircularProgressView"> | |
<attr name="cpv_progress" format="float" /> | |
<attr name="cpv_maxProgress" format="float" /> | |
<attr name="cpv_animDuration" format="integer" /> | |
<attr name="cpv_animSwoopDuration" format="integer" /> | |
<attr name="cpv_animSyncDuration" format="integer" /> | |
<attr name="cpv_color" format="color"/> | |
<attr name="cpv_thickness" format="dimension"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shape="rectangle" > | |
<gradient | |
android:angle="90" | |
android:endColor="#00ffffff" | |
android:startColor="#aa000000" | |
android:centerColor="#00ffffff" /> | |
<corners android:radius="0dp" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Updated version of script by Todd Linkner | |
// This script is for Photoshop CS6. It outputs Android icons of the | |
// xxxhdpi - ldpi from a source PSD at least 512px x 512px | |
/* | |
// BEGIN__HARVEST_EXCEPTION_ZSTRING | |
<javascriptresource> | |
<name>$$$/JavaScripts/OutputAndroidIcons/MenuAlt=Output Android Icons</name> | |
<category>mobile</category> |