Blame view

app/src/main/res/layout/activity_main.xml 1.62 KB
b2aec417b   kingzh   initialize
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  <?xml version="1.0" encoding="utf-8"?>
  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      tools:context=".MainActivity">
  
      <TextView
          android:id="@+id/info"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
         />
  
      <Button
          android:id="@+id/login"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="登录"/>
      <LinearLayout
          android:id="@+id/sessionLayout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          android:visibility="gone">
      <Button
          android:id="@+id/logout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="注销"/>
      <Button
          android:id="@+id/pay"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="三方支付"/>
      <Button
          android:id="@+id/iab"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="官方支付"/>
          <Button
              android:id="@+id/auto_judge_pay"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="先获取支付方式再支付"/>
      </LinearLayout>
  </LinearLayout>