Change font size of the CreateSudokuActivity's action bar title
This commit is contained in:
parent
762d7d19a2
commit
7b86c22827
2 changed files with 2 additions and 22 deletions
|
@ -93,6 +93,7 @@ public class CreateSudokuActivity extends BaseActivity implements IFinalizeDialo
|
||||||
|
|
||||||
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
|
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
|
getSupportActionBar().setTitle(getString(gameController.getGameType().getStringResID()));
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
|
|
||||||
layout = (SudokuFieldLayout)findViewById(R.id.sudokuLayout);
|
layout = (SudokuFieldLayout)findViewById(R.id.sudokuLayout);
|
||||||
|
@ -113,9 +114,6 @@ public class CreateSudokuActivity extends BaseActivity implements IFinalizeDialo
|
||||||
specialButtonLayout.setButtons(p.x, gameController, keyboard, getFragmentManager(), orientation,
|
specialButtonLayout.setButtons(p.x, gameController, keyboard, getFragmentManager(), orientation,
|
||||||
CreateSudokuActivity.this, this, this);
|
CreateSudokuActivity.this, this, this);
|
||||||
|
|
||||||
viewName = (TextView) findViewById(R.id.gameModeText);
|
|
||||||
viewName.setText(getString(gameController.getGameType().getStringResID()));
|
|
||||||
|
|
||||||
gameController.notifyHighlightChangedListeners();
|
gameController.notifyHighlightChangedListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,25 +24,7 @@
|
||||||
android:layout_height="?attr/actionBarSize"
|
android:layout_height="?attr/actionBarSize"
|
||||||
android:background="?attr/colorPrimary"
|
android:background="?attr/colorPrimary"
|
||||||
android:clipChildren="false"
|
android:clipChildren="false"
|
||||||
app:popupTheme="@style/AppTheme.PopupOverlay" >
|
app:popupTheme="@style/AppTheme.PopupOverlay" />
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:weightSum="14"
|
|
||||||
android:clipChildren="false"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
||||||
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
||||||
android:gravity="center_vertical">
|
|
||||||
<TextView
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/gametype_unspecified"
|
|
||||||
android:id="@+id/gameModeText"
|
|
||||||
android:layout_weight="7"/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
</androidx.appcompat.widget.Toolbar>
|
|
||||||
|
|
||||||
</com.google.android.material.appbar.AppBarLayout>
|
</com.google.android.material.appbar.AppBarLayout>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue