any help????

On Thu, Dec 18, 2008 at 6:42 PM, for android <[email protected]> wrote:

> i need to get a customizable tablelayout with borders. Hence in the
> onDraw,I have the following code,but i get only the left side and top of the
> rectangle.but not on the right and bottom lines of the rectangle.
>
>
> I have layout in which the layout has a white background.And that layout
> has a table with blue background.I am trying to have bordered table layout
> for that:The layout is something like this:
>
> <LinearLayout bckgrnd color=white>
> <BorderedTableLayout bckgrnd color=blue>
> <LinearLayout>
>
> public BorderedTableLayout(Context context, AttributeSet attrs) {
>         super(context, attrs);
>         mRect = new Rect();
>         mPaint = new Paint();
>
>         mPaint.setStyle(Paint.Style.STROKE);
>         mPaint.setColor(Color.BLACK);
>     }
>
>     @Override
>     protected void onDraw(Canvas canvas) {
>         Rect r = mRect;
>         Paint paint = mPaint;
>        getDrawingRect(r);
>
>         canvas.drawRect(r, paint);
>         super.onDraw(canvas);
>     }
>
>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to