Android 4.2 Contacts ListView UI for own app? - android

I need to build an android app which is as similar as possible to the contacts app on my S4, but with other data in the list. Have the data as an ArrayList. I've googled a lot, but there seems to be no examples with the same looking or searchfield above. Is it possible and also legal to use the original contact list source with the sections and alphabetics index, where the letter is large displayed on scrolling? I'm using Android Studio and have used the template with tabs and swipe using fragments, which also should be supported, because of the detail view of the list items. What would be the most simple way to get what I need? Lots of thanks.

Related

Using a List with icons on an Android

I am coding an Android application in Xamarin and have a question about a List.
I am currently coding many TextView objects on screen with contact details.
This is not displaying how I wish it to and I am wanting to know the correct programming object to use that is the same as the Settings list on many Android devices.
This list is the list that has:
Wi-Fi
BlueTooth
Data Usage
etc
Each of these items has an icon and the items can be clicked on.
Is this called a List, a ListView or something else? Also, if possible, may I have a link to some example code on how to use this object?
Thanks in advance
It is called custom listview, you get a lot of tutorials if you search that:
For an example code, check this out.
http://www.vogella.com/tutorials/AndroidListView/article.html

Importing contacts and calendar events

I have searched over google and SO for answers before asking.
Things that you should know before answering:
I'm very new to working with android apps and making them.
I'm making an app that has multiple tabs.
All tabs are in the same class (should I make a separate one for each?).
There's a tab for contacts and another for events.
Questions:
1- How do I import contacts from the phone to my app?
I have looked and found topics about this:
- Working With Android Contacts
- SO Question
- TUT:Call contacts
But the problem is that I am unsure as to where (which files i.e package/class) to place the given code.
2- Do I need a database for that?
3- Will I need to put my tabs in different classes first?
4- Is there a way to put the imported contacts in groups from the app itself?
5- Will the same answers apply for the events tab?
Finally, if you're willing to help me more you could give me some contact information where I can reach you.
1.If you want to just view your contacts in your app then there is no need for database. You can just view them as a ListView using cursor.
See here -:http://www.edumobile.org/android/android-programming-tutorials/read-contacts-from-device/
2.You can store them in database as well.But only if you need to use them again in your app somewhere.
3.For working with tabs take a look at ->http://developer.android.com/guide/topics/ui/declaring-layout.html#CommonLayouts
Make different class for each tab as shown in tutorial.

Android: implementing contacts app layout

Does anyone have a tutorial or link to android source or anything that I can use to learn how android created their contacts app. I'm looking into creating a small app that will can display some data similar to how the contacts app displays its contacts. It seems to be some kind of list view with image buttons for actions.
**EDIT***
Lets make this a little easier, any one have any idea how on Android 2.1 and so far up to 2.3 the contacts tab and favorites tab can display a contact and next to it a button. I had thought this was somehow done in a listview but according to what I've read it's not possible to have a clickable listview plus button on a list item. So I'm assuming somehow a listview is being created and a button added next to the listview. I've tried looking at stock android source on github but I just dont understand it.
Here's the git hub for the Android contacts application:
https://github.com/android/platform_packages_apps_contacts

scroll bar for listviews in tables for android using phonegap

I'm working on android tablet using phonegap. In my application i divided my html into two vertical parts which contains list views and i 'm filling those list views with data coming from different services. I want to add separate scrollers for each listview so that i can scroll only listview but not the hole page. I tried using iscroller but that css is effecting my existing UI. So can anyone show other ways to get this scrollers? or iscroller without using css? anything is fine. can anyone please help me with this.
Try using the experimental jquery mobile scrollview https://github.com/jquery/jquery-mobile/tree/master/experiments/scrollview
The GitHub repo includes a couple of examples to show how to use it.

Android: not list all the item at once

When I browse some news apps, I see that the apps first show let's say 20 rows of news first, when I slide to the few last news, it loads 20 more news.
What is that technique called?
Is there any example or tutorial on that topics if I want to build a similar apps that get data from mysql?
Here are some examples/thread that go over the same topic:
Android: Implementing Endless List like Android Market
Dynamically load more items to the listview
Android Endless List

Categories

Resources