-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b45ca8b
commit 5bdb6a2
Showing
7 changed files
with
59 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package moon3.widget; | ||
import android.content.Context; | ||
import android.util.AttributeSet; | ||
|
||
public class Toolbar extends androidx.appcompat.widget.Toolbar { | ||
protected Context mContext; | ||
|
||
public Toolbar(Context c) { | ||
super(c); | ||
mContext = c; | ||
_moon3InitToolbar(); | ||
} | ||
|
||
public Toolbar(Context c, AttributeSet attrs) { | ||
super(c, attrs); | ||
mContext = c; | ||
_moon3InitToolbar(); | ||
} | ||
|
||
public Toolbar(Context c, AttributeSet attrs, int def) { | ||
super(c, attrs, def); | ||
mContext = c; | ||
_moon3InitToolbar(); | ||
} | ||
|
||
protected void _moon3InitToolbar() { | ||
// http://aospxref.com/android-14.0.0_r2/xref/frameworks/base/core/res/res/values/styles.xml#1303 | ||
setTitleTextAppearance(mContext, moon3.R.style.Moon3_TextAppearance_ToolbarTitle); | ||
setSubtitleTextAppearance(mContext, moon3.R.style.Moon3_TextAppearance_ToolbarSubTitle); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters