Various cleanups

Move ProgressWheel into the project proper, optimize the DL ListView
And also remove android-iconify. Despite using icons (which is awesome)
it didn't handle button highlight on click well, and the icons seemed a
bit small anyways.
This commit is contained in:
Bradlee Speice
2014-05-17 01:16:36 -04:00
parent 01d5e97d21
commit 5222b6e3e6
7 changed files with 560 additions and 23 deletions

View File

@ -10,9 +10,7 @@
android:layout_height="wrap_content"
android:id="@+id/img_download_icon"
android:layout_alignParentLeft="true"
android:layout_marginLeft="0dp"
android:layout_alignParentTop="true"
android:layout_marginTop="0dp" />
android:layout_alignParentTop="true" />
<TextView
android:layout_width="wrap_content"
@ -22,12 +20,13 @@
android:maxLines="1"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_toRightOf="@+id/img_download_icon"
android:layout_toLeftOf="@+id/img_download_index_downloaded" />
android:layout_toLeftOf="@+id/download_ibtn_download" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/download_txt_item_acronym"
android:paddingTop="4dp"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_toRightOf="@+id/img_download_icon"
android:layout_below="@+id/txt_download_item_name"/>
@ -35,18 +34,9 @@
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/img_download_index_downloaded"
android:src="@drawable/ic_action_search"
style="@style/AppBaseTheme.Borderless"
android:layout_alignParentTop="true"
android:layout_toLeftOf="@+id/img_download_item_downloaded" />
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/img_download_item_downloaded"
android:background="@drawable/ic_action_download"
android:layout_alignParentEnd="true"
android:src="@drawable/ic_action_download"
android:id="@+id/download_ibtn_download"
style="@style/AppBaseTheme.Borderless" />
</RelativeLayout>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="ProgressWheel">
<attr name="text" format="string" />
<attr name="textColor" format="color" />
<attr name="textSize" format="dimension" />
<attr name="barColor" format="color" />
<attr name="rimColor" format="color" />
<attr name="rimWidth" format="dimension" />
<attr name="spinSpeed" format="dimension" />
<attr name="delayMillis" format="integer" />
<attr name="circleColor" format="color" />
<attr name="radius" format="dimension" />
<attr name="barWidth" format="dimension" />
<attr name="barLength" format="dimension" />
<attr name="contourColor" format="color"/>
<attr name="contourSize" format="dimension"/>
</declare-styleable>
</resources>