Skip to content

Instantly share code, notes, and snippets.

Avatar

Tyler McCraw TylerMcCraw

View GitHub Profile
@TylerMcCraw
TylerMcCraw / ScrollingViewAboveBottomNavigationBehavior.kt
Created Sep 18, 2020
ScrollingViewAboveBottomNavigationBehavior
View ScrollingViewAboveBottomNavigationBehavior.kt
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.coordinatorlayout.widget.CoordinatorLayout
import com.google.android.material.appbar.AppBarLayout
import com.google.android.material.bottomnavigation.BottomNavigationView
/**
* Extension of standard [AppBarLayout.ScrollingViewBehavior] which
* ensures the scrollview bottom aligns with the top of the view below it,
@TylerMcCraw
TylerMcCraw / MyFragment.kt
Created Jun 1, 2020
Always show AppBarLayout elevation regardless of state
View MyFragment.kt
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
// ... inflate layout ...
appBarLayout.stateListAnimator = AnimatorInflater.loadStateListAnimator(context, R.animator.appbar_always_elevated_state_list_animator)
}
View keybase.md

Keybase proof

I hereby claim:

  • I am tylermccraw on github.
  • I am w3bshark (https://keybase.io/w3bshark) on keybase.
  • I have a public key ASCV7Jjy-80hQ6Ar1Oy1zBwwHqrnHVrB8CZFD4m7iV28XAo

To claim this, I am signing this object:

@TylerMcCraw
TylerMcCraw / MainActivity.java
Last active Jul 31, 2018
TextInputLayout Issues with setError
View MainActivity.java
package com.example.tyler.myapplication;
import android.os.Bundle;
import android.support.design.widget.TextInputEditText;
import android.support.design.widget.TextInputLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.text.TextUtils;
import android.view.View;
@TylerMcCraw
TylerMcCraw / AndroidManifest_After.xml
Last active May 15, 2018
Decompiling APKs (before + after)
View AndroidManifest_After.xml
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.w3bshark.myapplication" platformBuildVersionCode="24" platformBuildVersionName="N">
<application android:allowBackup="true" android:debuggable="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme">
<activity android:label="@string/app_name" android:name="com.w3bshark.myapplication.MainActivity" android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
You can’t perform that action at this time.