android-elevation Questions
2
I have a recyclerview with an elevation of 8dp, transparent background and bounds as outlineProvider. clipToPadding is set to false on the parent relativelayout. I am facing a weird issue w.r.t t...
Onstad asked 3/11, 2015 at 13:38
1
Is there a way, using the NavigationView element of the Google support library, to use elevation on the items inside a NavigationView to achieve something like this:
You can see that the header ...
Grenoble asked 18/7, 2016 at 17:12
3
I noticed when I use elevation property in xml and set it to 4dp, I get a normal shadow. When I use setElevation(4) in java, I get less of a shadow than the xml property does. How can I fix that?
Madonnamadora asked 7/6, 2015 at 11:30
1
Setting hardware accelerated to false in my androidManifest removes elevation from my views..
When hardware accelerated is false, it removes elevation
When hardware accelerated is true, elevatio...
Absent asked 23/4, 2018 at 7:59
1
Solved
I encountered a strange error while setting elevations to items in recycler-view. I have two item types in adapter, first is a kind of dashboard with complex layout with three cardviews. Second one...
Metamathematics asked 16/5, 2017 at 12:31
2
I want to add the elevation animation to my android.support.v7.widget.CardView, just like the material style Buttons do. I've tried to set a StateListAnimator:
android:stateListAnimator="@anim/sel...
Sinusitis asked 12/12, 2016 at 22:43
1
I have a problem with shadows that are created with Elevation.
My screen consists of a ViewPager with 4 different Fragments and a TabLayout for navigating. The first and last fragment both contain...
Juli asked 20/1, 2017 at 12:36
3
Solved
As the title states, I'm trying to put a CardView inside a ScrollView, but the CardView elevation shadow is being but off by it's parent...
This is the Layout XML:
<FrameLayout
xmlns:an...
Columbary asked 20/11, 2015 at 19:16
1
Solved
Recently, I stunned with a problem. On my android phone elements of the list or scroll views with the same elevation have different shadows related to their positioning. For example, views on the t...
Selenite asked 11/7, 2017 at 13:6
1
Solved
I have two views with the same elevation beside each other. My wanted behaviour is that they won't cast a shadow over each other as they have the same elevation, however, what is happening is that ...
Ramer asked 9/6, 2015 at 14:46
1
I'm trying to set the elevation of a AppBarLayout to 0 (and back to the default-value). It crashes some times (not always) and only on API 21 (>= 22 etc. working fine).
I'm using a StateListAnimat...
Cisalpine asked 3/11, 2016 at 14:24
4
Solved
In Appcompat v24.0.0 causes rendering of shadow/elevation to AppbarLayout after Activity is visible. And a lag can easily be seen in shadow drawing to AppbarLayout.
And this lag was not there in p...
Lalo asked 22/6, 2016 at 6:34
7
Solved
Google has shown some nice ways that elevation effect are shown on Lollipop here.
android:elevation="2dp"
for buttons,
android:stateListAnimator="@anim/button_state_list_animator"
How can I m...
Demythologize asked 11/6, 2015 at 10:24
2
I am trying to add touch feedback to a LinearLayout that is similar to a regular Button's feedback in API level 21, much like in this example, and have been so far unsuccessful.
I have defined a s...
Martens asked 28/1, 2015 at 12:32
0
I have a ViewPager that is using a PageTransformer. I'm using the PageTransformer to animate the elevation of the cards inside my ViewPager whenever I scroll. Here is the code:
mViewPager.setPageT...
Exult asked 21/8, 2016 at 19:33
2
Solved
I have this minimal Android Studio project with just a button.
I assign the button a shadow with:
android:elevation="3dp"
android:translationZ="3dp"
android:stateListAnimator="@null"
and I see t...
Fieldfare asked 9/7, 2016 at 7:33
1
Using a background color for a view with some alpha (e.g. #99fe0038) and some elevation on API 21 reveals two circles: one for the view itself and another inside:
Elevation and background color ...
Ratable asked 16/11, 2014 at 19:12
1
I use the code below to draw a view on to a bitmap/canvas.
Bitmap bitmap = Bitmap.createBitmap(
viewGroup.getWidth (), viewGroup.getHeight (), Bitmap.Config.ARGB_8888);
viewGroup.draw(new Canvas(...
Neogaea asked 10/1, 2016 at 21:52
1
Solved
I use a framelayout at the bottom of an activity, in order to show the shadow effects on the fragment, I add android:elevation. But the shadow effects only appear in the bottom side not on top side...
Syllabi asked 2/1, 2015 at 11:38
5
Solved
For some reason the elevation attribute does not seem to be working on the new TabLayout in the material design support library. Any ideas?
XML:
<?xml version="1.0" encoding="utf-8"?>
<Li...
Counterclaim asked 1/7, 2015 at 1:29
3
Solved
I am having the following view created with CardView .Adding dependency compile 'com.android.support:cardview-v7:23.0.+' in gradle dependency
Below is the xml file for the same.
<android.suppor...
Bust asked 9/2, 2016 at 10:16
1
Solved
How do I get rid of the elevation in the status bar? If I set in AppbarLayout the app:elevation to 0dp the elevation doesn't appear anymore in status bar but also not below the AppbarLayout.
How d...
Latterday asked 15/11, 2015 at 23:22
1
Solved
Is it really to implement elevation of ImageView with png that contains transparent background? For example: i want to add elevation shadow to this pic:
Want make it like this:
Maible asked 22/10, 2015 at 15:16
4
Solved
I've been playing with the L preview for a few days, and one thing that doesn't seem to work is the android:elevation attribute for a view. It works just fine when calling View.setElevation(), but ...
Unclasp asked 11/7, 2014 at 5:39
1
I'm a newcomer to developing for Android, and the concept of developing across multiple different platforms with different supported features on each is really making my head hurt.
For example, if...
Buschi asked 6/6, 2015 at 16:32
© 2022 - 2024 — McMap. All rights reserved.