android_calculator-56: Billing doesn't work if internet was off on the start of application

This commit is contained in:
Sergey Solovyev
2012-01-14 20:37:21 +04:00
parent 20392b00ad
commit c005610cb5
11 changed files with 148 additions and 52 deletions

13
res/layout/admob_pref.xml Normal file
View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2009-2012. Created by serso aka se.solovyev.
~ For more information, please, contact se.solovyev@gmail.com
~ or visit http://se.solovyev.org
-->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" android:orientation="vertical">
</LinearLayout>

View File

@@ -6,19 +6,26 @@
~ or visit http://se.solovyev.org
-->
<ScrollView xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_width="fill_parent"
a:layout_height="fill_parent">
<TextView
a:text="@string/c_faq_content"
<LinearLayout
a:orientation="vertical"
a:id="@+id/ad_parent_view"
a:layout_width="fill_parent"
a:layout_height="fill_parent"
a:gravity="top|left"
a:layout_weight="1"
a:scrollbars="vertical"
style="@style/about_style"/>
a:layout_height="fill_parent">
<TextView
a:text="@string/c_faq_content"
a:layout_width="fill_parent"
a:layout_height="fill_parent"
a:gravity="top|left"
a:layout_weight="1"
a:scrollbars="vertical"
style="@style/about_style"/>
</LinearLayout>
</ScrollView>

View File

@@ -9,12 +9,19 @@
a:layout_width="fill_parent"
a:layout_height="fill_parent">
<TextView
xmlns:a="http://schemas.android.com/apk/res/android"
a:text="@string/c_hints_content"
a:gravity="top|left"
a:layout_weight="1"
a:scrollbars="vertical"
style="@style/about_style"/>
<LinearLayout
a:orientation="vertical"
a:id="@+id/ad_parent_view"
a:layout_width="fill_parent"
a:layout_height="fill_parent">
<TextView
xmlns:a="http://schemas.android.com/apk/res/android"
a:text="@string/c_hints_content"
a:gravity="top|left"
a:layout_weight="1"
a:scrollbars="vertical"
style="@style/about_style"/>
</LinearLayout>
</ScrollView>

View File

@@ -9,12 +9,20 @@
a:layout_width="fill_parent"
a:layout_height="fill_parent">
<TextView
xmlns:a="http://schemas.android.com/apk/res/android"
a:text="@string/c_screens_content"
a:gravity="top|left"
a:layout_weight="1"
a:scrollbars="vertical"
style="@style/about_style"/>
<LinearLayout
a:orientation="vertical"
a:id="@+id/ad_parent_view"
a:layout_width="fill_parent"
a:layout_height="fill_parent">
<TextView
xmlns:a="http://schemas.android.com/apk/res/android"
a:text="@string/c_screens_content"
a:gravity="top|left"
a:layout_weight="1"
a:scrollbars="vertical"
style="@style/about_style"/>
</LinearLayout>
</ScrollView>

View File

@@ -12,6 +12,10 @@
<PreferenceCategory a:title="@string/c_prefs_calculations_category">
<org.solovyev.android.view.prefs.AdViewPreference
a:key="admob_01"
a:layout="@layout/admob_pref"/>
<android.preference.CheckBoxPreference
a:key="@string/p_calc_round_result_key"
a:summary="@string/c_calc_round_result_summary"
@@ -54,6 +58,10 @@
<PreferenceCategory a:title="@string/c_prefs_appearance_category">
<org.solovyev.android.view.prefs.AdViewPreference
a:key="admob_02"
a:layout="@layout/admob_pref"/>
<android.preference.CheckBoxPreference
a:key="@string/p_calc_color_display_key"
a:summary="@string/c_calc_color_display_summary"