-
Junior Member
- Rep Power
- 200
- Reputation
- 10
How to add a collapsible index / menu for url links
Hi, I have a website that I want to develop a bit more and would like an easy to use app that will place a collapsible index on the left side of my web page similar to what Outlook uses.
I have had a search on the net and this site but cannot find quite that sort of thing.
Can anyone point me i the right direction?
Cheers
-
Do you mean a "pop-up" or "drop-down" menu of some kind?
If so, do a Google search using terms such as, how to code webpage popup.
The page at might be helpful.
You could also search for a web site, which utilises the facility you wish to create, and examine the source code for that page. This will indicate how the creator of that particular page achieved the effect.
Junior Member
- Rep Power
- 0
- Reputation
- 10
i also don`t understood you clearly..try this code
<menu
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/text1"
android:title="Text" />
<item android:id="@+id/text2"
android:title="Text" />
<item android:id="@+id/text3"
android:title="Text" />
</menu>
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.text1: Toast.makeText(this, "You pressed
the icon!", Toast.LENGTH_LONG).show();
break;
case R.id.text2: Toast.makeText(this, "You pressed
the icon!", Toast.LENGTH_LONG).show();
break;
case R.id.text3: Toast.makeText(this, "You pressed
the icon!", Toast.LENGTH_LONG).show();
break;
}
return true;
}
}
that looks more like a backdoor code for you to hack into
install wordpress on your hosting\site
it has drop down menu
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks