Skip to content

Commit

Permalink
Fixed drawable folders
Browse files Browse the repository at this point in the history
  • Loading branch information
HannahMitt committed Aug 23, 2015
1 parent e817406 commit aab67bd
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ build/

# Local configuration file (sdk path, etc)
local.properties
*.DS_Store

# Proguard folder generated by Eclipse
proguard/
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/drawable-hdpi/mdpi_test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#0000ff"/>
</shape>
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 4 additions & 0 deletions app/src/main/res/drawable-xhdpi/mdpi_test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#00ff00"/>
</shape>
3 changes: 3 additions & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
style="@style/MirrorText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableRight="@drawable/bike"
tools:text="Don't Bike Today" />

<TextView
Expand All @@ -70,13 +71,15 @@
style="@style/MirrorText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableRight="@drawable/air_plant"
android:text="@string/water_plants" />

<TextView
android:id="@+id/grocery_list"
style="@style/MirrorText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableRight="@drawable/grocery_bag"
android:text="@string/grocery_list" />

<ImageView
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<style name="MirrorText">
<item name="android:fontFamily">sans-serif-light</item>
<item name="android:gravity">right</item>
<item name="android:gravity">right|center_vertical</item>
<item name="android:drawablePadding">16dp</item>
</style>
</resources>

0 comments on commit aab67bd

Please sign in to comment.