1
콘텐츠 용 카드가있는 Google Now 인터페이스를 사용하여 앱을 만들고 있습니다.카드를 통한 이미지보기 - 해결 방법은 무엇입니까?
먼저이 이미지를 살펴 보시기 바랍니다: 나는 카드를 작성하고 내용을 추가하는 데 성공하지만 내 이미지 뷰는 파란색 화살표처럼 (그림자 선) 카드 테두리 위에 점점 http://imgur.com/oLSSvIn
을 나타냅니다.
은 내가 어떻게 이미지 뷰에서 카드 회색 국경 스타를 만들 수 있습니다하세요? 나는 imageview와 bottom/top 패딩을 카드에 추가했지만 어떤 성공도하지 못했습니다.을 Heres 카드 BG를위한 코드 : 내용에
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle"
android:dither="true">
<corners android:radius="0dp"/>
<solid android:color="#bdbdbd" />
</shape>
</item>
<item android:bottom="2dp">
<shape android:shape="rectangle"
android:dither="true">
<corners android:radius="0dp" />
<solid android:color="@android:color/white" />
</shape>
</item>
</layer-list>
과 활동
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_marginLeft="6dp"
android:layout_marginRight="6dp"
android:layout_marginTop="4dp"
android:background="@drawable/friend_card_profile_bg" >
<ImageView
android:id="@+id/friendPic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:adjustViewBounds="true"
android:scaleType="fitXY"
android:src="@drawable/friend_testpic" />
<TextView
android:id="@+id/friendUsername"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="2dp"
android:layout_marginLeft="6dp"
android:layout_marginTop="4dp"
android:layout_toRightOf="@+id/friendPic"
android:fontFamily="sans-serif-condensed"
android:text="@string/profile_username"
android:textColor="#7f7f7f"
android:textSize="19dp" />
<TextView
android:id="@+id/friendLinksCounter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/friendUsername"
android:layout_marginLeft="6dp"
android:layout_toRightOf="@+id/friendPic"
android:fontFamily="sans-serif"
android:text="@string/profile_links_counter"
android:textColor="#acacac"
android:textSize="14dp" />
<TextView
android:id="@+id/friendFriendsCounter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/friendLinksCounter"
android:layout_marginLeft="6dp"
android:layout_toRightOf="@+id/friendPic"
android:fontFamily="sans-serif"
android:text="@string/profile_friends_counter"
android:textColor="#acacac"
android:textSize="14dp" />
</RelativeLayout>
감사합니다 당신에게
Worked, 말한대로 패딩을 추가했습니다! – guilhermexot
다행히 도울 수 있어요 :) – Eluvatar