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

前端 未结 7 2011
孤独总比滥情好
孤独总比滥情好 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:15

    
    
        
    
        
    

    Added id to the HorizontalScrollView

    HorizontalScrollView hsv = (HorizontalScrollView) findViewById(R.id.hsv1);
    hsv.scrollTo(hsv.getRight(), hsv.getTop());
    

    This is untested as I made it on the fly. Tell me how it goes.

提交回复
热议问题