& lt; ? The XML version="1.0" encoding="utf-8"?>XMLNS: app="http://schemas.android.com/apk/res-auto"
Android: layout_width="match_parent"
Android: layout_height="match_parent" & gt;The android: id="@ + id/btn_login"
Android: layout_width="match_parent"
Android: layout_height="36 dp"
Android: layout_marginStart="16 dp"
Android: layout_marginEnd="16 dp"
Android: gravity="center"
Android: text="login"
App: layout_constraintTop_toTopOf="parent"
App: qmui_backgroundColor="@" color/black
App: qmui_isRadiusAdjustBounds="true"/& gt;The android: id="@ + id/btn_login_out"
Android: layout_width="match_parent"
Android: layout_height="36 dp"
Android: layout_marginStart="16 dp"
Android: layout_marginEnd="16 dp"
Android: gravity="center"
Android: text="logout"
App: layout_constraintTop_toBottomOf="@ id/btn_login"
App: qmui_backgroundColor="@" color/black
App: qmui_isRadiusAdjustBounds="true"/& gt;The android: id="@ + id/image_view"
Android: layout_width="match_parent"
Android: layout_height="wrap_content"
Android: padding="8 dp"
Android: rotation="90"
The android: SRC="https://bbs.csdn.net/topics/@drawable/qmui_icon_quick_action_more_arrow_left"
App: layout_constraintStart_toStartOf="parent"
App: layout_constraintTop_toBottomOf="@ id/btn_login_out"/& gt;
Fragments of
View. The findViewById (R.i d.i mage_view). SetOnClickListener (v - & gt; {
The d (" MineFragment ", "initEventAndData:");
}
);
Actually click on the screen area, the inside of the red box has the incident response, ask why?
Implementation 'androidx. Appcompat: appcompat: 1.2.0'
Implementation 'androidx. Constraintlayout: constraintlayout: 2.0.4'
CodePudding user response:
Constraint layout with linear layout, too, in the image soCodePudding user response:
Create a new project is that& lt; ? The XML version="1.0" encoding="utf-8"?>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"
Tools: context="MainActivity" & gt;The android: id="@ + id/image_view"
Android: layout_width="match_parent"
Android: layout_height="137 dp"
Android: layout_marginTop="52 dp"
Android: padding="8 dp"
Android: rotation="90"
The android: SRC="https://bbs.csdn.net/topics/@drawable/ic_back"
App: layout_constraintTop_toTopOf="parent"/& gt;Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: text="Hello World!"
App: layout_constraintBottom_toBottomOf="parent"
App: layout_constraintLeft_toLeftOf="parent"
App: layout_constraintRight_toRightOf="parent"
App: layout_constraintTop_toTopOf="parent"/& gt;
CodePudding user response:
1. Accelerate_iv_arrow which one is the id of the control?2. Click on the area outside the ImageView is sure?
3. You can leave a remote way
CodePudding user response: