code to display Horizontal lines(that line generated using . or - or * ) in between two Widgets,in Android

criminalcasedetails_screen.xml:

<RelativeLayout
                    android:id="@+id/relativeLayout54"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="10dip"
                    android:layout_marginRight="10dip"
                    android:layout_marginTop="1dip"
                    android:background="@drawable/rounded_white_color" >

                    <TextView
                        android:id="@+id/municipality"
                        android:layout_width="wrap_content"
                        android:layout_height="40dip"
                        android:layout_alignParentLeft="true"
                        android:layout_marginLeft="15dp"
                        android:layout_marginTop="9dp"
                        android:gravity="center"
                        android:text="Red Bank Borough"
                        android:textColor="#555555"
                        android:textSize="20dip" />

                    <View
                        android:id="@+id/courtline1"
                        android:layout_width="fill_parent"
                        android:layout_height="3dip"
                        android:layout_below="@+id/municipality"
                        android:layout_marginLeft="10dp"
                        android:layout_marginRight="10dip"
                        android:background="@drawable/dash" />

                    <TextView
                        android:id="@+id/courtaddress"
                        android:layout_width="wrap_content"
                        android:layout_height="40dip"
                        android:layout_alignParentLeft="true"
                        android:layout_below="@+id/courtline1"
                        android:layout_marginLeft="40dp"
                        android:layout_marginTop="9dip"
                        android:gravity="center"
                        android:text="97 IronWood Court,Middletown Nj"
                        android:textColor="#737373"
                        android:textSize="15dip" />
 <ImageView
            android:id="@+id/imageView5"
            android:layout_width="20dip"
            android:layout_height="20dip"
            android:layout_marginTop="70dip"
            android:layout_marginLeft="15dip"
           android:src="@drawable/address32"
            />
                    <View
                        android:id="@+id/courtline2"
                        android:layout_width="fill_parent"
                        android:layout_height="3dip"
                        android:layout_below="@+id/courtaddress"
                        android:layout_marginLeft="10dp"
                        android:layout_marginRight="10dip"
                        android:background="@drawable/dash" />

                    <TextView
                        android:id="@+id/hours"
                        android:layout_width="wrap_content"
                        android:layout_height="40dip"
                        android:layout_alignParentLeft="true"
                        android:layout_below="@+id/courtline2"
                        android:layout_marginLeft="40dp"
                        android:layout_marginTop="9dip"
                        android:gravity="center"
                        android:text="8:00AM to 4:00PM"
                        android:textColor="#737373"
                        android:textSize="15dip" />
  <ImageView
            android:id="@+id/imageView6"
            android:layout_width="20dip"
            android:layout_height="20dip"
            android:layout_marginTop="123dip"
            android:layout_marginLeft="15dip"
           android:src="@drawable/clock32"
            />
                    <View
                        android:id="@+id/courtline3"
                        android:layout_width="fill_parent"
                        android:layout_height="3dip"
                        android:layout_below="@+id/hours"
                        android:layout_marginLeft="10dp"
                        android:layout_marginRight="10dip"
                        android:background="@drawable/dash" />

                    <TextView
                        android:id="@+id/phone"
                        android:layout_width="wrap_content"
                        android:layout_height="40dip"
                        android:layout_below="@+id/courtline3"
                        android:layout_marginLeft="40dp"
                        android:layout_marginTop="9dp"
                        android:gravity="center"
                        android:text="9292304336"
                        android:textColor="#737373"
                        android:textSize="15dip" />
         <ImageView
            android:id="@+id/imageView7"
            android:layout_width="20dip"
            android:layout_height="20dip"
            android:layout_marginTop="174dip"
            android:layout_marginLeft="15dip"
           android:src="@drawable/phone32"
            />
               
                    <View
                        android:id="@+id/courtline4"
                        android:layout_width="fill_parent"
                        android:layout_height="3dip"
                        android:layout_below="@+id/phone"
                        android:layout_marginLeft="10dp"
                        android:layout_marginRight="10dip"
                        android:background="@drawable/dash" />

                    <TextView
                        android:id="@+id/fax"
                        android:layout_width="wrap_content"
                        android:layout_height="40dip"
                        android:layout_below="@+id/courtline4"  
                        android:layout_marginLeft="40dp"
                        android:layout_marginTop="9dp"
                        android:gravity="center"
                        android:text="908-887-9976"
                        android:textColor="#737373"
                        android:textSize="15dip" />  
                   
                   
                   <ImageView
            android:id="@+id/imageView8"
            android:layout_width="20dip"
            android:layout_height="20dip"
            android:layout_marginTop="227dip"
            android:layout_marginLeft="15dip"
           android:src="@drawable/fax32"
            />

                    <!--
<RelativeLayout
     android:id="@+id/maprellayout"
     android:layout_width="fill_parent"
     android:layout_height="200dip"
   
   
     android:layout_below="@+id/fax"
  >
        
    <com.google.android.maps.MapView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/mapview"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:clickable="true"
    android:apiKey="0rDV6OuyDTpAZ8Et98id-ReX314hmkcBJd8VDoQ"
/>
</RelativeLayout>
                    -->
                </RelativeLayout>
---------------------------------------------------------------------------------------------------
dash.xml:


<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
    android:color="#B0B0B0"
    android:dashWidth="5dip"
    android:dashGap="4px" />
</shape>




Comments

Popular posts from this blog

Custom Dialog with no title and full screen in Android

code to display .pdf,.text,.DOC,.DOCX,.doc extension files exists in SDCard

Best working code to set Date limits on Date Picker Dialog,in Android