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
if(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) { | |
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE); | |
} |
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 org.cnii.layoutloader.ui; | |
import android.content.Context; | |
import android.support.v4.view.ViewPager; | |
import android.util.AttributeSet; | |
import android.view.View; | |
/** | |
* Special thanks to Daniel López Lacalle for his response | |
* (http://stackoverflow.com/questions/8394681/android-i-am-unable-to-have-viewpager-wrap-content/20784791#20784791) |
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
private void submitNLPInfo(final String nlpInfo) { | |
VolleyMultipartRequest multipartRequest = new VolleyMultipartRequest(Request.Method.POST, "URL HERE", new Response.Listener<NetworkResponse>() { | |
@Override | |
public void onResponse(NetworkResponse response) { | |
} | |
}, new Response.ErrorListener() { | |
@Override |
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.alhikmah.taxidriver.model; | |
import io.realm.RealmObject; | |
import io.realm.annotations.Index; | |
import io.realm.annotations.PrimaryKey; | |
/** | |
* Created by Shihab on 11/27/2016. | |
*/ | |
//With this annotation we are going to hide compiler warnings |
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
https://hemantvc.blogspot.com/2015/01/circular-layout.html |
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 MapViewHolder extends RecyclerView.ViewHolder { | |
private MapViewListItemView mMapViewListItemView; | |
public MapViewHolder(MapViewListItemView mapViewListItemView) { | |
super(mapViewListItemView); | |
mMapViewListItemView = mapViewListItemView; | |
} | |
public void mapViewListItemViewOnCreate(Bundle savedInstanceState) { |
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.passenger.ucabs.adapter; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; |
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
// Checking if Google Play Services Available or not | |
private boolean isGooglePlayServicesAvailable() { | |
GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance(); | |
int result = googleAPI.isGooglePlayServicesAvailable(this); | |
if(result != ConnectionResult.SUCCESS) { | |
if(googleAPI.isUserResolvableError(result)) { | |
googleAPI.getErrorDialog(this, result, | |
0).show(); | |
} | |
return false; |
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> | |
<stroke | |
android:width="1dp" | |
android:color="#AAAAAA" /> | |
<corners |
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.alhikmah.weather360.activity; | |
import android.Manifest; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.pm.PackageManager; | |
import android.graphics.Typeface; | |
import android.location.Location; | |
import android.os.Bundle; |