Skip to content

Instantly share code, notes, and snippets.

View hamzaahmedkhan's full-sized avatar
💭
Happy Coding

Hamza Khan hamzaahmedkhan

💭
Happy Coding
View GitHub Profile
@hamzaahmedkhan
hamzaahmedkhan / gist:d7118b714ed1cf21c767786b5b133ddc
Last active January 13, 2020 15:00
Android 10 bottom navigation bar overlapping
implementation "androidx.core:core:1.1.0"
 getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
ViewCompat.setOnApplyWindowInsetsListener(getWindow().getDecorView(), new OnApplyWindowInsetsListener() {
@Override
public WindowInsetsCompat onApplyWindowInsets(View v, WindowInsetsCompat insets) {
Options:
DataSnapshot { key = options, value = {1={next_question_id=2, option_type=10, question_id=1, option=Yes}, 2={next_question_id=3, option_type=20, question_id=1, option=No}, 3={option_type=20, question_id=2}} }
Sessions:
DataSnapshot { key = sessions, value = {dgy456tgsdfgdgf={created_at=1578897787, question_answers={0={option_id=1, question_id=1}, 1={answer=Smith, option_id=3, question_id=2}}, status=20}, hkdsfidfdsfiu={created_at=1578672151, question_answers={0={option_id=1, question_id=1}, 1={answer=Alex, option_id=3, question_id=2}}, status=10}} }
Questions:
DataSnapshot { key = questions, value = {1={image=, question=Are you feeling well?, options={1=1, 2=2}, position=1, tilte=Health Info}, 2={image=https://pixabay.com/photos/stormtrooper-lego-stretcher-litter-2296199/, question=What is your name?, options={3=3}, position=2, title=Person Info}} }
Users:
@hamzaahmedkhan
hamzaahmedkhan / colors.xml
Created January 20, 2020 10:34
Android Color files
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#280E79</color>
<color name="colorPrimaryDark">#280E79</color>
<color name="colorAccent">#FDA829</color>
<color name="colorAccentDark">#F84301</color>
<color name="text_hint">#8C8C8B</color>
<color name="star_grey">#A3A3A3</color>
<color name="line">#E5E5E5</color>