Skip to content

Commit

Permalink
Jeyakar - Added Capture photo button style
Browse files Browse the repository at this point in the history
  • Loading branch information
jeyakar committed Feb 13, 2013
1 parent a8aac41 commit 21ff676
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
Binary file modified RapidFTR-Android/res/drawable/bgbtnphoto.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified RapidFTR-Android/res/drawable/bgbtnphotohover.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions RapidFTR-Android/res/drawable/camera_button.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@drawable/bgbtnphotohover"
android:state_focused="true"
/>
<item android:drawable="@drawable/bgbtnphotohover" android:state_focused="true" />
<item android:drawable="@drawable/bgbtnphotohover" android:state_pressed="true" />
<item android:drawable="@drawable/bgbtnphoto"/>

</selector>
6 changes: 2 additions & 4 deletions RapidFTR-Android/res/layout/form_photo_upload_box.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@

<Button android:id="@+id/thumbnail"
android:background="@drawable/camera_button"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_gravity="center"

android:text="@string/photo_capture"
style="@style/button_photo_audio"
>
</Button>

Expand Down
13 changes: 13 additions & 0 deletions RapidFTR-Android/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,19 @@
<item name="android:textSize">20dp</item>
</style>

<style name="button_photo_audio">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textColor">#333333</item>

<item name="android:layout_margin">5dp</item>
<item name="android:textSize">18dp</item>
<item name="android:paddingTop">5dp</item>
<item name="android:paddingBottom">5dp</item>
<item name="android:paddingLeft">32dp</item>
<item name="android:paddingRight">5dp</item>
</style>

<style name="save_button">
<item name="android:layout_width">50dp</item>
<item name="android:layout_height">fill_parent</item>
Expand Down

0 comments on commit 21ff676

Please sign in to comment.