• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps RecyclerView Behavior on Swipe issue.

Really?, Can nobody out there answer this? I've included a video capture of the issue for those that just don't get what I'm after. After swiping the button (which I've limited the dX so that it will only swipe so far) with the finger down, Recyclerview animates returning the button (because the swipe is never actually complete) to the position of the button edge. It's a bounce effect that just doesn't look professional to me. I've used, in the past, the SwipeReveal library and it does the same thing without the bouncing effect. Just want to know how to intercept this behavior. There is no override that I can find in the RecyclerView class.

Attachments

ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy

signin.java

Java:
package com.example.library;

import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Patterns;
import android.view.View;
import android.view.WindowManager;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;

import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FirebaseAuth;

public class signin extends AppCompatActivity {

    TextView regsi, sifpwd;
    ImageView sib;
    EditText siema, sipwd;
    FirebaseAuth firebaseAuth;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_signin);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);

        regsi = findViewById(R.id.regsi);
        sifpwd = findViewById(R.id.sifpwd);
        sib = findViewById(R.id.sib);
        siema = findViewById(R.id.siem);
        sipwd = findViewById(R.id.sipwd);
        firebaseAuth = FirebaseAuth.getInstance();

        regsi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if(!signin.this.isFinishing()){
                    startActivity(new Intent(signin.this, signup.class));
                }
            }
        });


        sib.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                String siem = siema.getText().toString().trim();
                String sip = sipwd.getText().toString().trim();

                if (TextUtils.isEmpty(siem) ) {
                    siema.setError("Email is Required");
                    return;
                }
                if (!Patterns.EMAIL_ADDRESS.matcher(siem).matches()){
                    siema.setError("Email is not in format");
                    return;
                }
                if(TextUtils.isEmpty(sip)){
                    sipwd.setError("Confirm Password is Required");
                    return;
                }
                if (sip.length() < 8){
                    sipwd.setError("Password is Required minimum 8 characters");
                    return;
                }

                if (firebaseAuth.getCurrentUser() == null){
                    Toast.makeText(signin.this, "User is not registered", Toast.LENGTH_SHORT).show();
                    startActivity(new Intent(getApplicationContext(), signup.class));
                }

                firebaseAuth.signInWithEmailAndPassword(siem, sip).addOnCompleteListener(new OnCompleteListener<AuthResult>() {
                    @Override
                    public void onComplete(@NonNull Task<AuthResult> task) {
                        if (task.isSuccessful()){
                            Toast.makeText(signin.this, "User logged in successfully", Toast.LENGTH_SHORT).show();
                            startActivity(new Intent(getApplicationContext(),load.class));
                        }
                        else {
                            Toast.makeText(signin.this, "User login unsuccessful"+ task.getException().getMessage(), Toast.LENGTH_SHORT).show();
                        }
                    }
                });

            }
        });

        sifpwd.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                EditText resetEmail = new EditText(view.getContext());
                AlertDialog.Builder passwordResetDialog = new AlertDialog.Builder(view.getContext());
                passwordResetDialog.setTitle("Reset Password?");
                passwordResetDialog.setMessage("Enter Your Email to Received Reset Link:");
                passwordResetDialog.setView(resetEmail);

                passwordResetDialog.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialogInterface, int i) {
                        String mail = resetEmail.getText().toString();
                        firebaseAuth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() {
                            @Override
                            public void onSuccess(Void aVoid) {
                                Toast.makeText(signin.this, "Reset mail sent to you", Toast.LENGTH_SHORT).show();
                            }
                        }).addOnFailureListener(new OnFailureListener() {
                            @Override
                            public void onFailure(@NonNull Exception e) {
                                Toast.makeText(signin.this, "Error has been occur"+ e.getMessage(), Toast.LENGTH_SHORT).show();
                            }
                        });

                    }
                });
                passwordResetDialog.setNegativeButton("No", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialogInterface, int i) {

                    }
                });

                passwordResetDialog.create().show();
            }
        });
    }
}


[startActivity(new Intent(signin.this, signup.class));] this not working please help. I checked all the resolve mechanisms throughout the internet. Error is shown below.

W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@71eb264
I/PhoneWindow: initSystemUIColor
I/chatty: uid=10220(com.example.library) identical 2 lines
D/Surface: Surface::connect(this=0x724b648000,api=1)
D/Surface: Surface::setBufferCount(this=0x724b648000,bufferCount=3)
D/Surface: Surface::allocateBuffers(this=0x724b648000)
D/Surface: Surface::disconnect(this=0x723dca3000,api=1)


Please help me to solve this as soon as possible. I am a basic developer in android and a starter. please when you are saying a solving method please contain it with steps.

Spyware on phone?

So this same thing is happening to my A71 5g. It started Feb 4, 2022. I factory reset and canceled the number and got a new I phone as of February11. I was then using the phone perfectly as just an internet gaming console. I informed a person I thought was responsible yesterday and boom, 11 new apps coming from Google workspace and samsung account were downloaded while I slept through the MDE services framework (a remote access granted through Google for workplace monitoring). Problem is this is a personal phone. I lost my job on the 14th due to a contract breach of confidentiality agreement (because of this happening). Now, my phone is an iPhone and hasn't had an issue, but how would I go about getting the person responsible information from Google Workspace without an account? I know who they are, but want direct evidence to supply the Colorado Bureau of Investigstion. Also, I have their breakpad customer ID but would like as much evidence as possible as I lost my job, girlfriend, and stupidly almost committed suicide because no one believed me and was calling me paranoid and delusional. I even am going to a mental health facility tomorrow for further help.

Best Keyboard feature Google offers! - Gboard

I have been using Swiftkey keyboard for many years & very much satisfied with it.
I have installed Gboard 2 days ago for a change & find it as good as Swift key & if any thing, better in certain things.
1. This has a large number of very nice themes to choose from.
2. Prediction is very good after a bit of a training. It quickly learns our writing patterns. After 2 days, I find I hardly need to type a word in full.
3. Selecting the text & editing is easier.
4. Voice typing is 100% accurate particularly in Telugu, our native language. It's time consuming to type in Telugu but the excellent voice typing makes it very easy & convenient.
5. Yet another way of typing is by handwriting. This method also is quite accurate in at least 70% although I did not find the need for it.
6. Can delete typed words or sentences by swiping towards the left on back space key. Comes in handy if you are not satisfied with what you have typed just now.
7. One can get important symbols by tapping on the shift key if the number row is set to be displayed permanently. The number row is replaced by the symbols when the shift key is touched. One can also get these by long pressing on the stop key.

Would you use any app instead Google keyboard? - Google Keyboard

I have been using Swiftkey keyboard for many years & very much satisfied with it.
I have installed Gboard 2 days ago for a change & find it as good as Swift key & if any thing, better in certain things.
  • This has a large number of very nice themes to choose from.
  • Prediction is very good after a bit of a training. It quickly learns our writing patterns. After 2 days, I find I hardly need to type a word in full.
  • Selecting the text & editing is easier.
  • Voice typing is 100% accurate particularly in Telugu, our native language. It's time consuming to type in Telugu but the excellent voice typing makes it very easy & convenient.
  • Yet another way of typing is by handwriting. This method also is quite accurate in at least 70% although I did not find the need for it.
  • Can delete typed words or sentences by swiping towards the left on back space key. Comes in handy if you are not satisfied with what you have typed just now.
  • One can get important symbols by tapping on the shift key if the number row is set to be displayed permanently. The number row is replaced by the symbols when the shift key is touched. One can also get these by long pressing on the stop key.

I don't get it - Google Keyboard

I use the search function to search the meaning of words somewhat like a dictionary.
Among other issues raised above, I find word prediction to be pretty accurate after training for a couple of days.
Swipe function is good too. At least one of the 3 suggestions tallies.
What I find very accurate & useful is voice typing, particularly in our native Indian language Telugu. It's difficult to type in this language but very easy to voice type even long sentences.

S7 Headphone Issue? Only Sound In One Ear.

Hello folks i had the same problem suddenly just b4 yesterday and I tried everything to fix it with no luck so i decided it was a hardware issue . I took a sewing needle and started playing with the clips inside the headphone jack with no luck either for 2 days and today I found an xray image of the s7 edge and got an idea since the right channel doesnt work the problem must be either the right ear clip or the right ear ground ( the second and third clips of the jack ) i took the needle and with only one magic gentle bend outwardly to the second clip from the left side as phone faces you everything came back to work i will attach the image and hope this helps you
View attachment 116789 View attachment 116790 I

Sorry to dig up an old thread but thanks for this !
Usually my headphones become loose and I clean the port and remove any lint.
This time, my right headphone was working erratically. I tried cleaning up with a toothpick, with cotton and alcool, nothing worked.
Then I tried your method, slightly bent the clips outwards, and my right headphone is now working all the time !

Filter

Back
Top Bottom