Comments (9)
from shapeofview.
can you send an image ?
from shapeofview.
here https://drive.google.com/file/d/1S1pZQoPrnGlgCc3YEg7MXVIv1u4yJyVl/view?usp=sharing
and the xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:fancy="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/backgroundImageView"
android:layout_width="0dp"
android:layout_height="0dp"
android:scaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<android.support.v4.widget.NestedScrollView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/nested_scroll"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.github.florent37.shapeofview.shapes.ArcView
android:id="@+id/shape_of_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@color/colorPrimaryLight"
android:elevation="4dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:shape_arc_cropDirection="outside"
app:shape_arc_height="28dp"
app:shape_arc_position="bottom">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<net.grobas.view.MovingImageView
android:layout_width="0dp"
android:layout_height="0dp"
android:src="@drawable/mail_pattern"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:miv_load_on_create="true"
app:miv_max_relative_size="3"
app:miv_min_relative_offset="0.2"
app:miv_repetitions="-1"
app:miv_speed="100"
app:miv_start_delay="1000" />
<TextView
android:id="@+id/profile_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:text="Your Profile"
android:textColor="@color/white"
android:textSize="16sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<de.hdodenhof.circleimageview.CircleImageView xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/icon"
android:layout_width="146dp"
android:layout_height="146dp"
android:layout_marginBottom="@dimen/fab_margin"
android:src="@drawable/contact_placeholder"
app:civ_border_color="#FFFFFF"
app:civ_border_width="2dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/profile_text" />
<ImageView
android:id="@+id/camera_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:src="@drawable/ic_photo_camera_black_24dp"
android:tag="default"
android:tint="@color/white"
app:layout_constraintBottom_toBottomOf="@id/icon"
app:layout_constraintStart_toStartOf="@id/icon" />
</android.support.constraint.ConstraintLayout>
<!-- YOUR CONTENT -->
</com.github.florent37.shapeofview.shapes.ArcView>
<android.support.design.widget.TextInputLayout
android:id="@+id/phone_number_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="@dimen/custom_margin"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/shape_of_view">
<EditText
android:id="@+id/field_phone_number"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Profile Name"
android:inputType="textPersonName" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/status_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/phone_number_container">
<EditText
android:id="@+id/status_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Profile Status"
android:inputType="textPersonName" />
</android.support.design.widget.TextInputLayout>
<com.rilixtech.materialfancybutton.MaterialFancyButton
android:id="@+id/button_start_verification"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginEnd="@dimen/fab_margin"
android:layout_marginStart="@dimen/fab_margin"
android:layout_marginTop="20dp"
android:paddingBottom="10dp"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:paddingTop="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/status_container"
fancy:mfb_borderColor="@color/colorAccent"
fancy:mfb_borderWidth="1dp"
fancy:mfb_defaultColor="@color/colorAccent"
fancy:mfb_focusColor="#7ab800"
fancy:mfb_radius="30dp"
fancy:mfb_text="Save Changes"
fancy:mfb_textColor="#FFFFFF" />
</android.support.constraint.ConstraintLayout>
</android.support.v4.widget.NestedScrollView>
<android.support.v7.widget.RecyclerView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/status_recycler"
android:layout_marginTop="@dimen/fab_margin"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/nested_scroll">
</android.support.v7.widget.RecyclerView>
</android.support.constraint.ConstraintLayout>
</android.support.design.widget.CoordinatorLayout>
from shapeofview.
remove the android:background="@color/colorPrimaryLight"
from shapeofview.
remove the background of the ArcView
from shapeofview.
and add it in the coordinator layout (child of the arcview)
from shapeofview.
OBVIOUSLY!!! What a stupid thing to do, sorry to have wasted your time (I knew it would be my problem not your libraries) many thanks
from shapeofview.
I can override the setBackground to disable it
from shapeofview.
I wouldn't bother this comment will be here for anyone who runs into the issue it's working perfectly now, thanks for your awesome library
from shapeofview.
Related Issues (20)
- cant display custom shape
- Could ShapeOfView become hardware accelerated?
- Hardware acceleration doesn't work with SDK >= 28 HOT 4
- face in clip image Center
- cant load ShapeOfView to picasso
- Can not use with Fragment
- Clipping Image Based on Color of Mask
- Two rectangles showing up on top and bottom of CircleView HOT 2
- Software rendering doesn't support hardware bitmaps HOT 2
- Not working with exoplayer? HOT 1
- Can not build the app
- Doesn't supports background attribute HOT 1
- How can I use CutCornerView for RTL usage?
- Canvas: trying to use a recycled bitmap
- Generating wrong bitmap from ShapeOfView HOT 1
- Switching to MavenCentral HOT 2
- attribute shape_arc_cropDirection (aka in.magic.swap.user:shape_arc_cropDirection) not found. HOT 5
- CircleView is not working on the Devices having Android 7
- problem with api 33
- Android Studio Electric Eel visualizer not rendering this view or its children HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shapeofview.