-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Share Button to directly share files without saving them
Signed-off-by: GauthamAsir <[email protected]>
- Loading branch information
GauthamAsir
committed
Apr 22, 2020
1 parent
e6d3835
commit 66d37f1
Showing
7 changed files
with
114 additions
and
21 deletions.
There are no files selected for viewing
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
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
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
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
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
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,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/_120sdp" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:elevation="@dimen/_10sdp" | ||
android:layout_margin="@dimen/_10sdp" | ||
app:cardCornerRadius="@dimen/_10sdp" | ||
app:cardUseCompatPadding="true"> | ||
|
||
<RelativeLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<RelativeLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:id="@+id/rl1"> | ||
|
||
<ImageView | ||
android:id="@+id/ivThumbnail" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/_90sdp" | ||
android:scaleType="centerCrop"/> | ||
|
||
<ImageButton | ||
android:id="@+id/save" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_below="@+id/ivThumbnail" | ||
android:src="@drawable/ic_file_download_black" | ||
android:tint="@color/white" | ||
android:gravity="center" | ||
android:backgroundTint="@android:color/transparent"/> | ||
|
||
<ImageButton | ||
android:id="@+id/share" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_below="@+id/ivThumbnail" | ||
android:src="@drawable/ic_share" | ||
android:tint="@color/white" | ||
android:gravity="center" | ||
android:visibility="gone" | ||
android:backgroundTint="@android:color/transparent"/> | ||
|
||
</RelativeLayout> | ||
|
||
</RelativeLayout> | ||
|
||
</com.google.android.material.card.MaterialCardView> |
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