Comments (8)
Could you provide more information? Screenshot? Phone? your XML?
from superimageview.
edit: my bad, I got an error after rebuilding the project:
Error:(224) No resource identifier found for attribute 'civ_crop' in package 'com.mypackage'
dependencies in build.gradle:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.amazonaws:aws-android-sdk-ec2:2.2.+'
compile 'com.amazonaws:aws-android-sdk-core:2.2.8'
compile 'com.amazonaws:aws-android-sdk-cognito:2.2.+'
compile 'com.android.support:design:25.1.0'
compile 'com.cesards.android:cropimageview:1.0.2.1'
testCompile 'junit:junit:4.12'
}
this is my code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.cesards.cropimageview.CropImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/portrait"
custom:civ_crop="topLeft" />
</LinearLayout>
my image:
image
it looks like this no matter what I write in the civ_crop:
from superimageview.
Are you using an emulator? A phone? what brind and OS? I need to upload a new version of the library and I want to fix any pending issue :-)
from superimageview.
I'm using the android studio emulator, with android 6.0 (API level 23).
from superimageview.
@cesards I do have the same problem as reported by @stavkidron on a nexus 5X running Android 7.0
Error:(53) No resource identifier found for attribute 'civ_crop' in package 'com.***'
from superimageview.
I have the same issue
from superimageview.
I found the problem, the correct name of the attribute is 'crop'. Not 'civ_crop' as in example!
from superimageview.
I'm having a look to this again. I know what's going on. You are using:
android:layout_width="wrap_content"
android:layout_height="wrap_content"
in the image, so that means that if the image is smaller than the parent/screen, it's not going to crop. You should be using match_parent
for that to happen. I'm going to close this. Let me know if you keep having problems 👍
from superimageview.
Related Issues (20)
- Cropping images under API 18
- Null drawable HOT 8
- Support RTL
- Support Elevation HOT 3
- Crash if no drawable specified HOT 7
- Add Kenburst
- App crashes upon adding CropImageView dependency in build.gradle HOT 1
- Can't use with Picasso HOT 2
- CropImageView.rotateImage don't rescale image to respect ScaleType
- Null Pointer exception HOT 7
- Bug: choosing rounded corners on the sample causes a crash
- update your JCenter, plz
- Layout: Error in crop-attribute
- Question: How to scale-crop from 20% at the top, and how to do it for videos too?
- Lack of Documentation makes basic use case Unusable
- jcenter is shutting down on May 1 HOT 1
- Bug-
- Bug
- XML Attributes
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 superimageview.