Hi I need simple help from an android programmers
I've seen Facebook Messenger and noticed the chat icon that stays in the screen when you open any other application .
I want to do one like her but it's as simple, When the user clicks on it, it shows some other icons such as Float action button.
Thank you
You can start customizing this library, which aims to provide a similar experience to the Facebook bubble chat.
You can replace the drawing code with yours, or use an XML to inflate a view based on your needs.
Related
I am trying to learn more about animation in android app development
https://www.youtube.com/watch?v=SoeUAEHbZcQ << 1:26
I want to do something similar where if a button is pressed an animated hint will show. How can I do this. what topics should I look into
Checkout this link which shows a example of how to define animations in XML, load them and execute on views. Also search for ObjectAnimator which lets you perform animations on the basis of view properties (eg. alpha/transparency of view). GL!
I saw some same topic here but can not find the anwser so I create my ask question.
I am a newbie in android and I am learning to build a layout by my self, I see facebook app and wonder how they layout UI with friend list behind main content. And when you click toggle friends main content will slide to left side and friends list show up.I try to use navigation drawer and viewpager but can not achive. I wrong something or it must use by other technique. Anyone can give some idea how to do that.
After two days, finally i found the answer by use a great this SlidingMenu.
https://github.com/jfeinstein10/SlidingMenu
Android Newbie here! I spent all yesterday trying to implement a simple dialog in my android app. I realised there is no easy way out. I mean all i just wanted to show to user is a simple choice between importing a video into the app from the gallery or recording a live video. My Parent UI is already consisting of two fragments in a split-pane style(Details on the left, gridview on the right). Now i want to show the options for importing a video as a dialog. Turns out i have to create another fragment(DialogFragment), give the fragment a UI(ListView), create UI for the list items, create adapters for my list, override getView method for my adapter with custom logic. is there no shortcut to this? While this might make me sound lazy (which i'm not btw cos i love coding), what if i want to create 4 additional dialogs, do i have to do this everytime? is there no easy way out?
btw I'm targeting SDK 11 to 19 devices.
Any help will be very much appreciated.
Have you had a look at the AlertDialog.Builder?
You could use this to build your dialog and then set your click handlers on setPositiveButton and setNegativeButton methods if you only want two options.
It was added at API level 1.
I want to make a Button or ImageView or something like that to launch an app. At some point i want to make several to keep adding shortcuts like the Samsung desk clock app.
At the moment ive set up some blank Button's in which i want to be able to click, choose the app i want then the app create the icon and name to the button (like above) and it launch the intent when i click it afterwards.
Any ideas, examples etc are brilliant ive got brain ache searching for a way to do this :/
Check out this post: https://stackoverflow.com/a/7107138/1337412
You're basically trying to create a custom "launcher app" if you search StackOverflow and Google, you should be able to find plenty of examples of launcher apps.
I'm developing an android app that has a bunch of screens (activities) that are supposed to have "continue" and "back" buttons at the top. Can you tell me the right pattern for implementing this? I've seen some iPhone apps that have this but Android apps usually don't (I think partly because the back button is part of the phone).
I found a post online about an Activity class that has "sub activities" which kind of seems like what I want to do, but I'm wondering if there's a simpler solution or pattern for creating flows like this (in which several activities are linked with continue/back buttons).
You answered part of it yourself. There shouldn't generally be a software back button because android has a hardware back button. As for a continue button, that's extremely context dependant so it would probably be written in software based on the context.
No that doesn't sound like what you want. You're probably thinking of an activity group and from the very vague description of your design, you don't want those. There's no "simpler" solution or pattern to create flows like this because this is the exact default android behaviour.
Just start a new activity in your "continue" button, and the back button will finish that activity.
I'm developing an android app that has a bunch of screens (activities) that are supposed to have "continue" and "back" buttons at the top.
If you want to implement a wizard, use buttons at the bottom and do it as a single activity, perhaps using a ViewFlipper for the changing contents.
If this is not logically a wizard, just allow the BACK button to handle "back", and tapping on something meaningful to go forward, as a set of regular activities, like a regular Android application would.
In other words, please follow platform navigation conventions.
can you just open a new activity as per usual android development and make the back button call finish() you can set your theme to make the activity animate out like the iphone when finish is called.