How to create some thing like gmail compose in android app - java

How I can create some thing like this? Has it any specific name or view? Like red cycle image in below link:

You can create that view using a ListView like its explained there: https://developer.android.com/training/material/lists-cards.html.
You can create the floating button using an oval shape with an image inside and set some elevation. Click here for more info How to create a floating action button (FAB) in android, using AppCompat v21?
Have a look at general Android Material Design Guidelines to get some additional insight for these kind of ui. https://developer.android.com/design/material/index.html

This can be useful for you. I made a "dummy" Gmail UI for show a material activity transition. https://github.com/coyarzun89/FabTransitionActivity

Related

how to use fragments to create an overlay effect for an add contact function when a button is pressed

I'm trying to create an overlay that is triggered when a button is pressed. This overlay is supposed to allow the user to add their contact and I was wondering how can I use fragments to get this effect like you can see in this mockup.
I am in a dilemna over using fragments is the right choice. My reasoning being that I only need to have it do one task that is adding contacts, and thus I do not need a whole activity.
This is what I have on the main activity right now
I would really appreciate any help on understanding how to make this work.
You can use a DialogFragment.
It behaves like a normal Fragment for the most part. Here is a guide for a basic implementation https://guides.codepath.com/android/using-dialogfragment
They appear automatically in the center of the screen. To get it a bit lower like in your mockup you can change where it is in the window. Here is an answer showing such Position of DialogFragment in Android

Parse different data through the activity in the same activity

I am building an E-Commerce App and I have an activity showing image slider, description and related items, and in image slider I have put an arrow to change the product on the arrow click I want to be in the same activity but data should be different.How should I do that need your help guys.
You should try doing it by urself in one of the many ways its possible to. Then we could provide some help with your idea or show you better solution. I think you are looking for RecyclerView (https://developer.android.com/guide/topics/ui/layout/recyclerview). It lets you show some similar views but with different data inside. Also as an item inside RecyclerView you can try CardView.
Using only RecyclerView you can also use:
https://stackoverflow.com/a/46084182/8713068
You can also search for a library that has everything you want inside already implemented. For example the first library that came out after i typed it in google : https://github.com/Ramotion/cardslider-android.

How to Apply Custom Filters in a Camera [Surfaceview Preview]...?

Guys i am developing Camera Application and this is my first android Application.
below i am Adding My App Screenshot for what i want.
First View :
Here , after Clicking on a Top-Right Corner Filter icon i want a below View.
Second View :
i don't know how can i get this type of a view. also how can i design this type of view into XML parts.
and i read more articles like how to Open a Multiple Surface-view Preview onto single screen but i did not get any much appreciate solution.
and Finally after selecting any of the Filter Preview i want a above Image type View.
means Selected Filter's is Preview apply onto Camera [Surfaceview Preview].
Please provide any type of Material link example.etc
guys please help me.any type of help will be appreciated..):
Thanks in advance
From the images, it's from a app called Geak Camera. Actually, I developed this app, and I used the GLSurfaceView not the surfaceview. And the app is not maintained now because I left that company. And I updated that app called "U camera".The scale animation was improved in "U camera".
All these manipulations can be performed with OpenCV. Download their basic Android example, and you can add your logic to onCameraFrame() callback.

Android Material Design: Create theme changer

I was wondering if it's possible to implement a theme changer function in the Material Design, in a case whereby the user can access a settings page and then select say, a night theme (darker components) or a light theme (lighter components). I suppose it will require me to programmatically change the primary colors etc within an onItemClick? I just need to know if this is possible for the material design as I can't seem to find a way to do it online. Would also be grand if someone could tell me briefly the logic to implement such a function.
It is possible. You can check my app source code which has this functionality, however I suggest you to create custom views and whenever the user selects a color or change the theme you could post an event to the view to changes its color/tinting accordingly.
Github

ImageView, selecting a certain part Android

My vision is this-- I have an image of a human body(like an anatomy chart), and I want the user to be able to click a certain part of it and be able to communicate the body part they have clicked on, as in translating it to text... I wonder if this could be possible, and how? Any sample code/redirection to a tutorial would be helpful, or maybe just a practical idea...
A very simple approach is just to add an ImageView to you layout.
Override onTouchEvent in the activity to capture touches and then translate the coordinates to texts.

Categories

Resources