Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Always try to do things in chronological order; it's less confusing that way.


computers / comp.mobile.android / How to get view when click menu at toolbar

SubjectAuthor
o How to get view when click menu at toolbarJakub

1
How to get view when click menu at toolbar

<us1td2$3hgm$1@news.icm.edu.pl>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=50409&group=comp.mobile.android#50409

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.chmurka.net!news.icm.edu.pl!.POSTED.public-gprs567183.centertel.pl!not-for-mail
From: jak...@interia.pl (Jakub)
Newsgroups: comp.mobile.android
Subject: How to get view when click menu at toolbar
Date: Sun, 3 Mar 2024 14:20:26 +0100
Organization: ICM, Uniwersytet Warszawski
Message-ID: <us1td2$3hgm$1@news.icm.edu.pl>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 3 Mar 2024 13:19:30 -0000 (UTC)
Injection-Info: news.icm.edu.pl; posting-host="public-gprs567183.centertel.pl:37.225.78.208";
logging-data="116246"; mail-complaints-to="usenet@news.icm.edu.pl"
User-Agent: Mozilla Thunderbird
Content-Language: pl
 by: Jakub - Sun, 3 Mar 2024 13:20 UTC

How to get View when I click To Menu at toolbar?

Init toolbar at MainActivity class

toolbar = findViewById<Toolbar>(R.id.toolbar)

toolbar.title = ""

val overflowIcon = ContextCompat.getDrawable(this,
R.drawable.ic_menu)

toolbar.overflowIcon = overflowIcon
setSupportActionBar(toolbar)

and xml

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/menu_about"
android:title="@string/menu_about" />
<item
android:id="@+id/menu_exit"
android:title="@string/menu_exit" />
</menu>

------------

at MainActivity class

override fun onCreateOptionsMenu(menu: Menu): Boolean {

menuInflater.inflate(R.menu.menu_main, menu)

return true
}

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor