material-components-android-codelabs
material-components-android-codelabs copied to clipboard
Codelabs for Material Components for Android (MDC-Android)
**Describe the bug** The GridLayoutManager is not the best for the job. We can use the StaggeredGridLayoutManager and in the adapter's onCreateViewHolderMethod we can change the StaggeredGridLayoutManager.LayoutParams.isFullSpan to true. **To...
It's suggested to **import** _androidx.appcompat.widget.Toolbar_ and not _android.widget.Toolbar_ on [https://codelabs.developers.google.com/codelabs/mdc-102-java/#2](Codelabs) ```java import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Toolbar; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import...
**Describe the bug** The color of the AppBar is grey but in the tutorial is shown as purple **To Reproduce** Steps to reproduce the behavior: 1. Clone the repo for...
**Describe the bug** The Keyboard in the login screen does overlay the Buttons and text box **To Reproduce** Steps to reproduce the behavior: 1. start app in emulator 2. enter...
In Step 3 - Add a top app bar: > Now add a call to the setUpToolbar method we added to the content of the onCreateView() method with the following....
**Describe the bug** When running and building the app at step 5 (displaying cards without data), I'm getting the following error: `java.lang.ClassNotFoundException: Didn't find class "android.support.design.card.MaterialCardView"` I started working with...
**Describe the bug** Unused syntax: semicolon after return statement in Product Grid Fragment.kt **To Reproduce** Steps to reproduce the behavior: 1. Go to Product Grid Fragment.kt 2. Scroll down to...
Java MDC 101 Step 2. Shr-login_fragment.xml in the tutorial it says. In the Application when you download the code. In app-> res->values->stirngs.xml. There is a "string name="shr_app_name"> Shrine
the error message is not getting cleared after 8+ alphabet characters are typed , it works fine for numbers at the end **To Reproduce** Steps to reproduce the behavior: 1....
On the web page, the sample code in ProductGridFragment.java onCreateView() includes this: recyclerView.setLayoutManager(new GridLayoutManager(getContext(), 2, GridLayoutManager.VERTICAL, false)); But GridLayoutManager.VERTICAL should be RecyclerView.VERTICAL The finished-codelab code is correct.