title: Greeting Card Flip-View Animation
body: <p>I'm working on greeting card application and i need card flip-view type of View. i've added images for same.
  I've been through multiple flip-view like libraries and i found <a href="https://i.stack.imgur.com/dbsCQ.png" rel="nofollow noreferrer">android-flipview</a>
  more suitable for my requirement.
  I've made changes in this library to make it flip from left corner like greeting card. 
  i'm adding code and screenshot for same.</p>
  
  <p>But, it doesn't work like what i need.</p>
  
  <p>View_Dual_card.java File,I made Changes Like this:</p>
  
  <pre><code>public synchronized void buildTexture(FlipRenderer renderer, GL10 gl) {
          if (screenshot != null) {
              if (texture != null)
                  texture.destroy(gl);
              texture = Texture.createTexture(screenshot, renderer, gl);
              recycleScreenshot();
  
              topCard.setTexture(texture);
              bottomCard.setTexture(texture);
  
              final float viewHeight = texture.getContentHeight();
              final float viewWidth = texture.getContentWidth();
              final float textureHeight = texture.getHeight();
              final float textureWidth = texture.getWidth();
  
              if (orientationVertical) {
                  topCard.setCardVertices(new float[] { 0f, viewHeight, 0f, // top left
                          0f, viewHeight / 2.0f, 0f, // bottom left
                          viewWidth, viewHeight / 2f, 0f, // bottom right
                          viewWidth, viewHeight, 0f // top right
                  });
  
                  topCard.setTextureCoordinates(new float[] { 0f, 0f, 0f,
                          viewHeight / 2f / textureHeight,
                          viewWidth / textureWidth,
                          viewHeight / 2f / textureHeight,
                          viewWidth / textureWidth, 0f });
  
                  bottomCard.setCardVertices(new float[] { 0f, viewHeight / 2f,
                          0f, // top left
                          0f, 0f, 0f, // bottom left
                          viewWidth, 0f, 0f, // bottom right
                          viewWidth, viewHeight / 2f, 0f // top right
                          });
  
                  bottomCard.setTextureCoordinates(new float[] { 0f,
                          viewHeight / 2f / textureHeight, 0f,
                          viewHeight / textureHeight, viewWidth / textureWidth,
                          viewHeight / textureHeight, viewWidth / textureWidth,
                          viewHeight / 2f / textureHeight });
              } else {
                  topCard.setCardVertices(new float[] { 0f, viewHeight, 0f, // top left
                          0f, 0f, 0f, // bottom left
                          viewWidth /27f, 0f, 0f, // bottom right
                          viewWidth /27f, viewHeight, 0f // top right
                  });
  
                  topCard.setTextureCoordinates(new float[] { 0f, 0f, 0f,
                          viewHeight / textureHeight,
                          viewWidth / 27f / textureWidth,
                          viewHeight / textureHeight,
                          viewWidth / 27f / textureWidth, 0f });
  
                  bottomCard.setCardVertices(new float[] {0f,
                          viewHeight, 0f, // top left
                          0f, 0f, 0f, // bottom left
                          viewWidth, 0f, 0f, // bottom right
                          viewWidth, viewHeight, 0f // top right
                          });
  
                  bottomCard.setTextureCoordinates(new float[] {
                          viewWidth /27f / textureWidth, 0f,
                          viewWidth /27f / textureWidth,
                          viewHeight / textureHeight, viewWidth / textureWidth,
                          viewHeight / textureHeight, viewWidth / textureWidth,
                          0f });
              }
  
              checkError(gl);
          }
      }
  </code></pre>
  
  <p>What i want:</p>
  
  <p><img src="https://i.stack.imgur.com/dbsCQ.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/QEl9s.png" alt="enter image description here"><img src="https://i.stack.imgur.com/jWYm3.png" alt="enter image description here"></p>
  
  <p>What i'm getting:</p>
  
  <p><img src="https://i.stack.imgur.com/LIO7g.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/DX9mk.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/PC7dB.png" alt="enter image description here"></p>
  
  <p>thanks in advance.</p>