android-elevation

React Native elevation StyleSheet not working in FlatList

旧巷老猫 提交于 2021-02-20 00:49:03
问题 I'm trying to style my renderItem in FlatList but elevation not working properly. Is there anything I'm wrong or this is a React Native issue? I tested ListView too but it still not working properly This is TodoItem component import React, { Component } from 'react' import { Text, View, StyleSheet } from 'react-native' const styles = StyleSheet.create({ container: { height: 60, backgroundColor: 'white', borderRadius: 10, shadowColor: '#000', shadowOffset: { width: 2, height: 2 },

React Native elevation StyleSheet not working in FlatList

北战南征 提交于 2021-02-20 00:48:16
问题 I'm trying to style my renderItem in FlatList but elevation not working properly. Is there anything I'm wrong or this is a React Native issue? I tested ListView too but it still not working properly This is TodoItem component import React, { Component } from 'react' import { Text, View, StyleSheet } from 'react-native' const styles = StyleSheet.create({ container: { height: 60, backgroundColor: 'white', borderRadius: 10, shadowColor: '#000', shadowOffset: { width: 2, height: 2 },

React Native elevation StyleSheet not working in FlatList

你离开我真会死。 提交于 2021-02-20 00:45:46
问题 I'm trying to style my renderItem in FlatList but elevation not working properly. Is there anything I'm wrong or this is a React Native issue? I tested ListView too but it still not working properly This is TodoItem component import React, { Component } from 'react' import { Text, View, StyleSheet } from 'react-native' const styles = StyleSheet.create({ container: { height: 60, backgroundColor: 'white', borderRadius: 10, shadowColor: '#000', shadowOffset: { width: 2, height: 2 },

React Native elevation StyleSheet not working in FlatList

隐身守侯 提交于 2021-02-20 00:44:03
问题 I'm trying to style my renderItem in FlatList but elevation not working properly. Is there anything I'm wrong or this is a React Native issue? I tested ListView too but it still not working properly This is TodoItem component import React, { Component } from 'react' import { Text, View, StyleSheet } from 'react-native' const styles = StyleSheet.create({ container: { height: 60, backgroundColor: 'white', borderRadius: 10, shadowColor: '#000', shadowOffset: { width: 2, height: 2 },

How to add bottom shadow to tab layout or Toolbar in android

坚强是说给别人听的谎言 提交于 2020-02-10 13:37:46
问题 Hi i need add shadow under my tab layout (like in skype). My activity xml: <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.Toolbar xmlns:local="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?attr/actionBarSize" android:background="@color/splashGreenTop" local:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"

How to add bottom shadow to tab layout or Toolbar in android

廉价感情. 提交于 2020-02-10 13:37:28
问题 Hi i need add shadow under my tab layout (like in skype). My activity xml: <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.Toolbar xmlns:local="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?attr/actionBarSize" android:background="@color/splashGreenTop" local:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"

Multiple layers of shadows in android recyclerview elevation

筅森魡賤 提交于 2020-02-06 04:16:49
问题 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 the shadow cast by the recyclerview elevation. The shadow seems to cover up the edges of the recyclerview or there is an extra layer between the relativelayout and the child recyclerview (Attached an image reference). What is actually causing this effect? I have searched a lot but could not find any

Android appbarlayout elevation appears in status bar

十年热恋 提交于 2020-01-22 17:11:47
问题 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 do I just get the elevation under the AppbarLayout? Here's a screenshot of what I mean: puush link, notice the shadow in the status bar :( Thanks! 回答1: Our concern is about shadow of AppBarLayout visible when status bar is transparent. Having an opaque status bar is not viable at all times. This

Android appbarlayout elevation appears in status bar

假如想象 提交于 2020-01-22 17:11:10
问题 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 do I just get the elevation under the AppbarLayout? Here's a screenshot of what I mean: puush link, notice the shadow in the status bar :( Thanks! 回答1: Our concern is about shadow of AppBarLayout visible when status bar is transparent. Having an opaque status bar is not viable at all times. This

Android elevation - same values different shadow

喜你入骨 提交于 2020-01-01 12:06:30
问题 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 cardview s. Second one is classic item for data list where each item has cardview as root. each cardview in both layouts is defined as follows First Item Type : <LinearLayout android:id="@+id/root" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support