Changed references of LinearLayoutParams to MarginLayoutParams (allows the use of FrameLayout)