Video List Xm
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
>
<RelativeLayout
android:id="@+id/layItem"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:padding="10dp"
android:layout_marginBottom="10dp"
android:background="@drawable/bottom_shade"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
>
<RelativeLayout
android:id="@+id/layThumb"
android:layout_width="110dp"
android:layout_height="100dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
>
<ImageView
android:id="@+id/imgThumb"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:scaleType="centerCrop"
app:srcCompat="@drawable/icon_play" />
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:scaleType="centerInside"
android:src="@drawable/icon_play"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="#80000000"
android:padding="5dp"
/>
</RelativeLayout>
<LinearLayout
android:id="@+id/layDes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_toRightOf="@id/layThumb"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_marginLeft="10dp"
>
<TextView
android:id="@+id/tvTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Cafe De Anatolia - Astral Souls Exclusive For Ethno World 2021"
android:textStyle="normal"
android:textColor="@color/black"
android:textSize="17sp"
android:maxLines="2"
/>
<TextView
android:id="@+id/tvDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="➤ Cafe De Anatolia - Astral Souls Exclusive For Ethno World 2021 (Mix by DJ Sergee)
➤ Follow Cafe De Anatolia on Spotify: https://spoti.fi/2CoRyUv
➤ Subscribe for more: https://bit.ly/2wiXH5s"
android:textColor="#070707"
android:textSize="15sp"
android:textStyle="normal"
android:maxLines="3"
android:layout_marginTop="5dp"
android:paddingBottom="5dp"
/>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
VideoList. Java
package com.beevn.bfifttwogmbain1;
import java.util.ArrayList;
import java.util.HashMap;
public class MakeVideoList {
public static ArrayList< ArrayList<HashMap<String,String>> > rootArrayList;
public static ArrayList< HashMap<String, String> > catArrayList;
public static ArrayList< HashMap<String, String> > videoArrayList;
public static HashMap<String, String> hashMap;
//--------------------------------------------------------------------------------------------
//===============================Some automation by Juba
public static void addVideoItem(String video_id, String title, String desciption){
hashMap = new HashMap<>();
hashMap.put("vdo_id", video_id);
hashMap.put("vdo_title", title);
hashMap.put("vdo_desciption", desciption);
videoArrayList.add(hashMap);
}
//========================================================================
//===============================Some automation by Juba
public static void createPlayListForVideo(String category_name, Integer drawable){
rootArrayList.add(videoArrayList);
hashMap = new HashMap<>();
hashMap.put("category_name", category_name);
hashMap.put("img", String.valueOf(drawable));
catArrayList.add(hashMap);
videoArrayList = new ArrayList<>();
}
//========================================================================
//===============================Some automation by Juba
public static void createCategoryForWebsite(String category_name, Integer drawable, String url){
rootArrayList.add(videoArrayList);
hashMap = new HashMap<>();
hashMap.put("category_name", category_name);
hashMap.put("img", String.valueOf(drawable));
hashMap.put("url", url);
catArrayList.add(hashMap);
videoArrayList = new ArrayList<>();
}
//========================================================================
//===============================Some automation by Juba
public static void createCategoryForPDF(String category_name, Integer drawable, String pdfAssetName){
rootArrayList.add(videoArrayList);
hashMap = new HashMap<>();
hashMap.put("category_name", category_name);
hashMap.put("img", String.valueOf(drawable));
hashMap.put("pdfAssetName", pdfAssetName);
catArrayList.add(hashMap);
videoArrayList = new ArrayList<>();
}
//========================================================================
//---------------------------------------------------->>>>>>
//---------------------------------------------------->>>>>>
//---------------------------------------------------->>>>>>
//---------------------------------------------------->>>>>>
//----------------------------------------------------
public static void createMyAlbums(){
rootArrayList = new ArrayList();
catArrayList = new ArrayList<>();
videoArrayList = new ArrayList<>();
/*
//========================Video Item Category
addVideoItem("GgaxcNmm4UU", "Ei Mom Jochonay | Madhubanti Mukherjee", "Teri har cheez jannat ae -hasna vi jannt ae");
addVideoItem("qPna1ZlRxTo", "Allah di kasam tu mainu enna pyara ho gaya", "Teri har cheez jannat ae -hasna vi jannt ae");
addVideoItem("hegsoEcow8Q", "Allah di kasam tu mainu enna pyara ho gaya", "Teri har cheez jannat ae -hasna vi jannt ae");
addVideoItem("kLHCDZeTVJk", "Allah di kasam tu mainu enna pyara ho gaya", "Teri har cheez jannat ae -hasna vi jannt ae");
createPlayListForVideo("Funny Dog", R.drawable.category_1);
//=========================Category for website loader
createCategoryForWebsite("Prothom Alo", R.drawable.category_2, "https://www.prothomalo.com/");
//=========================Category for website loader
createCategoryForWebsite("PDF FromUrl", R.drawable.category_3, "https://drive.google.com/file/d/1vB-oWIwJU6KuIKnIoqWukjZEyNjrd7IJ/view?usp=sharing");
//===========================Category for PDF Viewer
createCategoryForPDF("PDF FromAsset", R.drawable.category_4, "my_sample_pdf.pdf");
//==========================================================================*
*/
//========================Video Item Category
addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");
addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");
createPlayListForVideo("ইসলাম", R.drawable.islam);
//==========================================================================
//========================Video Item Category
addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");createPlayListForVideo("নামাজ ও রোজা", R.drawable.namaz);
//==========================================================================
//========================Video Item Category
addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");createPlayListForVideo("কেয়ামত", R.drawable.finish);
//==========================================================================
//========================Video Item Category
addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");createPlayListForVideo("নবী ও রাসুল", R.drawable.nobi);
//==========================================================================
//========================Video Item Category
addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");createPlayListForVideo("কুরআন", R.drawable.quran);
//==========================================================================
//========================Video Item Category
addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");createPlayListForVideo("যাকাত", R.drawable.zakat);
//==========================================================================
//========================Video Item Category
addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");addVideoItem("2r3DAcn6CJM", "দেলোয়ার হোসেন সাউদী ওয়াজ", "দেলোয়ার হোসেন সাঈদী হুজুরের ওয়াজ ভালো লাগলে সাথেয় থাকুন");createPlayListForVideo("কুরবানী", R.drawable.kurbani);
//==========================================================================
}
//---------------------------------------------------->>>>>>
//---------------------------------------------------->>>>>>
//---------------------------------------------------->>>>>>
//---------------------------------------------------->>>>>>
//---------------------------------------------------->>>>>>
//---------------------------------------------------->>>>>>
}



0 Comments