Show tooltip with skip and finish button - android

I want to show tooltip window with two buttons skip and next on Appbar layout-tabs and BottomNavigation-menuitems. tooltip window should be displayed on semitransparent overlay. Background of the semitransparent overlay is Appbar layout-tabs and BottomNavigation-menuitems. If next is pressed the current tooltip should disappear and control moves to the next tabs and so on.How to achieve this

Related

Bottom Sheet Behaviour isn't hidden when I use below code

Initially the bottom sheet is remains hidden, when I click on some place then bottom sheet should appear and when I click clear icon then the bottom sheet should be hidden actual manner, which is should be on initial state.
Initial App launch code:
bottomSheetInfoBehavior.setHideable(true);
bottomSheetInfoBehavior.setState(BottomSheetBehavior.STATE_HIDDEN);
After clicking on some place then this is the code which pops up the bottom sheet:
bottomSheetInfoBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
Finally when the clear icon is clicked then this the code that is hiding the bottom sheet (NOT WORKING):
bottomSheetInfoBehavior.setHideable(true);
bottomSheetInfoBehavior.setState(BottomSheetBehavior.STATE_HIDDEN);
Expected Result is:
When the clear icon is clicked then the bottom sheet should not appear in the screen, that should be disabled..! and should not visible in screen..!
You should use Bottom sheet's dismiss method in clear button.
And
use show method to show the BottomSheet dialog.
Keep the reference of BottomSheetDialog and use is accordingly.
From the code you have shared u are setting the state/behaviour of the BottomSheet which will be taken care by these method's automatically.
Ref:
BottomSheetDialog

how to change activity transparency dynamically

I want to change the transparency of activity dynamically when I move the root element/view. How to do that?. I'm creating a module for which when user slide down the whole UI down to half of the screen vertically to finish the activity. But by default when the user slides down the layout default color white of activity is shown and when I set its theme to transparent previous activity is shown. I want to change the opacity of activity window dynamically when user slides down.
use this where you need:
Window window = this.getWindow();
window.setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));

when we click on icon/image of any contact, one view slide up from bottom of screen in Lollipop Contact in call details screen?

when we click on icon/image of any contact, By default, this view shows full screen.
how will implement following case
1.View a separate activity with transparent half when swipe towards the top it is overlay up-to action bar.
2.swipe down the screen will gone look like lollipop 5.1.1 call details view
Case 1 : For transparent Activity try this link. You just need to add Theme.Transparent and color code #0000000 in your styles.xml
Case 2 : Bottom to Top Activity transition use this link for more detail. You can do Top to Bottom transition on back pressed button.

Android Home screen design with tiles type navigation instead of navigation drawer

I have an app with home page showing a Google map with current location.
So according to the sketch in my home page i have a image icon or button type in my first screen and when i click on that icon or button a tile type opens up where there will multiple activities you can go.
Example if you click on 1 then it goes to one activity to do some task and if you click on 2 then it goes to another activity and similarly for 3 ,4 ,5 ,6 and whenever i click on any of the tiles it should go to particular activity.
I tried searching lot how to achieve this task over Google and thought some experts would me help me out with this in here.
And another point is home screen should not change if you click on icon or button in first image. As i mention in image both screen will be home page with map showing current location.
You can make it yourself. Set a RelativeLayout (in which there are six buttons) in the lower-right corner, and set it's visibility to View.GONE, then set another view in the lower-right corner as the button to open the expanded menu. When click on it, set the button to View.GONE and the RelativeLayout View.VISIBLE.
Hope it helps.

how to place overlapped images either on canvas or layout

My requirment is there will be a india map and some imageview or buttons will be there on top of that map.when i drag and drop the button on that top of map color of some areas has to change ..
Please let me know how to do that.
If u dont want drag and drop option u can place some invisible imageviews on the top when ever user press the top buttons u can make them visible.
Like suppose if want to change the are of andra pradesh .place red color andhra pradesh on the top of white andrha pradesh and when ever u click top button make its status as visible.

Categories

Resources