Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml에서 ScalableLayout을 사용할려고 하면 에러가 발생합니다. #20

Closed
namineya opened this issue Dec 11, 2014 · 3 comments

Comments

@namineya
Copy link

<com.xxxx.xxxxxx.ScalableLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/main_textview"
android:id="@+id/main_sl"
android:gravity="center"
android:layout_gravity="center_vertical|center_horizontal"
sl:scale_base_width="600"
sl:scale_base_height="300" >

이렇게 선언을 하면 sl: 이 구문에서 오류가 발생합니다.
아무리 알아보고 해도 원인을 모르겠습니다. ㅠㅠ

@namineya
Copy link
Author

/Users/namineya/Desktop/ xxxxxxxx/Eclipse/workspace/xxxxxx/res/layout/activity_main.xml:8: error: Error parsing XML: unbound prefix 이와 같은 오류가 발생하고 있습니다.

@ssomai
Copy link
Owner

ssomai commented Dec 11, 2014

안녕하세요.
안드로이드 스튜디오 쓰시면 엄청 쉽게 사용가능하실거에요~.

build.gradle에

dependencies {
    compile 'com.ssomai:android.scalablelayout:2.0.0'
}

이것만 추가하시면 되셔요~.

이클립스 쓰시면
xmlns:sl="http://schemas.android.com/apk/res/com.jnm.android.widget.scalablelayout_testandroid"
에서 뒤쪽에 package 네임을 님의 package 네임으로 변경하셔야 되구요~.

@namineya
Copy link
Author

@ssomai 완전 감사합니다!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants