Skip to content

Commit 545eeb2

Browse files
committed
added thumbnails and image examples
1 parent e91a0f4 commit 545eeb2

8 files changed

Lines changed: 127 additions & 434 deletions

File tree

AndroidBootstrap/res/drawable/bthumbnail_container_default.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

AndroidBootstrap/res/layout/bootstrap_thumbnail.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
android:gravity="center"
1616
android:padding="16dp">
1717

18-
<com.beardedhen.androidbootstrap.AutoResizeTextView
18+
<com.beardedhen.androidbootstrap.utils.AutoResizeTextView
1919
android:id="@+id/dimensionsLabel"
2020
android:layout_width="match_parent"
2121
android:layout_height="100dp"
2222
android:ellipsize="none"
2323
android:gravity="center"
2424
android:maxLines="1"
25-
android:textSize="14sp"
26-
android:textColor="@color/bthumbnail_font" /> <!-- maximum size -->
25+
android:textSize="100sp"
26+
android:textColor="@color/bthumbnail_font"/>
2727

2828

2929
</LinearLayout>

AndroidBootstrap/res/values/attrs.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@
2929

3030
</declare-styleable>
3131

32-
<declare-styleable name="BootstrapThumbnail">
33-
<attr name="bt_width" format="integer"/>
34-
<attr name="bt_height" format="integer"/>
32+
<declare-styleable name="BootstrapThumbnail">
3533
<attr name="bt_roundedCorners" format="boolean"/>
34+
<attr name="bt_image" format="integer"/>
35+
<attr name="bt_width" format="dimension"/>
36+
<attr name="bt_height" format="dimension"/>
3637
<attr name="android:text"/>
38+
<attr name="android:padding"/>
3739
</declare-styleable>
3840

3941
</resources>

AndroidBootstrap/res/values/colors.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<color name="bbutton_inverse_disabled_edge">#a5141414</color>
5858

5959
<color name="bthumbnail_background">#ffffffff</color>
60-
<color name="bthumbnail_placeholder">#dbdbdb</color>
60+
<color name="bthumbnail_placeholder">#e9e9e9</color>
6161
<color name="bthumbnail_border">#dbdbdb</color>
6262
<color name="bthumbnail_font">#7e7e7e</color>
6363

AndroidBootstrap/src/com/beardedhen/androidbootstrap/AutoResizeTextView.java

Lines changed: 0 additions & 296 deletions
This file was deleted.

0 commit comments

Comments
 (0)