Hi Martin,

try to add the following attribute to your TextView:

 android:layout_marginBottom="[pixel]px"

where [pixel] is the amount of space you want to have under your
TextView.

Marco

On 16 Feb., 17:15, Prabakar <prabhu_mp...@yahoo.com> wrote:
> Hello,
>
> I am having Two textview one by one vertically like below xml code. Currently 
> it is showing one after another without a gap. I want to have some gap 
> between one and another TextView. I tried many things, but not succeeded. It 
> may be simple change, but could someone advise me how do i achieve this? 
> which property helps to positioning the control as per our wish?
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
>     android:orientation="vertical"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     >
> <TextView 
>     android:layout_width="fill_parent"
>     android:layout_height="wrap_content" android:text="@string/TickerLbl1" 
> android:background="@color/TickTextViewBackCol" android:textStyle="bold"/>
> <TextView android:id="@+id/TextView01" android:layout_height="wrap_content" 
> android:text="@string/TickerLbl1" android:layout_width="fill_parent" 
> android:background="@color/TickTextViewBackCol" 
> android:textStyle="bold"></TextView>
> </LinearLayout>
>
> Thanks.
> - Martin.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to