diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-09-13 09:06:19 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-09-13 09:06:19 -0700 |
commit | 46de452c50617c2bde3b648977b22a9f363a5b85 (patch) | |
tree | a61b390e61aac015a96ea07543610c59a8e26f4b /res/layout/select_album_header.xml | |
parent | da0176422bf9fe48878479038ed6bdfc10972af0 (diff) | |
download | dsub-46de452c50617c2bde3b648977b22a9f363a5b85.tar.gz dsub-46de452c50617c2bde3b648977b22a9f363a5b85.tar.bz2 dsub-46de452c50617c2bde3b648977b22a9f363a5b85.zip |
#397 Add star/rating to album header, added OnStarChange/OnRatingChange callbacks
Diffstat (limited to 'res/layout/select_album_header.xml')
-rw-r--r-- | res/layout/select_album_header.xml | 42 |
1 files changed, 35 insertions, 7 deletions
diff --git a/res/layout/select_album_header.xml b/res/layout/select_album_header.xml index 4110d530..a253aa31 100644 --- a/res/layout/select_album_header.xml +++ b/res/layout/select_album_header.xml @@ -71,16 +71,44 @@ </LinearLayout> - <ImageView - android:id="@+id/select_album_share" - android:layout_height="wrap_content" + <LinearLayout android:layout_width="wrap_content" - android:scaleType="fitCenter" - android:src="?attr/share" - android:padding="10dip" + android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" - style="@style/BasicButton"/> + android:padding="10dip"> + + <LinearLayout + android:id="@+id/select_album_rate_wrapper" + android:layout_width="wrap_content" + android:layout_height="fill_parent"> + + <RatingBar + android:id="@+id/select_album_rate" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:numStars="5" + style="@android:style/Widget.Holo.RatingBar.Small" + android:layout_gravity="center_vertical"/> + </LinearLayout> + + <ImageButton + android:id="@+id/select_album_star" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="@style/BasicButton" + android:src="@android:drawable/star_big_off" + android:layout_gravity="center_vertical"/> + + <ImageView + android:id="@+id/select_album_share" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:scaleType="fitCenter" + android:src="?attr/share" + style="@style/BasicButton" + android:layout_gravity="center_vertical"/> + </LinearLayout> </RelativeLayout> |