0
안드로이드에 특정 구성 요소가 있거나 이미지에 라운드로 표시되는 삼각형을 만들고보기에 카드에 부착해야하지만 이미지를 업로드 할 때 이미지와 같지 않을 수도 있습니다. Click here to see Image아무도 안드로이드에 cardview이 삼각형을 첨부 할 수있는 방법을 말해 줄 수 있습니까?
안드로이드에 특정 구성 요소가 있거나 이미지에 라운드로 표시되는 삼각형을 만들고보기에 카드에 부착해야하지만 이미지를 업로드 할 때 이미지와 같지 않을 수도 있습니다. Click here to see Image아무도 안드로이드에 cardview이 삼각형을 첨부 할 수있는 방법을 말해 줄 수 있습니까?
음 많은 방법이 있지만, 내이다 : 당신은 포토샵에서 같은 이미지를 만듭니다
은 (모든 장치 물론 잘 측정 대상 (DP)) 그런 다음 drawable
폴더에 넣고 CardView 위에 놓습니다.
그 이미지라고 가정 image_traingle.jpg
당신은이 방법을 회신
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:onClick="Contract"
android:layout_margin="10dp"
app:cardCornerRadius="7dp"
android:layout_height="90dp">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Imageview
android:layout_width="wrap_content"
android:gravity="left"
android:background="@color/colorPrimary"
android:src="drawable/image_triangle"
android:layout_height="match_parent" />
.
.
.
</LinearLayout>
</android.support.v7.widget.CardView>
감사를 할 수 있습니다. 하지만 추가 구성 요소라고하는 안드로이드 구성 요소가 있습니다, 나는 지난 이틀 동안 검색하고있는 정확한 이름을 잊어 버렸지 만 찾을 수 없었습니다. 나는이 방법을 시도 할 것이다 @ LuttayaHuzaifahIdris. –
좋아, @ kuldeepzala, 괜찮 으면, 너는 나에게 Tick –
을 할 수있다 :) @ LuttayaHuzaifahIdris –