forked from lastfm/lastfm-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
experimental expandable notification for Android 4.1
- Loading branch information
Sam Steele
committed
Jun 29, 2012
1 parent
8362fa3
commit 0afbd15
Showing
3 changed files
with
113 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
|
||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" android:gravity="center_vertical"> | ||
|
||
<ImageView | ||
android:id="@+id/image" | ||
android:layout_width="128dip" | ||
android:layout_height="128dip" | ||
android:src="@drawable/no_artwork" /> | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" > | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="6dip" | ||
android:layout_weight="1" | ||
android:gravity="left|center_vertical" | ||
android:orientation="vertical" > | ||
|
||
<TextView | ||
android:id="@+id/title" | ||
style="@style/NotificationTitle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:ellipsize="end" | ||
android:maxLines="2" | ||
android:text="Track Title" /> | ||
|
||
<TextView | ||
android:id="@+id/text" | ||
style="@style/NotificationText" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:ellipsize="end" | ||
android:maxLines="1" | ||
android:text="Artist Name" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" > | ||
|
||
<ImageButton | ||
android:id="@+id/love" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:background="@null" | ||
android:padding="7dip" | ||
android:src="@drawable/love" /> | ||
|
||
<ImageButton | ||
android:id="@+id/ban" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:background="@null" | ||
android:padding="7dip" | ||
android:src="@drawable/ban" /> | ||
|
||
<ImageButton | ||
android:id="@+id/stop" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:background="@null" | ||
android:padding="7dip" | ||
android:src="@drawable/pause" /> | ||
|
||
<ImageButton | ||
android:id="@+id/skip" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:background="@null" | ||
android:padding="7dip" | ||
android:src="@drawable/skip" /> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters