@Override
public View getView(int position, View convertView, ViewGroup parent) {
convertView = LayoutInflater.from(context).inflate(R.layout.period_list_row, null);
Drawable[] d = new Drawable[] { new ColorDrawable(0xFF00FF00), context.getResources().getDrawable(R.drawable.period_row_style)};
convertView.setBackgroundDrawable(new LayerDrawable(d));
return convertView;
}
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<stroke
android:width="2dp"
android:color="#ffffffff" />
</shape>