Android – setting size of grid view items according to screensize

While working in an android project, I came across a situation where the grid item’s size was differing with screensize. This is my gridview <GridView android:id=”@+id/PhoneImageGrid” android:layout_width=”fill_parent” android:layout_height=”fill_parent” android:columnWidth=”90dp” android:gravity=”center” android:horizontalSpacing=”10dp” android:numColumns=”auto_fit” android:stretchMode=”columnWidth” android:verticalSpacing=”10dp” />   Obvious because, in my gridview’s adapter, I had set the dimensions as 150 * 150 px.  imageView.setLayoutParams(new GridView.LayoutParams(150,150)); //dimension […]

White Chocolate Mango Cheese Cake

Back to baking with a summer special – Mango! Made this cheesecake for a potluck with coworkers and guess what?! turned out to be a huge hit in spite of few obvious mistakes.  The recipe Ingredients and quantity as in this link Mistakes I did 1. I baked it at 8 am, left it to […]

__() in Symfony Framework for PHP

When you work in PHP Symfony, many are the chances to see a statement like this <?php echo link_to(__(‘String title’), $internal_uri, array(‘target’ => ‘_blank’, ‘title’ => __(‘String title’)) ); Ok! lets not worry about $internal_uri here. Leaving that out, take a closer look at the above statement. there is a link_to() function and its out […]