나는 XML로 설계 초보자를 해요 android:numStars
가 5안드로이드 평가 바 XML과 numStars는
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="2" >
<TextView
android:id="@+id/txtTitle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:textColor="#336699"
android:textSize="18dp"
android:textStyle="bold" />
<RatingBar
android:id="@+id/rtbHighScore"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:numStars="5"
android:max="100"
android:rating="0.0"
android:stepSize="0.0"
style="?android:attr/ratingBarStyleSmall"
android:layout_weight="1" />
<ImageView
android:id="@+id/imgRow"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="right"
android:layout_marginBottom="5dp"
android:layout_marginRight="15dp"
android:layout_marginTop="5dp"
android:gravity="center_vertical"
android:src="@drawable/rightarrow" />
</LinearLayout>
, 그러나 이것은 내가 무엇을 얻을 :
은 내가 layout_width
이 wrap_content
너무 등급 바 별은 내 android:numStars
을 따릅니다해야한다는 읽고 난로 변경할 때 내가 무엇을 얻을:
내가 5stars에게 평가 내 텍스트 뷰의 오른쪽 막대 (또는 내 오른쪽 화살표 이미지의 왼쪽) 감사 만들
: D
어떤 도움을 주시기 바랍니다 "완벽한"정말 붙어 내 레이아웃을? 여기에 : D –