Como puedo poner lineas laterales en un TextView algo así:
-- or --
Stack Overflow en español es un sitio de preguntas y respuestas para programadores y profesionales de la informática. Solo te toma un minuto registrarte.
Regístrate para unirte a esta comunidadComo puedo poner lineas laterales en un TextView algo así:
-- or --
debes definirlo en el layout
<!--TEXVIEW CON LINEAS -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" >
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="center"
android:background="@android:color/darker_gray" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TEXTO DEL TEXTVIEW"
android:textStyle="bold"
android:textColor="#555"
android:layout_marginLeft="3dp"
android:layout_marginRight="3dp"
android:textSize="16sp"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" >
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="center"
android:background="@android:color/darker_gray" />
</LinearLayout>
</LinearLayout>