material-components

Change font of the floating label EditText and TextInputLayout

99封情书 提交于 2019-11-26 16:07:15
问题 Someone tried to change the font of the floating label? I changed the source of EditText but the font of the floating label did not change, I am very grateful to those who help me Code: <android.support.design.widget.TextInputLayout android:id="@+id/tilTextoDescricao" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/tilValorUnidade" android:layout_marginTop="10dp"> <EditText android:id="@+id/etTextoDescricao" android:layout_width="fill

Android material chip component crashing app. Unable to inflate xml

 ̄綄美尐妖づ 提交于 2019-11-26 14:41:53
问题 Tried Chip component from both support library com.google.android.support:design:28.0.0-rc01 and material com.google.android.material:material:1.0.0-rc01 StackTrace android.view.InflateException: Binary XML file line #72: Binary XML file line #72: Error inflating class com.google.android.material.chip.Chip at android.view.LayoutInflater.inflate(LayoutInflater.java:551) at android.view.LayoutInflater.inflate(LayoutInflater.java:429)` Layout <com.google.android.material.chip.Chip android:id="@

Round corner for BottomSheetDialogFragment

試著忘記壹切 提交于 2019-11-26 12:13:07
问题 i have an custom BttomSheetDialogFragment and i want to have round corners in top of Bottom View this is my Custom class that inflating my layout that i want to appear from bottom View mView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { mView = inflater.inflate(R.layout.charge_layout, container, false); initChargeLayoutViews(); return mView; } and also i have this xml resource file as background : <shape xmlns:android=\"http:/