Comments (7)
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.
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.
<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.
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.
replace RichPathView by ImageView, with ImageView works, but not RichPathView.
from richpath.
@mgleonsc Thanks, I will fix it as soon as possible.
from richpath.
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)
- PathEffect HOT 1
- Path added using addPath not visible HOT 1
- please tarek could you add the zoom to the richpath HOT 1
- [FIXED] if the vector not exist in first time but after some seconds the app will crash.
- [FIXED] the click listener on RichPath would be specific if the offset=0 in PathUtils.class because if you zoom * 14 and click in path it will handle the click of next path.
- app crash when load map svg HOT 1
- android.content.res.Resources$NotFoundException: Can't find ColorStateList from drawable HOT 2
- Load Svg from String HOT 2
- crash on load :did not set the measured dimension by calling setMeasuredDimension() HOT 1
- Unresolved reference: richPathView Kotlin HOT 1
- Would it be possible to retrieve the paths coordinates within a view? HOT 1
- Crash on Android 4.1 and 4.4 - Binary XML file line #94: Error inflating class com.richpath.RichPathView HOT 2
- Detecting which group is clicked HOT 3
- Double/Long click path listener HOT 2
- Flow animation HOT 4
- Stop animation
- Can we set vector drawable from server and then access the path attribute?
- Non-SDK usage causing RichPathView.setVectorDrawable to throw an exception when targeting API Level 31 HOT 1
- Richpath and RichpathView code
- Working with large size SVG images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from richpath.