This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Custom Checkbox Ripple effect for 21 and above devices
- Loading branch information
Angad
committed
May 20, 2017
1 parent
7067e24
commit 02954a6
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
filepicker/src/main/res/layout-v21/dialog_file_list_item.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |