android - TextView fill with points -
sorry english
i have 1 relativelayout , 2 textviews
<relativelayout android:layout_width="fill_parent" android:layout_weight="1" android:layout_height="wrap_content" > <textview android:id="@+id/textview9" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:singleline="true" android:textappearance="?android:attr/textappearancemedium" /> <textview android:id="@+id/textview10" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentright="true" android:layout_alignparenttop="true" android:singleline="true" android:textappearance="?android:attr/textappearancemedium" /> </relativelayout>
and want separate 2 elements points. that:
textview9 ...................................... textview10
other text more long ................................... 69
without java code:
drawable/dotted.xml:
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <stroke android:color="#c7b299" android:dashwidth="10px" android:dashgap="10px" /> </shape>
view.xml:
<view android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/dotted" />
and set:
view.setlayertype(view.layer_type_software, null);
Comments
Post a Comment