Add new activity without menu or action bar in android studio? -
in android studio 0.8.14 can't find way add new activity without menu. android studio force me have menu new activity if don't want menu must delete myself.
is new standard in android activities should have action bar menu? or forgot add real blank activity template android studio?
unfortunately, android studio not have boilerplate code activity without menu.
however, can make own boilplate. if in folder \plugins\android\lib\templates\activities in android studio installation, see templates everything. can make own template, , show in menu when making new project.
i'm working on 1 activity without menu. i'm done, started in fact when saw question. happy after finish.
edit: ok found easier way. in same folder, see folder called emptyactivity. don't know why doesn't show in list of activites when making project. however, if copy , paste folder \plugins\android\lib\templates\activities folder, rename whatever want, edit template.xml file change name field in so:
<template format="3" revision="4" name="blank activity no menu bar" minapi="7" minbuildapi="14" description="creates new empty activity">
then appear in list of activities when making new project. make new project without menu, , no action bar.
Comments
Post a Comment