mirror of
https://github.com/WuXiaolong/AndroidMVPSample.git
synced 2025-06-07 13:54:04 +08:00
45 lines
1.4 KiB
XML
45 lines
1.4 KiB
XML
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:context=".ui.MainActivity">
|
|
|
|
<include layout="@layout/toolbar"/>
|
|
|
|
<Button
|
|
android:id="@+id/button0"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginTop="20dp"
|
|
android:text="普通写法(Retrofit)"/>
|
|
|
|
<Button
|
|
android:id="@+id/button1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginTop="20dp"
|
|
android:text="普通写法(Retrofit+Rxjava)"/>
|
|
|
|
<Button
|
|
android:id="@+id/button2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginTop="20dp"
|
|
android:text="MVP+Retrofit+Rxjava"/>
|
|
|
|
<TextView
|
|
android:id="@+id/text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"/>
|
|
|
|
</LinearLayout>
|