Android, make scrollable view overflow to the left instead of right?

前端 未结 7 1991
孤独总比滥情好
孤独总比滥情好 2021-02-20 00:02

I was recommended using a parent view to get horizontal scrolling right in my TextView:



        
7条回答
  •  半阙折子戏
    2021-02-20 00:22

    try this , this would work properly and will not give you any delays when you jump between threads

    hor = (HorizontalScrollView) findViewById(R.id.horizontalScrollView1);
        hor.postDelayed(new Runnable() {
            public void run() {
                hor.fullScroll(HorizontalScrollView.FOCUS_RIGHT);
            }
        }, 1L);
    

提交回复
热议问题