Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
feat: Custom Checkbox Ripple effect for 21 and above devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Angad committed May 20, 2017
1 parent 7067e24 commit 02954a6
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions filepicker/src/main/res/layout-v21/dialog_file_list_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:focusable="false"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:listPreferredItemHeight"
android:descendantFocusability="blocksDescendants"
style="?android:attr/background">

<ImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="8dp"
android:scaleType="centerInside"
android:id="@+id/image_type"
android:layout_gravity="center" />

<LinearLayout
android:orientation="vertical"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="8dp"
android:layout_weight="1"
android:focusable="false"
android:gravity="center_vertical"
style="?android:attr/background">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/fname"
android:textStyle="bold"
android:textSize="16sp"
style="?android:attr/textAppearanceLarge"/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/ftype"
android:textSize="12sp"
style="?android:attr/textViewStyle"/>
</LinearLayout>

<com.github.angads25.filepicker.widget.MaterialCheckbox
android:id="@+id/file_mark"
android:layout_width="@dimen/checkbox_dimens"
android:layout_height="@dimen/checkbox_dimens"
android:layout_gravity="center_vertical"
android:layout_marginEnd="@dimen/checkbox_margin"
android:background="?android:attr/selectableItemBackgroundBorderless"/>
</LinearLayout>

0 comments on commit 02954a6

Please sign in to comment.