Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Android
  4. project

project

Scheduled Pinned Locked Moved Android
androidhelptutorial
1 Posts 1 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    salkhan786
    wrote on last edited by
    #1

    can anyone help me.. In android i have taken a listview and i have a created a list view ie a catgeory now to now i have to make a sub catgeory in it.how to implement that. wen i click the catgeory its goes to subcatgeory n i want wen i click a catgeory it goes to same screen and replace it. i mean i dont want to make separate screen for all my sub catgeory can anyone help me its urgent this is mycode i have done upto here public class MainActivity extends Activity { ListView lv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); lv=(ListView)findViewById(R.id.listView1); String[] Wishlist={"VisitTop10beaches","Adventures","Sports","Camp Site","Visit10Beautyfull City","VisitOneOfSevenContients","VisitTopCasinos","OwnadreamCar","VisitSevenWondersOfTheWorld","HolyPalces","UniqueTransportModes"}; ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1,Wishlist); lv.setAdapter(adapter); lv.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub } }); }

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups