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 2 years ago.
Improve this question
I'm a little new to Android and want to build a note taking app.
I'm figuring out all the tiny little things, but can't seem to figure out this,how can I show my data in this manner. Please view image below.
Should I use Recycler view,card view for this? I mean what's the proper views I should be using ?
I need a bit of proper direction.
Any help is really appreciated.
Thank You.
Image
You need to add GridlayoutManager:
// this in Activity, getContext() in Fragment
recyclerView.setLayoutManager(new GridlayoutManager(this, 2));
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 1 year ago.
Improve this question
I'm writing an Android application in Android Studio on Java.
I know that there is android:focusable="false", but I have too many files for doing this with every tag in XML.
How can I prevent all of them from being focused? Or maybe there is some ways that I can do it easier?
The only way I could think of is creating BaseActivity and BaseFragment classes and in onCreate and onViewCreated recursively go through all the views and call setFocusable(false).
Here is an answer how to do it recursively:
Loop through all subviews of an Android view?
Also here I handled a case with a recursion myself. I have posted an answer:
Toolbar is hidden in nested PreferenceScreen
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 4 years ago.
Improve this question
How I can create this type of sweep animation using gesture or other method in android studing using java.
Effect: https://ibb.co/hKJjen
So for the swiping cards you'll have to use this library
https://github.com/flschweiger/SwipeStack
When user will touches/swipes the cards there will be a white dot which acts as a pointer just like how you'r attached example shows. Click the below link and you'll get the right code implementation for it!
http://android-er.blogspot.in/2015/05/android-custom-touch-view-with-callback.html
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I have to create a list of posts like facebook, so there is a white box centered with margins and inside the picture with the name and after the post content.
Now, my question is: What's the best way to do this? ListView, RecyclerView with custom layout or what?
Thank you.
Use RecyclerView with CardView. This is the best because:
Performance - The RecyclerView has good performance
UI - CardView will give you the look & feel you need
I suggest to walk through the attached link of implementing CardView. Note that this is also the newest solution in Android.
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'm trying to implement a listview which load data dynamically.
the problem is that when i call the notifyDataSetChanged() function it reload all my adapter.
Is there any way to avoid this behavior ?
It doesn't reload your adapter, but refreshes the view.
You can implement add/remove/replace methods in your adapter and invoke notifiyDataSetChanged once the work is done, so the listview will be updated.
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 9 years ago.
Improve this question
I need to make a listview like the pic shows, but in Java.
E.G. from Delphi Listview
I've tried to use JList but it didn't work quite right, I couldn't make columns, just rows. Could someone help me?
Try using JTable and do your own research for how to use JTable.