Loading src/com/android/gallery3d/filtershow/editors/Editor.java +14 −4 Original line number Diff line number Diff line Loading @@ -17,15 +17,13 @@ package com.android.gallery3d.filtershow.editors; import android.content.Context; import android.graphics.drawable.Drawable; import android.text.Html; import android.view.LayoutInflater; import android.view.Menu; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.LinearLayout; import android.widget.PopupMenu; import android.widget.SeekBar; import android.widget.*; import android.widget.SeekBar.OnSeekBarChangeListener; import com.android.gallery3d.R; Loading Loading @@ -85,6 +83,10 @@ public class Editor implements OnSeekBarChangeListener { return true; } public boolean showsPopupIndicator() { return true; } /** * @param actionButton the would be the area for menu etc * @param editControl this is the black area for sliders etc Loading @@ -97,6 +99,14 @@ public class Editor implements OnSeekBarChangeListener { } else { mSeekBar.setVisibility(View.INVISIBLE); } Button button = (Button) actionButton.findViewById(R.id.applyEffect); if (button != null) { if (showsPopupIndicator()) { button.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, R.drawable.filtershow_menu_marker, 0); } else { button.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, 0, 0); } } } @Override Loading src/com/android/gallery3d/filtershow/editors/EditorFlip.java +5 −0 Original line number Diff line number Diff line Loading @@ -62,4 +62,9 @@ public class EditorFlip extends Editor implements EditorInfo { public boolean showsSeekBar() { return false; } @Override public boolean showsPopupIndicator() { return false; } } src/com/android/gallery3d/filtershow/editors/EditorRotate.java +5 −0 Original line number Diff line number Diff line Loading @@ -62,4 +62,9 @@ public class EditorRotate extends Editor implements EditorInfo { public boolean showsSeekBar() { return false; } @Override public boolean showsPopupIndicator() { return false; } } src/com/android/gallery3d/filtershow/editors/EditorStraighten.java +6 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.gallery3d.filtershow.editors; import android.content.Context; import android.view.View; import android.widget.FrameLayout; import com.android.gallery3d.R; Loading Loading @@ -73,4 +74,9 @@ public class EditorStraighten extends Editor implements EditorInfo { public boolean showsSeekBar() { return false; } @Override public boolean showsPopupIndicator() { return false; } } Loading
src/com/android/gallery3d/filtershow/editors/Editor.java +14 −4 Original line number Diff line number Diff line Loading @@ -17,15 +17,13 @@ package com.android.gallery3d.filtershow.editors; import android.content.Context; import android.graphics.drawable.Drawable; import android.text.Html; import android.view.LayoutInflater; import android.view.Menu; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.LinearLayout; import android.widget.PopupMenu; import android.widget.SeekBar; import android.widget.*; import android.widget.SeekBar.OnSeekBarChangeListener; import com.android.gallery3d.R; Loading Loading @@ -85,6 +83,10 @@ public class Editor implements OnSeekBarChangeListener { return true; } public boolean showsPopupIndicator() { return true; } /** * @param actionButton the would be the area for menu etc * @param editControl this is the black area for sliders etc Loading @@ -97,6 +99,14 @@ public class Editor implements OnSeekBarChangeListener { } else { mSeekBar.setVisibility(View.INVISIBLE); } Button button = (Button) actionButton.findViewById(R.id.applyEffect); if (button != null) { if (showsPopupIndicator()) { button.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, R.drawable.filtershow_menu_marker, 0); } else { button.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, 0, 0); } } } @Override Loading
src/com/android/gallery3d/filtershow/editors/EditorFlip.java +5 −0 Original line number Diff line number Diff line Loading @@ -62,4 +62,9 @@ public class EditorFlip extends Editor implements EditorInfo { public boolean showsSeekBar() { return false; } @Override public boolean showsPopupIndicator() { return false; } }
src/com/android/gallery3d/filtershow/editors/EditorRotate.java +5 −0 Original line number Diff line number Diff line Loading @@ -62,4 +62,9 @@ public class EditorRotate extends Editor implements EditorInfo { public boolean showsSeekBar() { return false; } @Override public boolean showsPopupIndicator() { return false; } }
src/com/android/gallery3d/filtershow/editors/EditorStraighten.java +6 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.gallery3d.filtershow.editors; import android.content.Context; import android.view.View; import android.widget.FrameLayout; import com.android.gallery3d.R; Loading Loading @@ -73,4 +74,9 @@ public class EditorStraighten extends Editor implements EditorInfo { public boolean showsSeekBar() { return false; } @Override public boolean showsPopupIndicator() { return false; } }