ボタンにはフォント変更を反映しない

This commit is contained in:
tateisu 2017-05-16 09:56:59 +09:00
parent 3b435fec85
commit 140b4cb494
4 changed files with 9 additions and 4 deletions

View File

@ -608,7 +608,6 @@ public class ActMain extends AppCompatActivity
Typeface timeline_font ;
void initUI(){
setContentView( R.layout.act_main );

View File

@ -87,7 +87,9 @@ class ColumnViewHolder
Utils.scanView( root, new Utils.ScanViewCallback() {
@Override public void onScanView( View v ){
try{
if( v instanceof TextView ){
if( v instanceof Button ){
// ボタンは太字なので触らない
}else if( v instanceof TextView ){
( (TextView) v ).setTypeface( activity.timeline_font );
}
}catch(Throwable ex){

View File

@ -48,7 +48,9 @@ class HeaderViewHolder implements View.OnClickListener, View.OnLongClickListener
Utils.scanView( viewRoot, new Utils.ScanViewCallback() {
@Override public void onScanView( View v ){
try{
if( v instanceof TextView ){
if( v instanceof Button ){
// ボタンは太字なので触らない
}else if( v instanceof TextView ){
( (TextView) v ).setTypeface( activity.timeline_font );
}
}catch(Throwable ex){

View File

@ -101,7 +101,9 @@ class ItemViewHolder implements View.OnClickListener, View.OnLongClickListener {
Utils.scanView( view, new Utils.ScanViewCallback() {
@Override public void onScanView( View v ){
try{
if( v instanceof TextView ){
if( v instanceof Button ){
// ボタンは太字なので触らない
}else if( v instanceof TextView ){
( (TextView) v ).setTypeface( activity.timeline_font );
}
}catch(Throwable ex){