Updated expandable listview views

This commit is contained in:
Denis 2015-02-06 14:18:18 +02:00
parent 4997d984f8
commit 05492d1171
5 changed files with 167 additions and 153 deletions

View file

@ -1,39 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="1dp"
android:layout_height="@dimen/list_item_height"
android:paddingBottom="1dp"
android:paddingLeft="@dimen/list_content_padding"
android:paddingRight="@dimen/list_content_padding"
android:paddingLeft="@dimen/list_content_padding">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent">
android:paddingTop="1dp">
<CheckBox
android:id="@+id/check_download_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:focusable="false" />
</LinearLayout>
android:focusable="false"
android:layout_gravity="center_vertical"/>
<TextView
android:id="@+id/download_item"
android:gravity="center_vertical"
style="@style/ListText.Small"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:maxLines="7"
android:layout_weight="1"
style="@style/ListText.Small" />
android:layout_gravity="center_vertical"
tools:text="@string/lorem_ipsum"
android:maxLines="7"/>
<TextView
android:id="@+id/download_descr"
android:layout_marginLeft="3dp"
android:gravity="right"
style="@style/ListText.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/ListText.Small" />
android:layout_marginLeft="3dp"
android:gravity="right"/>
</LinearLayout>

View file

@ -2,42 +2,39 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_height="@dimen/list_item_height"
android:orientation="horizontal"
android:paddingBottom="5dp"
android:paddingLeft="@dimen/list_content_padding"
android:paddingRight="@dimen/list_content_padding"
android:paddingTop="5dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<CheckBox
android:id="@+id/check_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:focusable="false"
android:gravity="center_vertical"
android:visibility="gone"/>
</LinearLayout>
<ImageView
android:id="@+id/favourite_icon"
android:layout_width="25dp"
android:layout_height="fill_parent"
android:paddingRight="2dp"
android:paddingTop="2dp"
android:layout_height="fill_parent" />
android:paddingTop="2dp"/>
<TextView
android:id="@+id/favourite_label"
style="@style/ListText"
android:layout_width="wrap_content"
android:layout_marginLeft="10dp"
android:textColor="?android:textColorPrimary"
android:layout_height="wrap_content"
android:maxLines="1"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:ellipsize="end"
tools:text="@string/lorem_ipsum"
style="@style/ListText" />
android:maxLines="1"
android:textColor="?android:textColorPrimary"
tools:text="@string/lorem_ipsum"/>
</LinearLayout>

View file

@ -1,12 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_height="@dimen/list_item_height"
android:orientation="vertical"
android:paddingBottom="4dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="4dp">
android:paddingRight="8dp">
<LinearLayout
android:layout_width="fill_parent"
@ -15,6 +14,7 @@
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="3dp">
<ImageView
@ -30,19 +30,24 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
tools:text="@string/lorem_ipsum"
android:maxLines="2"
android:layout_marginLeft="2dp"
android:layout_marginRight="3dp"
android:layout_marginLeft="2dp"></TextView>
android:textSize="@dimen/dashFavNameTextSize"/>
</FrameLayout>
<TextView
android:id="@+id/name"
style="@style/ListText.Small"
android:layout_width="0dp"
android:paddingTop="2dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
tools:text="@string/lorem_ipsum"
android:layout_marginLeft="5dp"
android:textSize="@dimen/dashFavNameTextSize"
android:layout_weight="1"
android:layout_gravity="center_vertical"></TextView>
android:paddingTop="2dp"/>
</LinearLayout>
<TextView
@ -51,6 +56,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:maxLines="25"></TextView>
android:textSize="@dimen/dashFavNameTextSize"
android:maxLines="25"/>
</LinearLayout>

View file

@ -1,12 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_height="@dimen/list_item_height"
android:orientation="horizontal"
android:paddingBottom="4dp"
android:paddingLeft="@dimen/list_content_padding"
android:paddingRight="@dimen/list_content_padding"
android:paddingTop="4dp"
android:paddingBottom="4dp">
android:paddingTop="4dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="vertical">
<LinearLayout
android:layout_width="fill_parent"
@ -20,33 +27,39 @@
android:id="@+id/check_local_index"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:focusable="false" />
android:focusable="false"
android:gravity="center_vertical"/>
</LinearLayout>
<TextView
android:id="@+id/local_index_name"
android:gravity="center_vertical"
style="@style/ListText.Small"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
style="@style/ListText.Small"/>
android:gravity="center_vertical"
android:maxLines="1"
tools:text="@string/lorem_ipsum"/>
<TextView
android:id="@+id/local_index_size"
android:layout_marginLeft="3dp"
android:gravity="right"
style="@style/ListText.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/ListText.Small"/>
android:layout_marginLeft="3dp"
android:gravity="right"/>
</LinearLayout>
<TextView
android:id="@+id/local_index_descr"
android:gravity="center_vertical"
style="@style/ListText.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:maxLines="25"
style="@style/ListText.Small"/>
tools:text="@string/lorem_ipsum"/>
</LinearLayout>
</LinearLayout>

View file

@ -25,6 +25,7 @@
<dimen name="list_content_padding">16dp</dimen>
<dimen name="list_header_padding">8dp</dimen>
<dimen name="tab_height">48dp</dimen>
<dimen name="list_item_height">48dp</dimen>
<!-- TextSizes -->
<dimen name="showAllButtonTextSize">12sp</dimen>