floating-action-button

floating action button not showing image [duplicate]

感情迁移 提交于 2021-01-29 14:10:23
问题 This question already has answers here : error: package android.support.design.widget does not exist (4 answers) Closed 2 years ago . I've added xml code to have a floating action button on my screen (no functionality right now but will) but when I go onto the design view of xml, instead of showing the email icon image, it shows just text like 'floating action button': ' Could someone explain what I've done wrong? the code I use: <android.support.design.widget.FloatingActionButton android:id=

Flutter Switching FAB on PageView Pages with animation in Scaffold

二次信任 提交于 2021-01-29 06:06:57
问题 So I've looked several places for how this is supposed to be implemented and I'm sure I'm missing something trivial, but I have a flutter app with a Scaffold who's body is a PageView. I need to have a different FAB for some pages and the way it's currently set up is the floatingActionButton attribute of the scaffold is set to access an array of FloatingActionButtons with the index being the _currentPageIndex (private variable shared by bottomNavBar and _pageController. This changes the FAB

Admob under Floating Action Button

丶灬走出姿态 提交于 2021-01-27 09:18:53
问题 I have problem with position of floating action button. When i put ad from Admob fab is over it. I want to put ad under fab button but any method that I try does not work. Image of current postion fab to ad @layout/activity_layout: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout

Admob under Floating Action Button

随声附和 提交于 2021-01-27 09:12:27
问题 I have problem with position of floating action button. When i put ad from Admob fab is over it. I want to put ad under fab button but any method that I try does not work. Image of current postion fab to ad @layout/activity_layout: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout

Admob under Floating Action Button

假装没事ソ 提交于 2021-01-27 09:12:18
问题 I have problem with position of floating action button. When i put ad from Admob fab is over it. I want to put ad under fab button but any method that I try does not work. Image of current postion fab to ad @layout/activity_layout: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout

How to set the background of a FAB as a gradient

£可爱£侵袭症+ 提交于 2021-01-07 03:38:46
问题 I can't set the background of a FAB with a gradient. The background of the FAB shows a black color My mainActivtiy xml file is given below <?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <com

“You need to use a Theme.AppCompat theme (or descendant) with this activity.” Xamarin

醉酒当歌 提交于 2020-11-29 06:00:55
问题 I'm adding a floating action button to my app, I have a material design theme and set it into the Android Manifest, I've already set the AppCompatActivity inheritance to the MainActivity but if I run my app I have an exception says " You need to use a Theme.AppCompat theme (or descendant) with this activity." This is my main activity: using System; using Android.App; using Android.Widget; using Android.OS; using Android.Support.Design.Widget; using Android.Support.V4.View; using Android

“You need to use a Theme.AppCompat theme (or descendant) with this activity.” Xamarin

陌路散爱 提交于 2020-11-29 05:58:25
问题 I'm adding a floating action button to my app, I have a material design theme and set it into the Android Manifest, I've already set the AppCompatActivity inheritance to the MainActivity but if I run my app I have an exception says " You need to use a Theme.AppCompat theme (or descendant) with this activity." This is my main activity: using System; using Android.App; using Android.Widget; using Android.OS; using Android.Support.Design.Widget; using Android.Support.V4.View; using Android

“You need to use a Theme.AppCompat theme (or descendant) with this activity.” Xamarin

烂漫一生 提交于 2020-11-29 05:55:27
问题 I'm adding a floating action button to my app, I have a material design theme and set it into the Android Manifest, I've already set the AppCompatActivity inheritance to the MainActivity but if I run my app I have an exception says " You need to use a Theme.AppCompat theme (or descendant) with this activity." This is my main activity: using System; using Android.App; using Android.Widget; using Android.OS; using Android.Support.Design.Widget; using Android.Support.V4.View; using Android