0
안녕하세요 메신저 임 Aquery 안드로이드 내 XML 레이아웃을 사용하여 allign 권리를 comments_logs 한 레이아웃이이미지 자르기 안드로이드
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:background="@android:color/white"
android:layout_marginTop="15dp"
android:paddingRight="8dp">
<ImageView
android:id="@+id/image_comments"
android:layout_width="120dp"
android:layout_height="120dp"
android:src="@drawable/ic_launcher"
android:padding="10dp"
android:layout_alignParentLeft="true"
android:cropToPadding="true"
android:scaleType="centerCrop" />
<TextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@android:color/black"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/image_comments"
android:layout_toEndOf="@+id/image_comments" />
</RelativeLayout>
그리고 내 클래스, 이미지 URL 내 서버에서 URL로 이미지 내 변수 :
String image_url="example_for_image_url_string"
int layout_id = R.layout.layout_comment_left;
RelativeLayout relativeLayout = (RelativeLayout) inflater.inflate(layout_id, null, false);
AQuery aq = new AQuery(relativeLayout);
aq.id(R.id.image_comments).image(image_url);
TextView message = (TextView) relativeLayout.findViewById(R.id.message);
message.setText(message_json);
layout.addView(relativeLayout);
탄원, 어떻게 내가이 코너 또는 반경
안부 croop 필요로하는 설정 또는 원에 내 이미지를 변환하는!
이 응답 http://stackoverflow.com/a/18378873/4224337를 살펴를 – Rami
없음 내 질문, 감사입니다하지만,이 질문에 대한 대답입니다 – Luis