can someone pls guide me what should i need to add in code to draw vertical lines of fixed height i want vertical lines like a scale measurement in this url see vertical line example Here is my code TRIED CODE
<ScrollView xmlns:android="http://ift.tt/nIICcg"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:id="@+id/linear_layout_one"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginLeft="5dp">
<!-- <View
style="@style/AppBaseTheme"
android:layout_width="2dp"
android:layout_height="wrap_content"
android:background="@android:color/holo_purple" /> -->
<View
android:layout_width="5dip"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:rotation="90"
android:background="@android:color/darker_gray"/>
<View
android:layout_width="5dip"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:rotation="90"
android:background="@android:color/holo_purple"/>
<View
android:layout_width="5dip"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:rotation="90"
android:background="@android:color/darker_gray"/>
<View
android:layout_width="5dip"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:rotation="90"
android:background="@android:color/holo_purple"/>
<View
android:layout_width="5dip"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:rotation="90"
android:background="@android:color/holo_purple"/>
<View
android:layout_width="5dip"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:rotation="90"
android:background="@android:color/holo_purple"/>
<View
android:layout_width="5dip"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:rotation="90"
android:background="@android:color/holo_purple"/>
<View
android:layout_width="5dip"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:rotation="90"
android:background="@android:color/holo_purple"/>
<View
android:layout_width="5dip"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:rotation="90"
android:background="@android:color/holo_purple"/>
<View
android:layout_width="5dip"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:rotation="90"
android:background="@android:color/holo_purple"/>
</LinearLayout>
</ScrollView>
No comments:
Post a Comment