Skip to content

Commit

Permalink
Merge pull request #4 from seniorquico/close-icon
Browse files Browse the repository at this point in the history
Replaced "Close" text with double left chevron icon DEV-314
  • Loading branch information
seniorquico authored Feb 15, 2018
2 parents 833cb97 + 915b52f commit 3d56405
Show file tree
Hide file tree
Showing 23 changed files with 28 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageButton;

/**
* A {@link Fragment} that renders a loading page.
Expand Down Expand Up @@ -65,7 +65,7 @@ public View onCreateView(@NonNull final LayoutInflater inflater, final ViewGroup
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);

Button closeButton = view.findViewById(R.id.fragment_page_loading_close);
ImageButton closeButton = view.findViewById(R.id.fragment_page_loading_close);
closeButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageButton;

/**
* A {@link Fragment} that renders an offline page.
Expand Down Expand Up @@ -65,7 +65,7 @@ public View onCreateView(@NonNull final LayoutInflater inflater, final ViewGroup
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);

Button closeButton = view.findViewById(R.id.fragment_page_offline_close);
ImageButton closeButton = view.findViewById(R.id.fragment_page_offline_close);
closeButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file not shown.
File renamed without changes
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions zapic/src/main/res/layout-land/fragment_page_offline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@
android:layout_height="match_parent"
android:orientation="horizontal"
tools:context="com.zapic.android.sdk.OfflinePageFragment">
<Button
<ImageButton
android:id="@+id/fragment_page_offline_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:text="@string/fragment_page_offline_close" />
android:layout_marginStart="@dimen/margin"
android:layout_marginTop="@dimen/margin"
android:background="?android:selectableItemBackground"
android:contentDescription="@string/fragment_page_offline_close"
android:src="@drawable/chevron_double_left" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down
8 changes: 6 additions & 2 deletions zapic/src/main/res/layout-v21/fragment_page_loading.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.zapic.android.sdk.LoadingPageFragment">
<Button
<ImageButton
android:id="@+id/fragment_page_loading_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:text="@string/fragment_page_loading_close" />
android:layout_marginStart="@dimen/margin"
android:layout_marginTop="@dimen/margin"
android:background="?android:selectableItemBackground"
android:contentDescription="@string/fragment_page_loading_close"
android:src="@drawable/chevron_double_left" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down
8 changes: 6 additions & 2 deletions zapic/src/main/res/layout/fragment_page_loading.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.zapic.android.sdk.LoadingPageFragment">
<Button
<ImageButton
android:id="@+id/fragment_page_loading_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:text="@string/fragment_page_loading_close" />
android:layout_marginStart="@dimen/margin"
android:layout_marginTop="@dimen/margin"
android:background="?android:selectableItemBackground"
android:contentDescription="@string/fragment_page_loading_close"
android:src="@drawable/chevron_double_left" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down
8 changes: 6 additions & 2 deletions zapic/src/main/res/layout/fragment_page_offline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@
android:layout_height="match_parent"
android:orientation="horizontal"
tools:context="com.zapic.android.sdk.OfflinePageFragment">
<Button
<ImageButton
android:id="@+id/fragment_page_offline_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:text="@string/fragment_page_offline_close" />
android:layout_marginStart="@dimen/margin"
android:layout_marginTop="@dimen/margin"
android:background="?android:selectableItemBackground"
android:contentDescription="@string/fragment_page_offline_close"
android:src="@drawable/chevron_double_left" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down

0 comments on commit 3d56405

Please sign in to comment.