User Profile layout in Recyclerview Android - android

I don't about this type of Recyclerview but I can explain here.
My question is Recyclerviewlist in implements like All profile image layout showing and all profile layout show half view & last profile layout showing full view, but I can't find out this type of any hint in android.
I don't have any code but I have imaged this type of layout implementation.
Attach image layout.
So, Please give me some hint or idea, Thank you.

this is not recyclerview this is simple view and first 3 images from arraylist is shown in these 3 images and after this there would be shows a plus button when user click on plus button then the full view is opened in recyclerview

Related

Showing Buttons in list view

I want to create android app about an article that contains 30 chapters so i am to make 30 buttons every button will contain different text stories so please tell me how can i show these 30 buttons in list view instead of showing in normal linear layout of vertical orientation please help me out?
Here is simple tutorial containing listview with Button. On click of button, based on position, you can show content:
Listview Tutorial
You can use Custom listview / recycler view Please take look into this.

Display text window over top of list view

I have a list view with 10 or so items. Each has a corresponding text file. I can right now determine when and which element is pressed. My issue is being able to display the text file overtop of the list view. I tried putting in a Text view and making it visable when pressed but it crashes the app. How can I on press of a list view element have a pop up text view open without starting a new intent.
Thank you
Use a dialog with a TextView!
http://developer.android.com/guide/topics/ui/dialogs.html
Good luck!

How to add listview in an image button?

I wanted to add a listview in an image button in such a way that when i clicked the button the information which is present in the listview should display in the next page. Could anyone help me with this??
see this is how it should be if i click on any of these buttons it has to list the information and that to be displayed in the next activity not in the same
You cannot add view to another view. You can to viewGroup, but not to view. So i would suggest you to take a screenshot of your listview (which you will have to create it first, or you should figure something else out) and then set that image into imageButton.
you can use tabhost to create tabs with the images. Plz take a look at the following tutorials:
Tutorial 1
Tutorial 2
Tutorial 3
Inside each tab you can place the custom list view.

Create Custom Grid View to show selected image in android

I am working on Grid View, where I am in a need to click and select an image by showing a small image over it. As you can see in the image attached, the green mark over the images shows they are selected. This is not possible with Normal Grid view. I have tried this.
Please suggest me.
Guys from google have already done everything for you to solve your problem
so, you got to use ActionMode in your Activity and fill up your gridView.
http://developer.android.com/guide/topics/ui/menus.html#context-menu
so when you entering ActionMode just set your gridView object in ChoiceMode-> Multiple.
in your code:
GridView gv=new GridView(this) or this.findViewById(R.id.ma_grid_view);
GridAdapter adapter...
gv.setAdapter(adapter)
beginActionMode(); // this might be used by a long press or by button tam in action bar...
public void beginActionMode(){
gv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
}
kinda like this, read the article i'v send you
spend some houres and you'll reach it...
thanks.
for that you have to create custom adapter and make layout for your grid item,in layout use relative layout or framelayout.
using these you can overlap your images
here are some link for your help
custom adapter
cusotm adapter
custom adapter for gridview in android

Android List view

While working over listView I have came across a trouble situation.
Actually I am having a image view defined in layout that is to be inflated,
And I am doing so by adapter with my own bean class XYZ.
Now what I want is I'm checking the variable pic of the bean.
If no image there ,the image view is to be hidden or gone,
When the "pic" is available it should show the list,
But the ListView getView is called everytime I scroll,,, The image appear and disappear abruptly on list scroll,
Please help me put of the situation.
I want ImageView to be displayed when it is available. And hide it when pic tag is " " (empty)
You should create a transparent image and put it in dise the drawable folder
add a condition in side the getView method
if (tag==----)
ImageView.setImageDrawable(R.Id.TransparentImage)
else
ImageView.setImageDrawable(R.Id.AvailablkeImage)
it is appear like as image is hidden in list view.
I hope this is help.

Categories

Resources