With reference to the MiniGMaps by lordhong which has the toolbar sort of layout in the bottom with the 4 imagebuttons;
Can i have a layout in which i have that toolbar at the top while the rest of the view has a ListActivity.
I have the following main.xml:
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- >
- <view class="lordhong.apps.ToolBar$ToolBarView"
- id="@+id/toolbar"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"/>
- </LinearLayout>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
But then i could not have my main activity which extends the ListActivity and then use setContentView(R.layout.main);
Since that would throw up ClassCastException.
So can i have some main.xml like this:
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- >
- <view class="abc.apps.ToolBar$ToolBarView"
- id="@+id/toolbar"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"/>
- <view class="abc.apps.MyListActivity"
- id="@+id/listactivity"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"/>
- </LinearLayout>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
Thanks,
Nitin




