Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rgocal committed Nov 6, 2018
1 parent 06078d8 commit 3ba7bf1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ public class PopupWindows {
View mRootView;
private Drawable mBackground = null;
WindowManager mWindowManager;

PopupWindows(Context context) {
mContext= context;
mContext = context;
mWindow = new PopupWindow(context);
mWindow.setTouchInterceptor(new OnTouchListener() {
@SuppressLint("ClickableViewAccessibility")
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/quick_action_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
android:id="@+id/tracks"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="horizontal">

<View
Expand Down
Binary file added example-debug.apk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ protected void onCreate(Bundle savedInstanceState) {
mQuickAction.setScrollBar(false);
//Set animation style
mQuickAction.setAnimStyle(4);
//Set has titles or not
mQuickAction.setHasTitles(true);

//Not working yet...
//mQuickAction.setScrollColor(R.color.orange);
//mQuickAction.setTrackColor(R.color.orange);
//mQuickAction.setBodyColor(R.color.purple);
mQuickAction.setScrollColor(R.color.orange);
mQuickAction.setTrackColor(R.color.orange);
mQuickAction.setBodyColor(R.color.orange);

//Add the actions to the popup menu
//Try adding if statements sometime to control what actions are present to the menu!
Expand Down

0 comments on commit 3ba7bf1

Please sign in to comment.