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
<layout> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<Button | |
android:id="@+id/btn_click" | |
android:layout_width="match_parent" |
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
package com.prolongservices.awaz.ui.fragments; | |
import android.databinding.DataBindingUtil; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.support.v4.app.Fragment; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; |
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
import android.content.Context; | |
import android.os.Build; | |
import android.util.Log; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileInputStream; |
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
/** | |
* Created by pawneshwer on 23-Dec-16. | |
*/ | |
public interface CacheUtils { | |
//cache manager file names | |
String POPULAR = "popular.json"; | |
String LATEST = "latest.json"; | |
String TOP_WATCHED = "top_watched.json"; | |
String SEARCH = "search.json"; |
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
import android.support.annotation.NonNull; | |
import android.support.design.widget.Snackbar; | |
import android.view.View; | |
import com.edablogs.tubelite.R; | |
import com.edablogs.tubelite.adapter.RecyclerAdapter; | |
import com.edablogs.tubelite.api.APIService; | |
import com.edablogs.tubelite.api.YoutubeApi; | |
import com.edablogs.tubelite.model.youtube.Item; | |
import com.edablogs.tubelite.model.youtube.ItemLatest; |
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
package com.edablogs.tubelite.model.youtube; | |
import com.google.gson.annotations.Expose; | |
import com.google.gson.annotations.SerializedName; | |
public class ItemLatest { | |
@SerializedName("kind") | |
@Expose | |
private String kind; |
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
package com.edablogs.tubelite.api; | |
import retrofit2.Retrofit; | |
import retrofit2.converter.gson.GsonConverterFactory; | |
import static com.edablogs.tubelite.utils.Constants.BASE_URL; | |
import static com.edablogs.tubelite.utils.Constants.GIT_BASE_URL; | |
/** | |
* Created by pawneshwer on 11/11/16. |
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
package com.edablogs.tubelite.api; | |
import com.edablogs.tubelite.model.update.UpdateModel; | |
import com.edablogs.tubelite.model.youtube.ChannelModel; | |
import com.edablogs.tubelite.model.youtube.LatestModel; | |
import com.edablogs.tubelite.model.youtube.YoutubeResponse; | |
import retrofit2.Call; | |
import retrofit2.http.GET; | |
import retrofit2.http.Query; |
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
package com.example.quantum.multiselectionrecyclerview; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.ActionMode; | |
import android.view.Menu; | |
import android.view.MenuInflater; | |
import android.view.MenuItem; |
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
package com.example.quantum.multiselectionrecyclerview; | |
import android.content.Context; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.GestureDetector; | |
import android.view.MotionEvent; | |
import android.view.View; | |
/** | |
* Created by Pawneshwer on 8/31/2017. |