I'm curious to implement a balloon tip to show info of different UI elements in an activity. How can I achieve this? On some little effort put to this (correct me if I'm wrong please) using something like canvas rectF???
It sounds like you're looking to create tooltip text. This isn't built-in to the View classes in android, so you'll have to create them or use a library like GreenDroid. This has already been addressed, see the following:
android how to make Tooltip for TextView
Android "Tooltip"
Related
I'm trying to make an app and I have made a blueprint for a specific activity, but I don't know how to implement it. The layout contains few buttons at the top of the activity, and each button features some information, which is displayed inside the view. The view which needs to be updated is present under the buttons. I don't want the activity to be changed, instead it should update the contents of the View, which is different for each category/button.
By doing some research I have realised that the "Tab Layout" can be used to achieve my requirements, but I don't want the tabs and I need some stylish buttons as a replacement.
I know I'm not the best at describing, so I have looked upon Dribble and found one design which is 100% similar to blueprint.
I want to achieve this using XML and Java using Android Studio! Every suggestion will be a great support foy my app.
Thanks a lot.
As far as I know, you could achieve that by using fragments (which is the same concept you would have used on TabLayout). I don't really know how much knowleadge you have on Android, but if you know what a Fragment is, it should be easy for you to recreate the idea.
You have 3 buttons for 3 different fragments, so you must design every fragment by separate and change it depending the button you click.
I'm not even sure if it is called animation but I couldn't find it anywhere.
In my application, I want to give a star to the users once they finish some activity.
I want to make some animation that will look like this:
https://dribbble.com/shots/2795344-Jump-jump
How can I do something like this on android?
I see different applications in my device that have cool animations and cant figure out how it is done.
Of course, it doesn't have to be that star but anything that will give the same feeling.
Thank you
You can use Lottie to have sucn an amazing animation ,with just few lines of code.
For example have a look here -> https://lottiefiles.com/search?q=star&category=animations
Let me make you understand how to get started with it....
(1) Add dependency for Lottie
implementation 'com.airbnb.android:lottie:$lottieVersion'
(2) Add lottie view in layout
(3) Download animation and use it...
Reference Blog
Feel free to ask if something is unclear.
You can achieve this by using the Motion Layout
For more information you can check the official Motion Layout documentation
Im kind of new to android programming with java, and theres a small thing which i want to clarify, i have no idea what this is called either and the Question topic name might not match to what im asking here so sorry about that :P
I want to dynamically create panels which will get filled with a text, and a button when the user clicks the small plus sign (ref image)
Can anyone point me to a tutorial becouse i dont know what this is called, and any small examples would help as well
]1
For something really simple based off your design, I might recommend using a ListView as the learning curve is easier. However, the RecyclerView is optimized for performance and can be easier to build a lot more crazy scrollable layouts such as Instagram.
Recyclerview Tutorial in Kotlin by Ray Wanderlich -
https://www.raywenderlich.com/170075/android-recyclerview-tutorial-kotlin
Android Documentation - Recyclerview -
https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html
https://developer.android.com/guide/topics/ui/layout/recyclerview.html
Android Documentation - Listview -
https://developer.android.com/reference/android/widget/ListView.html
https://developer.android.com/guide/topics/ui/layout/listview.html
Vogell ListView Tutorial -
http://www.vogella.com/tutorials/AndroidListView/article.html
I would like to know what the Android implementation is of this type of scrolling that you see in the Yahoo Weather App. Here is a video example:
http://www.youtube.com/watch?v=a-q_yetkpik
Any examples or ideas on how to implement this would sincerely help this poor lost soul!
Thank you
use that library https://github.com/xgc1986/ParallaxPagerLibrary, it's very easy to use, and it worked for me
demo
You should separate two different things here:
The horizontal scrolling
As you swipe your way through the viewpager, the background moves slower than the content does.
This effect can be achieved with the ParallaxPagerLibrary
The vertical scrolling
As you swipe up, the background image blurs away, making the "swiped up" content more visible to the user. This post explains it all and also provides a library.
But if you want it even better, someone wrote a simple "clone" of this weather app https://github.com/MoshDev/LikeYahooWeather
They customized ViewPager, the widget is called WeatherViewPager that it's unfortunately unavailable, looks like a ViewPager with a sort of parallax
You may take a look at https://play.google.com/store/apps/details?id=com.desarrollodroide.repos
it's a collection of usable opensource libraries
e.g. Utils->Paralloid or Utils->ParallaxScroll
It's there a way to make a vertical slider on Android?, for example, I want the action bar to be dragged all the way from top to bottom, to show a fragment, pretty much like the notification bar on Android.
Thank you very much
There is always a way ;), but it would take some custom code to do it. I don't really have to much time to write something out for you, but I did find something that may be useful to you. These guys open sourced a slide from bottom to top view like is used in Google Play Music. You can take a look and maybe modify it to slide from top to bottom.
https://github.com/umano/AndroidSlidingUpPanel
Good Luck
There used to be a slidingdrawer view as part of the framework but it's now deprecated. There is however a nice implementation of something similar on github that you can take a look at here:
https://github.com/umano/AndroidSlidingUpPanel
Umano's Drawer is dated and limited. You should use a more up-to-date library like https://github.com/drxeno02/androidprojects-book2-slidingdrawer.
This library has no limitations such as only having two children. You can have as many children as you want, and you can set offsets and design your drawer to look anyway you want.