当前位置:网站首页>Use guidelines in constraintlayout to limit the maximum width of controls
Use guidelines in constraintlayout to limit the maximum width of controls
2022-06-11 07:56:00 【tinyvampirepudge】
ConstraintLayout Use in Guideline Limit the maximum width of the control
Below ll_container The maximum width is limited : The maximum width is the screen width - 88dp.
ll_container Variable width , There is a maximum width limit .
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_begin="44dp" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_end="44dp" />
<LinearLayout
android:id="@+id/ll_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:gravity="center_vertical"
android:orientation="vertical"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="@id/guideline1"
app:layout_constraintRight_toRightOf="@id/guideline2"
app:layout_constraintTop_toTopOf="parent">
...
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
边栏推荐
- 134. gas station
- Xshell7 and xftp7 to continue using this program, you must apply the latest updates or use a new version
- [atcoder1981] short diameter (graph theory thinking)
- Database connection pool and bdutils tool
- [noip2016 d1t3] changing classrooms (expectation dp+floyd) (trap of extreme thinking!)
- Three expressions of integers and their storage in memory
- TypeScript-头文件使用细节
- TypeScript-命名空间
- Closure and minimum dependency in database
- [poj3691] DNA repair (AC automata +dp)
猜你喜欢

About static keyword

C- print 99 multiplication table

forEach 中 return 和 for 中 break

TiDB Cloud 上線 Google Cloud Marketplace,以全新一棧式實時 HTAP 數據庫賦能全球開發者

Image data enhancement (translation, rotation, brightness transformation, flipping, adding Gaussian noise, scaling, cropping)

Understanding of Poisson distribution and Poisson process and Erlang distribution and their relations (important theories in queuing theory and operational research)

Black Qunhui dsm7.0.1 physical machine installation tutorial

批量拼接字符串
![Socket [5] - struct linker usage](/img/e5/bce5d89c61a3a4f89171734ca6ff8e.png)
Socket [5] - struct linker usage

(transformation) tree, binary tree and forest transformation principle
随机推荐
【CodeForces908H】New Year and Boolean Bridges (FWT)
代码设置ConstraintLayout的layout_constraintDimensionRatio
C wechat upload form data
Label the mask image not obtained through labelme
用 Keras/TensorFlow 2.9 创建深度学习模型的方法总结
Summary of evaluation index knowledge points in target detection: summary of IOU cross overlap unit and map/ap/tp/fp/np
Zero foundation self-study SQL course | union joint query
String Simulation Implementation
TypeScript-类型别名
Activity中,View#postDelay会导致内存泄漏,但是不会影响Activity的生命周期执行。
Introduction to operations research
134. 加油站
How to find the complementary sequence of digraph
Methods to improve training speed in deep learning and techniques to reduce video memory (suitable for entry-level trick without too many computing resources)
TypeScript-分布式条件类型
multi-sig SC
Niuke JS wrong question knowledge point record
Pycrypto packaging error
[atcoder1983] BBQ hard (combination number + clever model transformation)
DAMENG 数据库启停