This file contains 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 (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { | |
getWindow().getDecorView() | |
.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | |
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | |
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION); | |
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); | |
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION); | |
getWindow().setStatusBarColor(Color.TRANSPARENT); |
This file contains 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 abstract class ArrayAdapterRecycler<T, VH extends RecyclerView.ViewHolder> extends RecyclerView.Adapter<VH> { | |
private List<T> items; | |
protected ArrayAdapterRecycler(List<T> items) { | |
this.items = items; | |
} | |
@Override | |
public int getItemCount() { |
This file contains 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 MaterialDialogUtils { | |
private MaterialDialog.Builder builder; | |
private COUNTDOWN_BUTTON countdownButton; | |
private long timeInMillis; | |
private boolean positive; | |
private int positiveText; | |
private int positiveTextCountdown; |
This file contains 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"?> | |
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
android:paddingBottom="@dimen/activity_vertical_margin" |
This file contains 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.worldline.evasdk.view.utils; | |
import android.support.v4.view.ViewCompat; | |
import android.view.MotionEvent; | |
import android.view.View; | |
/** | |
* Created by a557114 on 07/05/2015. | |
*/ | |
public class ElevationUtils { |
This file contains 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.anuntis.segundamano.views.compat; | |
import android.graphics.drawable.Drawable; | |
import android.os.Build; | |
import android.view.View; | |
public class BackgroundCompat { | |
private static final BackgroundCompatImpl IMPL; |
This file contains 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
#!/bin/sh | |
mkdir app | |
cd app/ | |
git init | |
git remote add origin git@github.com:alorma/metro-bcn.git | |
git checkout --orphan L1 | |
git commit -m "Hospital de Bellvitge" --allow-empty |
This file contains 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.net.Uri; | |
public class ContentUriType extends UriType { | |
@Override | |
public String getPath(Context context, Uri uri) { | |
if (isGooglePhotosUri(uri)) { | |
return uri.getLastPathSegment(); | |
} | |
return getDataColumn(context, uri, null, null); |