android-support-design

Error inflating class com.google.android.material.appbar.AppBarLayout

一世执手 提交于 2020-01-23 05:22:10
问题 I have bellow xml : <?xml version="1.0" encoding="utf-8"?> <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/drawerLayout" android:layout_width="match_parent" android:layout_height="match_parent"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <com.google.android.material.appbar.AppBarLayout android:id="@+id/appBarLayout" android

Android BottomSheet with FloatButton

烈酒焚心 提交于 2020-01-16 11:16:58
问题 How to make this interaction Bottom sheet and FloatButton like in Google Map? The first screenshot shows two FloatButtons.After clicking on map, the second button change icon and scroll up and hooking on bottomSheet edge.(Screenshot2). First Screenshot Second Screenshot 回答1: I suppose that FAB firstly is anchored to the right|bottom of the MapView and has the same elevation as the BottomSheet view. Once the BottomSheet is peeking to some height and BottomSheet top is equal to the half of the

Android BottomSheet with FloatButton

假如想象 提交于 2020-01-16 11:16:23
问题 How to make this interaction Bottom sheet and FloatButton like in Google Map? The first screenshot shows two FloatButtons.After clicking on map, the second button change icon and scroll up and hooking on bottomSheet edge.(Screenshot2). First Screenshot Second Screenshot 回答1: I suppose that FAB firstly is anchored to the right|bottom of the MapView and has the same elevation as the BottomSheet view. Once the BottomSheet is peeking to some height and BottomSheet top is equal to the half of the

FloatingActionButton always visible

£可爱£侵袭症+ 提交于 2020-01-05 13:00:35
问题 I am getting familiar with the new support.design library and I'm facing this issue with the FloatingActionButton. I'm trying to hide it programmatically, but the button stay always visible. I have the feeling that app:layout_anchor="@id/appbar" must override the visibility of the button. JAVA: @InjectView(R.id.search_fab) FloatingActionButton search_fab; [...] search_fab.setVisibility(View.GONE); XML: <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width=

FloatingActionButton always visible

梦想与她 提交于 2020-01-05 12:59:22
问题 I am getting familiar with the new support.design library and I'm facing this issue with the FloatingActionButton. I'm trying to hide it programmatically, but the button stay always visible. I have the feeling that app:layout_anchor="@id/appbar" must override the visibility of the button. JAVA: @InjectView(R.id.search_fab) FloatingActionButton search_fab; [...] search_fab.setVisibility(View.GONE); XML: <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width=

TextInputLayout Crashing in Android Lollipop and Above

不羁的心 提交于 2020-01-03 18:54:09
问题 I am using TextInputLayout in one of my app layouts. My app is crashing on user's devices with Lollipop(5.1) version and above. Below is the error android.view.InflateException: Binary XML file line #34: Binary XML file line #2: Error inflating class android.support.design.widget.TextInputLayout arrow_drop_down Caused by android.view.InflateException: Binary XML file line #34: Binary XML file line #2: Error inflating class android.support.design.widget.TextInputLayout arrow_drop_down Caused

TextInputLayout Crashing in Android Lollipop and Above

人盡茶涼 提交于 2020-01-03 18:54:07
问题 I am using TextInputLayout in one of my app layouts. My app is crashing on user's devices with Lollipop(5.1) version and above. Below is the error android.view.InflateException: Binary XML file line #34: Binary XML file line #2: Error inflating class android.support.design.widget.TextInputLayout arrow_drop_down Caused by android.view.InflateException: Binary XML file line #34: Binary XML file line #2: Error inflating class android.support.design.widget.TextInputLayout arrow_drop_down Caused

How sync TabLayout with ViewPager when using TabItem

三世轮回 提交于 2020-01-01 09:54:07
问题 I want to use TabLayout with TabItem with following code: <android.support.design.widget.TabLayout android:id="@+id/tabs" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/color_primary" app:tabGravity="fill" app:tabIndicatorColor="@color/white" app:tabMode="fixed" app:tabSelectedTextColor="@color/white" app:tabTextColor="@color/gray_light"> <android.support.design.widget.TabItem android:layout_width="wrap_content" android:layout_height="match

Got Error inflating class android.support.design.widget.TabLayout

前提是你 提交于 2019-12-31 01:29:09
问题 I'm trying to create a menu tab based on Google's "material design" using Eclipse, but I got an error: 01-07 01:02:10.238: E/tag(6696): contact on create called 01-07 01:02:10.301: E/AndroidRuntime(6696): FATAL EXCEPTION: main 01-07 01:02:10.301: E/AndroidRuntime(6696): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rvappsstudios.designflashalerts/com.rvappsstudios.designflashalerts.MainActivity}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com

Got Error inflating class android.support.design.widget.TabLayout

≡放荡痞女 提交于 2019-12-31 01:29:08
问题 I'm trying to create a menu tab based on Google's "material design" using Eclipse, but I got an error: 01-07 01:02:10.238: E/tag(6696): contact on create called 01-07 01:02:10.301: E/AndroidRuntime(6696): FATAL EXCEPTION: main 01-07 01:02:10.301: E/AndroidRuntime(6696): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rvappsstudios.designflashalerts/com.rvappsstudios.designflashalerts.MainActivity}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com