Android: Remove title from toolbar/add open icon

This commit is contained in:
Connor McLaughlin 2021-03-23 22:10:14 +10:00
parent a3b0f7b2dd
commit c5e14c2f9f
3 changed files with 15 additions and 1 deletions

View file

@ -143,6 +143,7 @@ public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
loadSettings();
setTitle(null);
super.onCreate(savedInstanceState);

View file

@ -0,0 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal"
android:autoMirrored="true">
<path
android:fillColor="@android:color/white"
android:pathData="M6,2c-1.1,0 -1.99,0.9 -1.99,2L4,20c0,1.1 0.89,2 1.99,2L18,22c1.1,0 2,-0.9 2,-2L20,8l-6,-6L6,2zM13,9L13,3.5L18.5,9L13,9z"/>
</vector>

View file

@ -5,7 +5,9 @@
<group android:id="@+id/start_menu">
<item
android:id="@+id/action_start_file"
android:title="@string/menu_main_start_file" />
android:icon="@drawable/ic_baseline_insert_drive_file_24"
android:title="@string/menu_main_start_file"
app:showAsAction="always" />
<item
android:id="@+id/action_start_bios"
android:title="@string/menu_main_start_bios" />