Android : Programatically give Bevel effect for a linear layout in android

on Saturday, August 2, 2014


What i have:: I have programatically created a adapter item for gridview image


What i want to do:: I want programatically give a Belevel Shadow as below in image


enter image description here


Code I am having::



linearLayoutOne=new LinearLayout(context);
linearLayoutOne.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT,TableRow.LayoutParams.MATCH_PARENT));
linearLayoutOne.setOrientation(LinearLayout.VERTICAL);



  • How can i programatically generate that effect-I do not want to use XML-background since i am generating views programatically

  • Is it possible, if so how ?


0 comments:

Post a Comment