Skip to content

Commit

Permalink
Add fix for pre-L devices
Browse files Browse the repository at this point in the history
  • Loading branch information
shliama committed Mar 17, 2015
1 parent b3c7f5c commit c812d98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions library/src/main/res/layout/list_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,14 @@
android:layout_height="@dimen/height_profile_image"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="10dp"
android:paddingBottom="1dp"
tools:src="@drawable/nicolas_cage" />
<!--Add 1dp bottom padding to remove weird flickering while animating-->

<View
android:id="@+id/view_avatar_overlay"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/image_view_avatar"
android:layout_alignBottom="@+id/image_view_avatar"
android:layout_marginTop="-1dp"
android:layout_marginBottom="-1dp" />
<!--Add -1dp top/bottom margins to remove weird flickering while animating-->
android:layout_height="@dimen/height_profile_image"/>

<TextView
android:id="@+id/text_view_name"
Expand Down
4 changes: 2 additions & 2 deletions library/src/main/res/layout/overlay_list_item.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<io.codetail.widget.RevealFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
Expand Down Expand Up @@ -29,4 +29,4 @@

</LinearLayout>

</RelativeLayout>
</io.codetail.widget.RevealFrameLayout>

0 comments on commit c812d98

Please sign in to comment.