Comments (2)
I use shadow for expand layout int RecycleView
<com.andexert.expandablelayout.library.ExpandableLayout
android:id="@+id/expandableLine"
xmlns:expandable="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
expandable:el_headerLayout="@layout/header_museum"
expandable:el_contentLayout="@layout/content_museum"
/>
from android-materialshadowninepatch.
I dont have problem, this is my layout:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.h6ah4i.android.materialshadowninepatch.MaterialShadowContainerView
android:id="@+id/shadow_item_container"
style="@style/ms9_DefaultShadowStyle"
android:layout_width="wrap_content"
android:layout_height="80dp"
app:ms9_shadowElevation="6dp"
app:ms9_shadowTranslationZ="-2dp">
<LinearLayout
android:id="@+id/simcard_lists_root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="5dp"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:layout_marginTop="5dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="5dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/payment_view"
android:layout_width="100dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:orientation="vertical">
<com.pishguy.androidapplication.simcardappliaction.Widgets.FontFitTextView
android:id="@+id/simcard_cost"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="#b868c5"
android:gravity="center"
android:singleLine="true"
android:textColor="#ffffff"
android:textSize="18sp"/>
<com.pishguy.androidapplication.simcardappliaction.Widgets.FontFitTextView
android:id="@+id/buy_simcard"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="3dp"
android:layout_weight="1"
android:background="#f74036"
android:gravity="center"
android:singleLine="true"
android:text="@string/by_simcard"
android:textColor="#ffffff"
android:textSize="18sp"/>
</LinearLayout>
<View
android:id="@+id/buy_divider"
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="@drawable/gradient_login_window_seperator"/>
<TextView
android:id="@+id/simcard_number"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="0.80"
android:gravity="center"
android:textColor="#000000"
android:textSize="20sp"/>
<TextView
android:id="@+id/simcard_code"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:layout_margin="5dp"
android:background="@drawable/shape_simcard_type"
android:gravity="center"
android:textColor="#992b6b"
android:textSize="30sp"/>
</LinearLayout>
<View
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="#b868c5"/>
</LinearLayout>
</LinearLayout>
</com.h6ah4i.android.materialshadowninepatch.MaterialShadowContainerView>
<FrameLayout
android:id="@+id/sale"
android:layout_width="match_parent"
android:layout_height="75dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:id="@+id/sale_name"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="right|center"
android:paddingRight="10dp"
android:textColor="#000000"/>
<TextView
android:id="@+id/this_number"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="left|center"
android:paddingLeft="10dp"
android:textColor="#000000"
android:textSize="20sp"/>
</LinearLayout>
</FrameLayout>
</FrameLayout>
from android-materialshadowninepatch.
Related Issues (15)
- Question - Supported Shapes HOT 3
- Material Shadows not showing up when created dynamically HOT 5
- top, left, bottom shadow works great but right shadow are not working ? HOT 3
- Resources$NotFoundException : res/drawable-tvdpi-v4/ms9_spot_shadow_z1.xml HOT 6
- set radius on borders HOT 1
- please add View.isInEditMode() HOT 2
- Can't add to project
- Question - difference between shadowElevation and shadowTranslationZ? HOT 2
- Shadow only draws if root child view has a background HOT 2
- Reduce overdraws HOT 1
- BadParcelableException HOT 1
- Broken repo? HOT 2
- Is it possible to have transparent shadows?
- support border radius HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-materialshadowninepatch.