スクロールしているときに、HorizontalFieldManager の背景をハイライトしたいと考えています。私はこのコードを試しました:
public class HorizentalFocus extends HorizontalFieldManager{
  protected void paint(Graphics g) {
    g.setBackgroundColor(isFocus() ? 4210231 : 0xFFFFFF);
    g.getFont();
    g.clear();
    super.paint(g);
  }
  protected void onFocus(int direction) {
    invalidate();
    super.onFocus(direction);
  }
  protected void onUnfocus() {
    invalidate();
    super.onUnfocus();
  }
}
それは機能しますが、2 つの問題があります。 horizontalField 全体をハイライトしないことと、テキストがフォーカスされたときにテキストの色を変更したいことです。

ご協力いただきありがとうございます。