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
| class : ActivityProfileDBinding binding= DataBindingUtil.setContentView(ProfileActivity_D.this,R.layout.activity_profile__d); | |
| fragment : | |
| public View onCreateView(LayoutInflater inflater, | |
| @Nullable ViewGroup container, | |
| @Nullable Bundle savedInstanceState) { | |
| MartianDataBinding binding = DataBindingUtil.inflate( | |
| inflater, R.layout.martian_data, container, 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
| android:largeHeap="true" | |
| manifest// | |
| android:name="android.support.multidex.MultiDexApplication" | |
| gradle// | |
| compile 'com.android.support:multidex:1.0.1' |
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
| fragment---- | |
| public interface OnDataPass { | |
| void onDataPass(String data); | |
| } | |
| OnDataPass dataPasser; | |
| @Override | |
| public void onAttach(Context context) { | |
| super.onAttach(context); |
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
| -assumenosideeffects class android.util.Log { | |
| public static *** d(...); | |
| public static *** w(...); | |
| public static *** v(...); | |
| public static *** i(...); | |
| public static *** e(...); | |
| } | |
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 FirebasePattern { | |
| static String compileformat="[^a-zA-Z0-9-_.~%]"; | |
| public static String getValue(String s) { | |
| Pattern pattern = Pattern.compile(compileformat); | |
| Matcher matcher = pattern.matcher(s); | |
| String number = matcher.replaceAll("_"); | |
| return number; | |
| } |
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 LocationHelper { | |
| public static final int LOCATION_PERMISION = 555; | |
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 MandStar { | |
| public static SpannableStringBuilder star(String hint) | |
| { | |
| String colored = " *"; | |
| SpannableStringBuilder builder = new SpannableStringBuilder(); | |
| builder.append(hint); | |
| int start = builder.length(); | |
| builder.append(colored); |
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 SnakBar { | |
| public static void showsnackbar(Context c,String message, int ID){ | |
| try { | |
| Snackbar snackbar = Snackbar | |
| .make(((Activity) c).findViewById(ID), message, Snackbar.LENGTH_SHORT); | |
| View sbView = snackbar.getView(); | |
| sbView.setBackgroundColor(c.getResources().getColor(R.color.snakbar)); |
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 VolleyErr { | |
| static Result _result; | |
| public interface Result | |
| { | |
| void response(String msg); | |
| } | |
| public static void show(VolleyError error,Result c){ |