Skip to content

Instantly share code, notes, and snippets.

View ameliacv's full-sized avatar

Mujtahidah ameliacv

View GitHub Profile
@ameliacv
ameliacv / VerticalAdapter.java
Last active February 22, 2018 13:02
Vertical Adapter Recycler View
public VerticalAdapter(List<Object> items, Context context) {
mValues = items;
mContext = context;
}
@Override
public void onBindViewHolder(final ViewHolder holder, int position) {
//Don't forget to clear
holder.mListPhoto.clear();
public class MapsNearbyActivity extends AppCompatActivity implements OnMapReadyCallback {
private GoogleMap mMap;
private Member mMember;
private GPSTracker gps;
private double mLong, mLat;
@BindView(R.id.toolbar)
public class GPSTracker extends Service implements LocationListener {
private Context mContext;
private Activity mActivity;
// flag for GPS status
boolean isGPSEnabled = false;