Good view

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Good view

Postby man4And » Mon Aug 03, 2009 10:08 am

Hi

can you please help me in developing a good view and apperance of page some this like below:

http://cab4me.com/

Thanks & Regards
Venkat
man4And
Junior Developer
Junior Developer
 
Posts: 17
Joined: Tue Jul 28, 2009 3:38 pm

Top

Postby arams » Mon Aug 03, 2009 12:16 pm

Good View...
1.Widget Creation
(or)
2.Using 9patch image

http://developer.android.com/guide/prac ... esign.html
arams
Experienced Developer
Experienced Developer
 
Posts: 89
Joined: Fri May 08, 2009 7:45 am

Well Style and Theme

Postby man4And » Wed Aug 12, 2009 6:47 pm

Hi

Many Thanks for your reply.
Still i am not able to get good appearance.

My application is like below:
1. Getting list of restarant names from Database and showing them using ListAdapter.
2. In the xml fle, i am using below code:
<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="5"
android:drawSelectorOnTop="false"
style="@style/MyListView" />

can you please provide some source code how to show image of restarant at the beginning and then the name of restarant which i get from Database database.

Please provide me some source code please please please to work like below???

Image

Thanks & Regards
man4And
Junior Developer
Junior Developer
 
Posts: 17
Joined: Tue Jul 28, 2009 3:38 pm

Postby arams » Thu Aug 13, 2009 5:54 am

arams
Experienced Developer
Experienced Developer
 
Posts: 89
Joined: Fri May 08, 2009 7:45 am

Postby man4And » Thu Aug 13, 2009 2:19 pm

Many Many Thanks arams.

Let me try now with the way you suggested.

Thanks & Regards
Venkat
man4And
Junior Developer
Junior Developer
 
Posts: 17
Joined: Tue Jul 28, 2009 3:38 pm

Postby man4And » Thu Aug 13, 2009 7:39 pm

Hi arams or +/-
I am shoeing some locations in the map, when i click on the particulat overlay, i am planning to show a dialog box to show the details info of that particular overlay.
The detailed info of overlay is there in my locations in Mylocations.java .
So onTap, i am calling a method in Mylocations.java and starting a new intent which will show a new layout with all detailed info.

I am getting below issue, can you please help me?

public class Mylocations extends MapActivity {

private static List<LocationInfo> locations;
@Override
public void onCreate(Bundle savedInstanceState) {
------------------
------------------
itemizedOverlay = new HelloItemizedOverlay(this, drawable);
------------------
------------------
}

----------------
----------------
public void showDetailedInfo(Context mContext, int index){
Intent intent = new Intent(mContext, ShowDetailedtInfo.class);
startActivity(intent);
}
----------------
----------------

}

public class HelloItemizedOverlay extends ItemizedOverlay {

public HelloItemizedOverlay(Context context, Drawable defaultMarker) {
super(boundCenterBottom(defaultMarker));
mContext = context;
}
@Override
protected boolean onTap(int index) {
Mylocations mylocations = new Mylocations();
mylocations .showDetailedInfo(mContext,index);
}

}

When starting new activity @ startActivity(intent);, i am getting the below error:

08-13 23:30:03.758: WARN/dalvikvm(1528): threadid=3: thread exiting with uncaught exception (group=0x4000fe70)
08-13 23:30:03.758: ERROR/AndroidRuntime(1528): Uncaught handler: thread main exiting due to uncaught exception
08-13 23:30:03.878: ERROR/AndroidRuntime(1528): java.lang.NullPointerException
08-13 23:30:03.878: ERROR/AndroidRuntime(1528): at android.app.Activity.startActivityForResult(Activity.java:2656)
08-13 23:30:03.878: ERROR/AndroidRuntime(1528): at android.app.Activity.startActivity(Activity.java:2700)
08-13 23:30:03.878: ERROR/AndroidRuntime(1528): at com.example.Mylocations.showDetailedInfo(Mylocations.java:284)
08-13 23:30:03.878: ERROR/AndroidRuntime(1528): at com.example.HelloItemizedOverlay$1.onClick(HelloItemizedOverlay.java:83)


Can You please help me?

Thanks & Regards
Venkat
man4And
Junior Developer
Junior Developer
 
Posts: 17
Joined: Tue Jul 28, 2009 3:38 pm

Top

Postby man4And » Fri Aug 14, 2009 5:37 am

Hi

Can someone please help me in resolving the above issue?

Thanks & Regards
Venkat
man4And
Junior Developer
Junior Developer
 
Posts: 17
Joined: Tue Jul 28, 2009 3:38 pm

Postby man4And » Sat Aug 15, 2009 5:47 am

Hi

Can someone please help me
man4And
Junior Developer
Junior Developer
 
Posts: 17
Joined: Tue Jul 28, 2009 3:38 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot] and 6 guests