Skip to content

Instantly share code, notes, and snippets.

Avatar

Gabriel Bertini de Oliveira gabbertini

View GitHub Profile
View circle_constraints.xml
<android.support.design.widget.FloatingActionButton
android:id="@+id/share_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"
android:layout_marginBottom="32dp"
android:src="@drawable/filled"
app:backgroundTint="#FF4E53"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
View group.xml
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
View barriers.xml
<TextView
android:id="@+id/composition"
style="@style/StandardText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:maxWidth="200dp"
android:text="Composição: 85% Couro"
app:layout_constraintStart_toStartOf="@id/begin_margin"
app:layout_constraintTop_toBottomOf="@id/description" />
View chain_match_constraint.xml
<TextView
android:id="@+id/size_title"
style="@style/SmallTitleText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="Tamanho"
app:layout_constraintEnd_toStartOf="@id/quantity_title"
app:layout_constraintStart_toStartOf="@id/begin_margin"
app:layout_constraintTop_toBottomOf="@id/black_rectangle" />
View chain_wrap_content.xml
<View
android:id="@+id/black_rectangle"
android:layout_width="70dp"
android:layout_height="40dp"
android:layout_marginTop="8dp"
android:background="@drawable/black_selected_rectangle"
app:layout_constraintEnd_toStartOf="@id/green_rectangle"
app:layout_constraintHorizontal_chainStyle="spread_inside"
app:layout_constraintStart_toStartOf="@id/begin_margin"
app:layout_constraintTop_toBottomOf="@id/color_title" />
View fab.xml
<ImageView
android:id="@+id/mainly_image"
android:layout_width="match_parent"
android:layout_height="0dp"
android:src="@drawable/img_tenis"
app:layout_constraintDimensionRatio="H,5:2"
tools:ignore="ContentDescription" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
View bias.xml
<ImageView
style="@style/MainlyImageIconStyle"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="@+id/mainly_image"
app:layout_constraintDimensionRatio="H,5:2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.04"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
View percent_size_view.xml
<ImageView
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintWidth_percent="0.2"
app:layout_constraintHeight_percent="0.1"/>
View dimension_ratio_view.xml
<ImageView
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintDimensionRatio="5:2" />
<ImageView
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
View guideline_percent.xml
<android.support.constraint.Guideline
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.5" />