Question about the Dialer Gui

by regui » Tue, 14 Apr 2009 13:43:54 GMT


Sponsored Links
 Hello everyone,

I am interested in knowing how to create a multi tab gui similar to
the dialer gui. By multi tab i mean the tabs for Dialer, call log,
contacts and favorites.

After searching all over I cannot figure out how to achieve this multi
tab setup. Could someone help me with this?

Thanks
--~--~---------~--~----~------------~-------~--~----~



Question about the Dialer Gui

by Jeff Hamilton » Tue, 14 Apr 2009 17:22:32 GMT


 To create an activity with tabs you want to use TabActivity
( http://d.android.com/reference/android/app/TabActivity.html ). The
dialer code that does this is available at
 http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git ;a=blob;f=src/com/android/contacts/DialtactsActivity.java;h=73d702b80c21d4e7a3af08a3fa025e15e4230b01;hb=HEAD.

-Jeff




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Android porting with goldfish qemu

Hello Everyone.

I want to make Android porting but I can't go further

so I ask you an advice.



I have done,

downloaded Froyo 2.2 -> make

downloaded kernel goldfish -> make

so I built two of them.

but I can't find any further information about porting,

blogs just say you can make porting environment like that and then
what? no one says about the next.


As I know, I can port Android using goldfish kernel (which is called
qemu, right?)

without any real target device or board.


Don't know what to do next,

if you know anything , plz teach me or give me some references

so I can figure out myself.


Thank you for reading my poor question.


-- 

2. Scrollbar not working

I have the following in the XML
<TableLayout android:id="@+id/TableLayout01" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:scrollbars="vertical"
    android:scrollbarSize="20dp"
    android:scrollbarAlwaysDrawVerticalTrack="true"
    android:stretchColumns="*">
    <TableRow>
      <ListView
        android:id="@+id/main_list" 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content"
        android:smoothScrollbar="true"
        android:fastScrollEnabled="true"
        android:scrollbars="vertical"
        android:scrollbarStyle="insideInset"
        android:scrollbarSize="20dip"
        android:textColor="#00ee00"></ListView>
    </TableRow>
  </TableLayout>

I add the items dynamically from a database using

private ListView  listView = null;
listView = (ListView) findViewById(R.id.main_list);
listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);

It shows a very narrow scrollbar.
But the list does not scroll and the scroll bar has no effect, which I click 
the scrollbar to move it
the scrollbar fades away.  any Ideas ?


Thanks in advance

-- 

3. Toko android di cempaka mas

4. Devices not detected

5. Robot Ijo "Dance"

6. M-toyota for android

7. Getting a Google Account token to use for Google Reader calls?