У меня есть divider, и я хотел сделать тот же эффект, но по вертикали. Как я могу это сделать?Как построить вертикальный делитель
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:bottom="2dp">
<shape android:shape="rectangle">
<gradient
android:startColor="#0fffffff"
android:centerColor="#ff696969"
android:endColor="#0fffffff"
android:angle="90"></gradient>
<size android:height="2dp"></size>
</shape>
</item>
<item android:top="2dp">
<shape android:shape="rectangle">
<solid android:color="#ffffff"></solid>
<size android:height="1dp"></size>
</shape>
</item>
</layer-list>
Я получаю solution с помощью Сельты, я не использовать разделитель XML и построить свой собственный lLinearLayout:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal">
<View
android:layout_width="1dp"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:background="#ff696969"></View>
<View
android:layout_width="2dp"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:background="#ffffff"></View>
</LinearLayout>
Проверьте и попробуйте решения из [этой темы] (http://stackoverflow.com/questions/2658772/android-vertical-line-xml). – mmBs