Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8156733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:03:06+00:00 2026-06-06T17:03:06+00:00

I have a requirement to show an EditText at 45 degree angled to horizontal

  • 0

I have a requirement to show an EditText at 45 degree angled to horizontal axis.So I used this code to do this

EditText editText = (EditText) findViewById(R.id.edit_text);
editText.setText("Hello");
Animation anim = new RotateAnimation(0.0f, -45.0f, 190, 90);
anim.setFillAfter(true);
editText.setAnimation(anim);

It also shows the EditText as per my requirement. But problem arises when I started typing some text in it.

Screen Shot

As you can see the screen shot, some places of the edittext are not showing the text and at the middle portion of the edittext is only displaying the text.

The Hello which is in the left corner of the edittext is just becase of, I set that using setText()

Please help me how to create an edittext obliquely so that I can type properly in it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T17:03:08+00:00Added an answer on June 6, 2026 at 5:03 pm

    After a long R&D, I succeed in solving this,

    public class CustomEditText extends EditText {
    
    private Animation rotateAnim;
    public CustomEditText(Context context) {
            super(context);
    }
    
    public CustomEditText(Context context, AttributeSet attrs){
        super(context, attrs);
    }
    
    private void createAnim(Canvas canvas) {
            rotateAnim = new RotateAnimation(0, -45, 250, 50);
            rotateAnim.setRepeatCount(Animation.INFINITE);
            startAnimation(rotateAnim);
    }
    
    @Override
    protected void onDraw(Canvas canvas) {
            super.onDraw(canvas);
            // creates the animation the first time
            if (rotateAnim == null) {
                    createAnim(canvas);
            }
    
    }
    }
    

    My new working screen shot

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a requirement that I need to show my records in a gridview
I have a requirement where after the login, i need to show a tabbar
While developing my WordPress application i have a requirement where i need to show
To fullfill a requirement I have to show a tooltip manually for 30 seconds.
I have requirement to disable copy/paste/cut operations on a textbox. For this purpose I
I have a requirement, wherein i need to show a wait message while an
I have a requirement for a Tree grid or Tree list control. This is
i'm working on an attendance program and i have this requirement to be able
I have one requirement to show data in using SQL query only. Table name:
I have a requirement to show how many visitors visit a profile in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.