ボタンにはフォント変更を反映しない
This commit is contained in:
parent
3b435fec85
commit
140b4cb494
|
@ -608,7 +608,6 @@ public class ActMain extends AppCompatActivity
|
|||
|
||||
Typeface timeline_font ;
|
||||
|
||||
|
||||
void initUI(){
|
||||
setContentView( R.layout.act_main );
|
||||
|
||||
|
|
|
@ -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){
|
||||
|
|
|
@ -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){
|
||||
|
|
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue