Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a listview. And I need to make something very easy to acces on the listview. So I want to make something like the Samsung contact list.
Can somebody help me where I need to start? (Maybe a code example or some explanation where to start?)
It is just that I want to make a listview with this kind of swipe mechanic. I don't want to remove a row or add a row. I just want a event behind it to do stuff when swiped. And the animation would be cool if it was something like that.
Follow the libraries on github
listview animations
swipe to dismiss
Roman nurik's Android-SwipeToDismiss
This 'SwipeToDismissUndoList' code might help you.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I want to design that layout , like my photo , there are three buttons , can let me show different function in screen , I don't know how use fragment to
achieve my goals?
Does anyone any suggestion can help me ?
Thanks.
Edit : I have already solved.
Activities consist of different layouts.Only one layout can run in one activity.But Fragments can be used in this respect.You need to add frame layout at the places where you need different layout.Fragments have similar life cycle as compare to that of the activities.You will need to create fragments and add it in the activity through its java file.
Hope this helps you.Reply back for more details.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a ListView that contains data from data base! I want to implement search view for this that items has searched elements should be shown! I tried more and saw examples but they was hard for me to understand! any way? easy please!
This logic should help : -
1) get the search bar on your ActionBar
2) Add a SearchView.OnQueryTextListener() to your search bar.
3) Override the onQueryTextChange() method and perform a search function on your DB against the string entered.
4) Once you have the data, pass it to the same function you used to structure your ListView in the beginning so as to form an adapter which can be set to your listview.
P.s. be better if you posted your code for us to help out. The above logic worked for me....
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I try to achieve an View where i have multiple "cards" behind each other and where i could move and fling the Views away and the next "Page" shows up.
It Should be like in this Screenshot:
I tried using ViewPager, but that just allows me to "Scroll" horizontal and the way i try to put the View behind each Other ( margin etc. ) doesn´t really look good.
Then i tried to use a StackView, but this doesn´t work as expected, especially the move of the items.
Is there any best practice to achieve this with an ViewPager, or do i have to build something my own?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
In my application i have requirement to implement tag functionality, like we tag particular user in stackoverflow/facebook.
For Example if i press #a... on that time i will get list of suggested items for that character from server,and i will show a list of items , selecting any item from list i need to display that on edit text, with some highlighted portion and cross shape on the button.
For example while asking questions on stack overflow site, if i write ruby-on-rails and select ruby-on-rails from the suggested tag than it will shown as below
And when i press back press or cross button of that tagged button, entire text should be disappear,
I need to implement same functionality in my application, the only difference is that i will write anchor tag like #ruby-on-rails than will get suggestions of keyword from server.
Any guide or suggestion is appriciated
Thanks,
Aamir
Try this https://github.com/ApmeM/android-flowlayout Using this FlowLayout you can create token views like you want.
Have a look on this SO answer by Romain Guy https://stackoverflow.com/a/4474533/3020568
You can check this links also
https://github.com/splitwise/TokenAutoComplete
http://www.kpbird.com/2013/02/android-chips-edittext-token-edittext.html
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
i need to create a spinner that contains infinite integer values. Is it possible to do that? Do i have to use another component (another view) to make this?
Well, when the spinner is created, the android system would kill the application, because of the infinite entries - so, don't do that unless you have infinite RAM!
So it is not possible to display an infinite amount of values!
If you describe your problem more detailed, or what you want to get done with the spinner, we could try to find a way around.
just create an adapter which size (getCount() method) is Integer.MAX_VALUE, so if infinity is 2**32-1, then yes, you can do it, the easiest way is to extend BaseAdapter but you could also do it extending CursorAdapter but with a bit more effort