Git Product home page Git Product logo

Comments (7)

mgleonsc avatar mgleonsc commented on May 18, 2024 1

You can download the complete example from:
http://cf.lvps92-51-151-239.dedicated.hosteurope.de/downloads/ApplicationTest.tar.gz

the problem is when shows and hides the keyboard, the RichPathView not resizes however the ImageView adjusts size

from richpath.

tarek360 avatar tarek360 commented on May 18, 2024

Hi @mgleonsc
I have tried it using your XML code, but I can't reach to the behavior in the Gif, could you attach a full sample code, please?

from richpath.

mgleonsc avatar mgleonsc commented on May 18, 2024

<ScrollView
        android:layout_width="368dp"
        android:layout_height="495dp"
        android:fillViewport="true" tools:layout_editor_absoluteY="8dp" tools:layout_editor_absoluteX="8dp">
    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">
        <LinearLayout
                android:id="@+id/al_area_sp"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1"
                android:orientation="vertical"
                android:paddingTop="15dp"
                android:paddingLeft="10dp"
                android:paddingRight="10dp"
                android:paddingBottom="15dp">
            <android.support.v7.widget.AppCompatTextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="-3dp"
                    android:text="tarek360/RichPath"
                    android:gravity="center"
                    android:layout_gravity="center"
                    android:textSize="36sp"
                    fontPath="fonts/superficial-medium.otf"/>
            <android.support.v7.widget.AppCompatTextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="RichPath"
                    android:gravity="center"
                    android:layout_gravity="center"
                    android:textSize="12sp"
                    fontPath="fonts/superficial-medium.otf"/>
            <com.richpath.RichPathView
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    app:vector="@drawable/vector_ag"
                    android:layout_margin="10dp"/>
            <android.support.v7.widget.AppCompatTextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Rich Android Path"
                    android:gravity="center"
                    android:layout_marginTop="4dp"
                    android:layout_gravity="center"
                    android:textSize="24sp"
                    fonts="fonts/Myriad-Pro-Semibold_31650.ttf"/>
        </LinearLayout>
        <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingTop="10dp"
                android:paddingLeft="20dp"
                android:paddingRight="20dp">
            <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerHorizontal="true"
                    android:layout_centerVertical="true"
                    android:orientation="vertical">
                <android.support.v7.widget.AppCompatEditText
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:hint="text1"
                        android:lines="1"
                        android:maxLines="1"/>

                <android.support.v7.widget.AppCompatEditText
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:hint="text1"
                        android:lines="1"
                        android:maxLines="1"/>

                <android.support.v7.widget.AppCompatEditText
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:hint="text1"
                        android:lines="1"
                        android:maxLines="1"/>

                <Button
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="BTN"
                        android:id="@+id/btn_login"
                        android:gravity="center"
                        android:textColor="#ffffff"
                        android:layout_marginTop="20dp"
                        android:layout_marginBottom="20dp"/>
            </LinearLayout>
        </RelativeLayout>
    </LinearLayout>
</ScrollView>

the problem is when shows and hides the keyboard

from richpath.

tarek360 avatar tarek360 commented on May 18, 2024

I got it, but I think that is according to your layout attributes, to prove that remove your RichPathView and replace it with an ImageView

            <ImageView
                android:id="@+id/logo"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_margin="10dp"
                android:layout_weight="1"
                android:src="@drawable/vector_ag"/>

and you will get the same behavior, waiting for your feedback!

from richpath.

mgleonsc avatar mgleonsc commented on May 18, 2024

replace RichPathView by ImageView, with ImageView works, but not RichPathView.

from richpath.

tarek360 avatar tarek360 commented on May 18, 2024

@mgleonsc Thanks, I will fix it as soon as possible.

from richpath.

BarbaRoja avatar BarbaRoja commented on May 18, 2024

A work around is to use constraint view. That way you put your image percentage ways on screen.
This code is a life saver by the way

from richpath.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.