This file contains hidden or 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"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!-- redesign with your own drawables to fit your taste--> | |
<item> | |
<shape | |
android:shape="oval"> | |
<!-- replace with your own colors--> | |
<gradient | |
android:type="linear" | |
android:angle="45" |
This file contains hidden or 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"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shape="oval" > | |
<gradient | |
android:angle="270" | |
android:startColor="#3399CC" | |
android:centerColor="#3700B3" | |
android:endColor="#FFA500" /> | |
<size |
This file contains hidden or 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"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape android:shape="rectangle"> | |
<corners | |
android:topLeftRadius="30dp" | |
android:topRightRadius="30dp" | |
android:bottomRightRadius="30dp" | |
android:bottomLeftRadius="30dp"/> | |
<padding android:top="15dp" android:bottom="15dp" android:left="15dp" android:right="15dp"/> |
This file contains hidden or 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 class audioActivity extends AppCompatActivity { | |
private ArrayList<audioContent> audioContents; | |
private RecyclerView data_recycler; | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_audio); | |
data_recycler = view.findViewById(R.id.data_recycler); |
This file contains hidden or 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 class audioRecycleAdapter extends RecyclerView.Adapter<audioRecycleAdapter.musicViewHolder>{ | |
private Context musicActivity; | |
private ArrayList<audioContent> musiclist; | |
private musicActionListerner actionListerner; | |
private View playView; | |
private int playPosition = 0; | |
boolean playing; | |
public audioRecycleAdapter(Context context, ArrayList<audioContent> musiclist, musicActionListerner actionListerner){ |
This file contains hidden or 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 class videoActivity extends AppCompatActivity { | |
ArrayList<videoContent> allVideos; | |
RecyclerView video_recycler; | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_video); |
This file contains hidden or 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 class videoRecycleAdapter extends RecyclerView.Adapter<videoRecycleAdapter.videoViewHolder>{ | |
private Context videoActivity; | |
private ArrayList<videoContent> videoList; | |
private videoActionListener actionListener; | |
public videoRecycleAdapter(Context context,ArrayList<videoContent> videoList,videoActionListener actionListener){ | |
this.videoActivity = context; | |
this.videoList = videoList; | |
this.actionListener = actionListener; |
This file contains hidden or 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 class pictureActivity extends AppCompatActivity { | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_picture); | |
RecyclerView picture_recycler = findViewById(R.id.picture_recycler); | |
picture_recycler.hasFixedSize(); | |
picture_recycler.setHasFixedSize(true); |
This file contains hidden or 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 class imageRecycleAdapter extends RecyclerView.Adapter<imageRecycleAdapter.pictureViewHolder>{ | |
private Context pictureActivity; | |
private ArrayList<pictureContent> pictureList; | |
private pictureActionListrener actionListener; | |
public imageRecycleAdapter(Context context,ArrayList<pictureContent> pictureList,pictureActionListrener actionListener){ | |
this.pictureActivity = context; | |
this.pictureList = pictureList; | |
this.actionListener = actionListener; |
This file contains hidden or 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
ArrayList<pictureFolderContent> pictureFolders = new ArrayList<>(); | |
pictureFolders.addAll(MediaFacer.withPictureContex(mContext).getPictureFolders()); | |
//now load images for the first pictureFolderContent object | |
pictureFolders.get(0) | |
.setPhotos(MediaFacer | |
.withPictureContex(mContext) | |
.getAllPictureContentInFolder(pictureFolders.get(0).getBucket_id()); |