Swipe Image with button and fingers?

Use the view Flow project to do this. Your code with adding imageViews is not a good solution at all.

Use the view Flow project to do this. Your code with adding imageViews is not a good solution at all. See viewFlow on gitHub.

There are examples with images also. All you do is add this layout in the activity, make an image adapter and thats it.

I did something like this a while back, basically a finger swipe left or finger swipe right perform 2 different actions and there are buttons for the same actions that can be clicked. In my Main Activity I register the finger swipe listener: gestureDetector = new GestureDetector(new ListItemGestureDetector(this)); gestureListener = new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (gestureDetector. OnTouchEvent(event)) { return true; } return false; } }; Then in my Efficient Adapter that renders my list view, I register the buttons and their click (this would not be the same for you but when adding the buttons to my layout I do this (call and sms being buttons in my layout) static class ViewHolder { TextView name, phone; ImageButton call, sms, other; //ImageView icon; } ViewHolder holder = new ViewHolder(); holder.call.

SetClickable(true); holder.call. SetFocusable(true); holder.call. SetTag("call"); final int pos = position; holder.call.

SetOnClickListener(new View.OnClickListener() { public void onClick(View view) { Toast. MakeText(context, "CALL", Toast. LENGTH_SHORT).show(); Cursor c = (Cursor) getItem(pos); Intent I = new Intent(Intent.

ACTION_CALL); String phoneNumber = c. GetString(WaddleAddressBook. DATA_ID); i.

SetData(Uri. WithAppendedPath(ContactsContract.CommonDataKinds.Phone. CONTENT_URI, phoneNumber)); context.

StartActivity(i); } }).

Actually I can't understand how to change my code with yours so I can get the things to work. – Bombastic Aug 10 at 8:57 In your activity, register the gesture detector. Then fetch your relative layout with the buttons in it and in there attach the click listeners on each of your buttons.

– Ali Aug 10 at 9:31.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions