File tree 6 files changed +88
-6
lines changed
java/com/engineer/imitate/ui
6 files changed +88
-6
lines changed Original file line number Diff line number Diff line change
1
+ package com.engineer.imitate.ui.activity
2
+
3
+ import androidx.appcompat.app.AppCompatActivity
4
+ import android.os.Bundle
5
+ import com.engineer.imitate.R
6
+ import kotlinx.android.synthetic.main.activity_c_l.*
7
+
8
+ class CLActivity : AppCompatActivity () {
9
+ override fun onCreate (savedInstanceState : Bundle ? ) {
10
+ super .onCreate(savedInstanceState)
11
+ setContentView(R .layout.activity_c_l)
12
+ bottom.layoutResource = R .layout.activity_c_l_bottom
13
+ bottom.inflate()
14
+ }
15
+ }
Original file line number Diff line number Diff line change @@ -72,7 +72,10 @@ class EntranceFragment : Fragment() {
72
72
.countable(true )
73
73
.capture(true )
74
74
.captureStrategy(
75
- CaptureStrategy (true , requireContext().packageName + " .fileprovider" )
75
+ CaptureStrategy (
76
+ true ,
77
+ requireContext().packageName + " .fileprovider"
78
+ )
76
79
)
77
80
.maxSelectable(9 )
78
81
.restrictOrientation(ActivityInfo .SCREEN_ORIENTATION_PORTRAIT )
@@ -184,6 +187,14 @@ class EntranceFragment : Fragment() {
184
187
)
185
188
)
186
189
}
190
+ constraintLayout_ll2.setOnClickListener {
191
+ startActivity(
192
+ Intent (
193
+ context,
194
+ CLActivity ::class .java
195
+ )
196
+ )
197
+ }
187
198
fragment_manager.setOnClickListener {
188
199
startActivity(
189
200
Intent (
Original file line number Diff line number Diff line change 10
10
<application
11
11
android : name =" .ImitateApplication"
12
12
android : icon =" @mipmap/ic_launcher"
13
- android : roundIcon =" @mipmap/ic_launcher_round"
14
13
android : label =" @string/app_name"
15
- android : supportsRtl =" true"
16
14
android : requestLegacyExternalStorage =" true"
15
+ android : roundIcon =" @mipmap/ic_launcher_round"
16
+ android : supportsRtl =" true"
17
17
android : theme =" @style/MyAppTheme"
18
18
android : usesCleartextTraffic =" true"
19
19
android : windowSoftInputMode =" adjustResize|stateHidden"
20
20
tools : targetApi =" q" >
21
+ <activity android : name =" .ui.activity.CLActivity" ></activity >
21
22
<activity
22
23
android : name =" .ui.FantasySplashActivity"
23
24
android : exported =" true"
24
25
android : noHistory =" true"
25
- android : theme =" @style/SplashTheme" >
26
+ android : theme =" @style/SplashTheme" >
26
27
<intent-filter >
27
28
<action android : name =" android.intent.action.MAIN" />
28
29
<action android : name =" android.intent.action.VIEW" />
63
64
<activity
64
65
android : name =" .KotlinRootActivity"
65
66
android : label =" @string/app_name"
66
- android : theme =" @style/MyAppTheme" >
67
- </activity >
67
+ android : theme =" @style/MyAppTheme" ></activity >
68
68
<activity
69
69
android : name =" .ui.activity.FinalActivity"
70
70
android : exported =" true"
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4
+ xmlns : tools =" http://schemas.android.com/tools"
5
+ android : layout_width =" match_parent"
6
+ android : layout_height =" match_parent"
7
+ tools : context =" .ui.activity.CLActivity" >
8
+
9
+ <TextView
10
+ android : id =" @+id/text"
11
+ android : text =" 111111111"
12
+ android : textSize =" 22sp"
13
+ android : textColor =" @color/black"
14
+ android : layout_width =" match_parent"
15
+ android : layout_height =" wrap_content"
16
+ app : layout_constraintBottom_toTopOf =" @id/bottom" />
17
+
18
+
19
+ <ViewStub
20
+ android : id =" @+id/bottom"
21
+ android : layout_width =" match_parent"
22
+ android : layout_height =" wrap_content"
23
+ app : layout_constraintBottom_toBottomOf =" parent" />
24
+
25
+ </androidx .constraintlayout.widget.ConstraintLayout>
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4
+ xmlns : tools =" http://schemas.android.com/tools"
5
+ android : layout_width =" match_parent"
6
+ android : layout_height =" 56dp"
7
+ android : background =" #2196F3"
8
+ android : gravity =" center"
9
+ tools : context =" .ui.activity.CLActivity" >
10
+
11
+ <TextView
12
+ android : id =" @+id/text"
13
+ android : layout_width =" wrap_content"
14
+ android : layout_height =" wrap_content"
15
+ android : text =" BOTTOM"
16
+ android : textColor =" @color/white"
17
+ android : textSize =" 32sp" />
18
+
19
+
20
+ </LinearLayout >
Original file line number Diff line number Diff line change 81
81
android : text =" constraintLayout_layout"
82
82
android : textColor =" ?android:attr/textColorPrimary" />
83
83
84
+ <com .google.android.material.button.MaterialButton
85
+ android : id =" @+id/constraintLayout_ll2"
86
+ android : layout_width =" match_parent"
87
+ android : layout_height =" wrap_content"
88
+ android : layout_margin =" 4dp"
89
+
90
+ android : gravity =" center"
91
+ android : padding =" 10dp"
92
+ android : text =" constraintLayout_layout2"
93
+ android : textColor =" ?android:attr/textColorPrimary" />
94
+
84
95
<com .google.android.material.button.MaterialButton
85
96
android : id =" @+id/fragment_manager"
86
97
android : layout_width =" match_parent"
You can’t perform that action at this time.
0 commit comments