-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated CircularImageView to have gap between image and border (hdode…
- Loading branch information
Nastacia
committed
Dec 12, 2017
1 parent
73a3b16
commit 86d5943
Showing
3 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
app/src/main/res/drawable/circular_image_view_background_circle.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,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="oval"> | ||
|
||
<stroke | ||
android:width="2dp" | ||
android:color="@color/colorPrimary" /> | ||
|
||
</shape> |
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 |
---|---|---|
@@ -1,15 +1,12 @@ | ||
<?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="wrap_content" | ||
android:layout_height="wrap_content"> | ||
style="@style/CircularImageViewContainer" | ||
android:layout_width="@dimen/width_circular_image_view_out_circle" | ||
android:layout_height="@dimen/height_circular_image_view_out_circle"> | ||
|
||
<de.hdodenhof.circleimageview.CircleImageView | ||
android:id="@+id/circularImageView" | ||
style="@style/FloatingActionButton.Add" | ||
android:layout_width="@dimen/width_circular_image_view_out_circle" | ||
android:layout_height="@dimen/height_circular_image_view_out_circle" | ||
android:src="@drawable/ic_splash" | ||
app:civ_border_color="@color/colorPrimary" | ||
app:civ_border_width="@dimen/margin_circular_image_view_inner_circle" /> | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:src="@drawable/ic_friend" /> | ||
</FrameLayout> |
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