Add Bottom Shadow In Any Layout Like Cards In Google Now
Posted by blogmeister on
December 13, 2013
Coderwall created a layer list XML drawable in order to achieve this. A big thanks to him! This is how the XML file mydrawable.xml looks like:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape android:shape="rectangle" android:dither="true"> <corners android:radius="2dp" /> <solid android:color="#ccc" /> </shape> </item> <item android:bottom="2dp"> <shape android:shape="rectangle" android:dither="true"> <corners android:radius="2dp" /> <solid android:color="@color/white" /> <padding android:bottom="8dp" android:left="8dp" android:right="8dp" android:top="8dp" /> </shape> </item> </layer-list> |
Make sure you place this in the drawable folder.
To use this, simple set it as the value of the android:background attribute of any layout in your XML.
|
1 2 3 4 5 6 |
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/mydrawable" android:orientation="vertical" > ... </LinearLayout> |
Share the post "Add Bottom Shadow In Any Layout Like Cards In Google Now"
tags: android, card, google now, layout, linearlayout, shadow, xml
1 Comment
Broken Sword: The Shadow Of The Templars For iTouch
Posted by blogmeister on
February 28, 2011
Broken Sword: The Shadow of the Templars is a traditional point-and-click adventure, where the player has to logically come up with answers and solutions to riddles and problems that he or she encounters during the course of the game.
These kind of games are my favorite and ironically, I finished this game in my iTouch compared to when I played it in my Macbook and PC. Yes, this is not a new game. More like this game was ported for iTouch users to enjoy. Featuring a widely-praised touch interface, this game introduces an intricate new narrative thread, alongside the classic story.
Experience George and Nico’s worldwide adventure around Europe uncovering the mystery of the Knights of Templars. This game is a beautifully hand-animated 2D mystery adventure and its storytelling, entertaining puzzles, good humor and great good looks make it an awfully good game.
My only complaint in this game is that there should have been a setting to increase a character’s movement speed. That way, time would not be wasted for your character to go from one area to the next. Still, this game is awfully fun.
Next up for me, Broken Sword 2: Smoking Mirrors.
Share the post "Broken Sword: The Shadow Of The Templars For iTouch"













