Skip to content

Commit 16ebd88

Browse files
committed
Added a spinner layout for slow connections
1 parent b85ced9 commit 16ebd88

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

res/layout/activity_purchase.xml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:gravity="center"
6+
android:orientation="vertical" >
7+
8+
<ProgressBar
9+
android:id="@+id/progressBar1"
10+
style="?android:attr/progressBarStyleLarge"
11+
android:layout_width="wrap_content"
12+
android:layout_height="wrap_content" />
13+
14+
</LinearLayout>

src/com/blundell/tutorial/simpleinappbillingv3/ui/base/PurchaseActivity.java

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.android.vending.billing.util.IabHelper.OnIabPurchaseFinishedListener;
88
import com.android.vending.billing.util.IabHelper.OnIabSetupFinishedListener;
99
import com.blundell.tutorial.simpleinappbillingv3.AppProperties;
10+
import com.blundell.tutorial.simpleinappbillingv3.R;
1011
import com.blundell.tutorial.simpleinappbillingv3.domain.items.Passport;
1112
import com.blundell.tutorial.simpleinappbillingv3.util.Log;
1213

@@ -29,6 +30,7 @@ public abstract class PurchaseActivity extends BlundellActivity implements OnIab
2930
@Override
3031
protected void onCreate(Bundle savedInstanceState) {
3132
super.onCreate(savedInstanceState);
33+
setContentView(R.layout.activity_purchase);
3234
setResult(RESULT_CANCELED);
3335

3436
billingHelper = new IabHelper(this, AppProperties.BASE_64_KEY);

0 commit comments

Comments
 (0)