Skip to content

Commit

Permalink
Merge pull request #226 from brarcher/sdk-15
Browse files Browse the repository at this point in the history
Add additional layout options to support SDK 15
  • Loading branch information
brarcher authored Mar 12, 2018
2 parents 5cae974 + 036748e commit 73b6c99
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {

defaultConfig {
applicationId "protect.card_locker"
minSdkVersion 17
minSdkVersion 15
targetSdkVersion 27
versionCode 26
versionName "0.23.1"
Expand Down
25 changes: 19 additions & 6 deletions app/src/main/res/layout/loyalty_card_edit_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
android:layout_width="wrap_content"
android:textSize="@dimen/inputSize"
android:padding="@dimen/inputPadding"
android:layout_alignParentStart="true"/>
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"/>

<EditText
android:id="@+id/storeNameEdit"
Expand All @@ -70,7 +71,9 @@
android:layout_width="match_parent"
android:padding="@dimen/inputPadding"
android:textSize="@dimen/inputSize"
android:layout_toEndOf="@id/storeNameField"/>
android:layout_toEndOf="@id/storeNameField"
android:layout_toRightOf="@id/storeNameField"
/>

</RelativeLayout>

Expand Down Expand Up @@ -110,7 +113,9 @@
android:layout_width="wrap_content"
android:textSize="@dimen/inputSize"
android:padding="@dimen/inputPadding"
android:layout_alignParentStart="true"/>
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
/>

<EditText
android:id="@+id/noteEdit"
Expand All @@ -119,7 +124,9 @@
android:layout_width="match_parent"
android:padding="@dimen/inputPadding"
android:textSize="@dimen/inputSize"
android:layout_toEndOf="@id/noteField"/>
android:layout_toEndOf="@id/noteField"
android:layout_toRightOf="@id/noteField"
/>
</RelativeLayout>

<View
Expand Down Expand Up @@ -190,6 +197,7 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toEndOf="@id/headingColorSampleBorder"
android:layout_toRightOf="@id/headingColorSampleBorder"
app:layout_constraintEnd_toEndOf="parent"/>
</android.support.constraint.ConstraintLayout>

Expand Down Expand Up @@ -261,6 +269,7 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toEndOf="@id/headingStoreTextColorSampleBorder"
android:layout_toRightOf="@id/headingStoreTextColorSampleBorder"
app:layout_constraintEnd_toEndOf="parent"/>
</android.support.constraint.ConstraintLayout>

Expand Down Expand Up @@ -303,7 +312,9 @@
android:layout_width="wrap_content"
android:textSize="@dimen/inputSize"
android:padding="@dimen/inputPadding"
android:layout_alignParentStart="true"/>
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
/>

<TextView
android:id="@+id/cardIdView"
Expand All @@ -312,7 +323,9 @@
android:padding="@dimen/inputPadding"
android:textSize="@dimen/inputSize"
android:textIsSelectable="true"
android:layout_toEndOf="@id/cardIdField"/>
android:layout_toEndOf="@id/cardIdField"
android:layout_toRightOf="@id/cardIdField"
/>
</RelativeLayout>

<View
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/loyalty_card_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
android:layout_width="@dimen/cardThumbnailSize"
android:layout_height="@dimen/cardThumbnailSize"
android:layout_marginEnd="@dimen/activity_margin"
android:layout_marginRight="@dimen/activity_margin"
android:src="@mipmap/ic_launcher"
android:contentDescription="@string/thumbnailDescription"/>

Expand Down

0 comments on commit 73b6c99

Please sign in to comment.