Люди добрые, подскажите новичку!
Пишу будильник, интерфейс копирую со стандартного.
Список будильников получаю из БД кастомным адаптером.
Код элемента:
[syntax=xml]<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal" >
<CheckBox
android:id="@+id/cbEnable"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:focusable="false" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_weight="1"
android:orientation="vertical" >
<TextView
android:id="@+id/tvAlarmTime"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="left|top"
android:layout_marginLeft="10dp"
android:textSize="20dp"
android:textStyle="bold" />
<TextView
android:id="@+id/tvDaysOfWeek"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left"
android:textSize="14dp"
android:textStyle="italic" />
</LinearLayout>
<TextView
android:id="@+id/tvDescription"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="right"
android:layout_weight="1"
android:gravity="right|center_vertical" />
</LinearLayout>
</LinearLayout>[/syntax]
хочу сделать вот такой вертикальный разделитель рядом с CheckBox:
Вертикальный разделитель для элементов внутри ListView
Вертикальный разделитель для элементов внутри ListView
- Вложения
-
- 1.jpg (36.13 КБ) 2590 просмотров
Re: Вертикальный разделитель для элементов внутри ListView
обычный view у которого высота match_parent, а ширина фиксирована (например 2dp)
R.id.team
Политика на форуме запрещена
Политика на форуме запрещена