بروز خطا
[message]
اشتراک در سوال
رای ها
[dataList]
نحوه ایجاد ۲ خط افقی در دو طرف Textview
برای این سوال 1 پاسخ وجود دارد.
پاسخ به سوال
Criss
10 سال پیش
+6
0
کد :
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_launcher"
android:drawableRight="@drawable/ic_launcher"
android:text="animation" />
یا
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="8dip"
android:paddingRight="8dip" >
<ImageView
android:id="@+id/ImageView01"
android:layout_width="0dip"
android:layout_height="1dip"
android:layout_weight="1"
android:background="#dddddd" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="6dip"
android:layout_marginRight="6dip"
android:text="OR" android:textStyle="bold" android:textColor="#dddddd"/>
<ImageView
android:id="@+id/ImageView02"
android:layout_width="0dip"
android:layout_height="1dip"
android:layout_weight="1"
android:background="#dddddd" />
</LinearLayout>
پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .
