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
@Override | |
public void onBackPressed() { | |
for (Fragment fragment : fragmentManager.getFragments()) { | |
if (fragment.isVisible() && hasBackStack(fragment)) { | |
if (popFragment(fragment)) | |
return; | |
} | |
} | |
super.onBackPressed(); | |
} |
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 StatusBar extends View { | |
private int statusBarColor = Integer.MIN_VALUE; | |
public StatusBar(Context context) { | |
super(context); | |
} | |
public StatusBar(Context context, @Nullable AttributeSet attrs) { | |
super(context, attrs); |
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 VetAdapter extends RecyclerView.Adapter<VetAdapter.ViewHolder> { | |
private List<VetArray> vetArrays = new ArrayList<>(); | |
public VetAdapter() { | |
} | |
public VetAdapter(List<VetArray> vetArrays) { | |
this.vetArrays = vetArrays; | |
} |
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.support.annotation.LayoutRes; | |
import android.support.annotation.Nullable; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.AttributeSet; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.widget.FrameLayout; | |
import java.util.Objects; |
NewerOlder