Created
May 29, 2018 03:13
-
-
Save kheldiente/943e07a3fd39db042cdb6f983c1159ca to your computer and use it in GitHub Desktop.
Layout for switch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@color/colorPrimary" | |
android:paddingLeft="15dp" | |
android:paddingTop="15dp" | |
android:paddingRight="10dp" | |
android:paddingBottom="15dp" | |
android:focusableInTouchMode="true" | |
> | |
<android.support.v7.widget.AppCompatTextView | |
style="@style/AppTextView" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Equalizer" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintLeft_toLeftOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<android.support.v7.widget.SwitchCompat | |
android:id="@+id/switch_equalizer" | |
style="@style/AppSwitchCompat" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:checked="true" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintRight_toRightOf="parent" | |
app:layout_constraintBottom_toBottomOf="parent" | |
/> | |
</android.support.constraint.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment