Add button pressed states

pull/14/head
Sam Bosley 13 years ago
parent e4f166cee7
commit bf4ac67023

@ -172,7 +172,7 @@ public class TagUpdatesFragment extends ListFragment {
}
private void resetPictureButton() {
pictureButton.setImageResource(R.drawable.camera_button_gray);
pictureButton.setImageResource(R.drawable.camera_button);
}
private void refreshUpdatesList() {

@ -116,7 +116,7 @@ public class EditNoteActivity extends LinearLayout implements TimerActionListene
}
private int getDefaultCameraButton() {
return R.drawable.camera_button_gray;
return R.drawable.camera_button;
}
public void loadViewForTaskID(long t){

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/camera_button_pressed"/>
<item android:state_focused="true" android:drawable="@drawable/camera_button_pressed"/>
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/camera_button_normal"/>
</selector>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/comment_blue_pressed"/>
<item android:state_focused="true" android:drawable="@drawable/comment_blue_pressed"/>
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/comment_blue_normal"/>
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/comment_dark_blue_pressed"/>
<item android:state_focused="true" android:drawable="@drawable/comment_dark_blue_pressed"/>
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/comment_dark_blue_normal"/>
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/comment_red_pressed"/>
<item android:state_focused="true" android:drawable="@drawable/comment_red_pressed"/>
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/comment_red_normal"/>
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/plus_button_blue_pressed"/>
<item android:state_focused="true" android:drawable="@drawable/plus_button_blue_pressed"/>
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/plus_button_blue_normal"/>
</selector>

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/plus_button_dark_blue_pressed"/>
<item android:state_focused="true" android:drawable="@drawable/plus_button_dark_blue_pressed"/>
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/plus_button_dark_blue_normal"/>
</selector>

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/plus_button_red_pressed"/>
<item android:state_focused="true" android:drawable="@drawable/plus_button_red_pressed"/>
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/plus_button_red_normal"/>
</selector>

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -64,11 +64,11 @@
android:layout_marginBottom="4dip"
android:layout_marginTop="4dip"/>
<ImageView
<ImageButton
android:id="@+id/comments"
android:layout_width="51dip"
android:layout_height="fill_parent"
android:padding="7dip"
android:background="@android:color/transparent"
android:src="?attr/asCommentButtonImg"
android:scaleType="fitCenter"/>

@ -42,12 +42,10 @@
android:layout_gravity="top"
android:layout_marginRight="3dip"
android:layout_weight="1"
android:background="#00000000"
android:paddingBottom="2dip"
android:paddingLeft="7dip"
android:paddingRight="7dip"
android:scaleType="centerInside"
android:src="@drawable/camera_button_gray" />
android:background="@android:color/transparent"
android:src="@drawable/camera_button" />
<!-- Quick Add Task -->

@ -137,12 +137,10 @@
android:layout_gravity="top"
android:layout_marginRight="3dip"
android:layout_weight="1"
android:background="#00000000"
android:paddingBottom="2dip"
android:paddingLeft="7dip"
android:paddingRight="7dip"
android:scaleType="centerInside"
android:src="@drawable/camera_button_gray" />
android:background="@android:color/transparent"
android:src="@drawable/camera_button" />
<!-- Quick Add Task -->
@ -201,7 +199,8 @@
android:layout_gravity="top"
android:layout_marginLeft="3dip"
android:layout_weight="1"
android:background="?attr/asAddButtonImg"
android:background="@android:color/transparent"
android:src="?attr/asAddButtonImg"
android:scaleType="center"
android:visibility="gone" />
</LinearLayout>

@ -68,7 +68,8 @@
android:layout_gravity="top"
android:layout_marginRight="5dip"
android:layout_weight="1"
android:background="?attr/asAddButtonImg"
android:background="@android:color/transparent"
android:src="?attr/asAddButtonImg"
android:scaleType="center"/>
</LinearLayout>

Loading…
Cancel
Save