Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I cannot see right side vertical divider , I create linearlayout widget layout Programmatically.
- ![enter image description here][1]
- I see all these except red vertical line. here is the my code:
- public class TextLinear extends LinearLayout {
- mainLinearLayout= new LinearLayout(mcontext);
- linearSocial= new LinearLayout(mcontext);
- linearSocial.setOrientation(LinearLayout.HORIZONTAL);
- lLayout = new LinearLayout(mcontext);
- tViewTitle = new TextView(mcontext);
- tvMessageFire = new TextView(mcontext);
- viewDivider = new View(mcontext);
- viewDivider.setLayoutParams(new LayoutParams(5,LayoutParams.WRAP_CONTENT));
- viewDivider.setBackgroundColor(Color.RED);
- img0=new ImageView(mcontext);
- img1=new ImageView(mcontext);
- linearSocial.addView(img0);
- linearSocial.addView(img1);
- linearSocial.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT,Gravity.RIGHT));
- lLayout.addView(tViewTitle);
- lLayout.addView(tvMessageFire);
- lLayout.addView(linearSocial,rightGravityParams);
- mainLinearLayout.addView(lLayout);
- this.addView(mainLinearLayout);
- this.addView(viewDivider);
- }
- [1]: http://i.stack.imgur.com/t03il.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement