liuyanbo

1 android中设置组件在LinearLayout中居中

 有两种方式: 在LinearLayout加上 android:gravity="center" 或 在子控件中加上 android:layout_gravity="center"

2 TextView增加滑动效果    

<ScrollView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" >

        <.TextView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:isScrollContainer="true"
            android:text="@string/txt_agreement_context"
            android:textColor="@color/button_textcolor"
            android:textSize="@dimen/bottom_button_textsize" />
    </ScrollView>

 

分类:

技术点:

相关文章:

  • 2021-11-28
  • 2021-10-31
  • 2021-07-02
  • 2021-04-08
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2021-05-27
  • 2021-10-04
  • 2021-11-11
  • 2021-10-06
相关资源
相似解决方案