Commit 0a426bc5 authored by jyx's avatar jyx

优化布局

parent aafd69a6
...@@ -153,7 +153,8 @@ class MobileLoginActivity : BaseActivity(), LoginView, View.OnClickListener { ...@@ -153,7 +153,8 @@ class MobileLoginActivity : BaseActivity(), LoginView, View.OnClickListener {
etLoginMobile.setSelection(mobile!!.length + 2) etLoginMobile.setSelection(mobile!!.length + 2)
} }
SpanUtils.with(tvLoginAgreement)
tvLoginAgreement.text = SpanUtils()
.append("《用户注册协议》").setClickSpan(object : ClickableSpan() { .append("《用户注册协议》").setClickSpan(object : ClickableSpan() {
override fun onClick(widget: View) { override fun onClick(widget: View) {
val bundle = Bundle() val bundle = Bundle()
......
...@@ -172,7 +172,7 @@ class WxLoginActivity : BaseActivity(), LoginView, View.OnClickListener, OnLogin ...@@ -172,7 +172,7 @@ class WxLoginActivity : BaseActivity(), LoginView, View.OnClickListener, OnLogin
private fun initView() { private fun initView() {
SpanUtils.with(tvLoginAgreement) tvLoginAgreement.text = SpanUtils()
.append("《用户注册协议》").setClickSpan(object : ClickableSpan() { .append("《用户注册协议》").setClickSpan(object : ClickableSpan() {
override fun onClick(widget: View) { override fun onClick(widget: View) {
val bundle = Bundle() val bundle = Bundle()
......
...@@ -120,9 +120,10 @@ ...@@ -120,9 +120,10 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginLeft="20dp" android:layout_marginLeft="10dp"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:layout_marginRight="20dp" android:layout_marginRight="20dp"
android:paddingStart="10dp"
android:textColor="@color/color_707A8D" android:textColor="@color/color_707A8D"
android:textSize="12sp" /> android:textSize="12sp" />
......
...@@ -72,8 +72,9 @@ ...@@ -72,8 +72,9 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginLeft="30dp" android:layout_marginLeft="20dp"
android:layout_marginRight="30dp" android:layout_marginRight="30dp"
android:paddingStart="10dp"
android:textColor="@color/color_707A8D" android:textColor="@color/color_707A8D"
android:textSize="12sp" /> android:textSize="12sp" />
</LinearLayout> </LinearLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment