373 lines
19 KiB
XML
373 lines
19 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/gradient_background"
|
|
android:orientation="vertical"
|
|
tools:context="com.tommasoberlose.anotherwidget.ui.activity.SupportDevActivity">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_margin="32dp"
|
|
android:id="@+id/toolbar"
|
|
android:gravity="center_vertical">
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/main_pre_title"
|
|
android:alpha="0.6"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:gravity="center_vertical"
|
|
style="@style/AnotherWidget.Main.Subtitle"
|
|
android:textAllCaps="true"/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/support_custom_app_name"
|
|
android:gravity="center_vertical"
|
|
style="@style/AnotherWidget.Main.Title"
|
|
android:textAllCaps="true"/>
|
|
</LinearLayout>
|
|
<android.support.v7.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:cardCornerRadius="3dp"
|
|
android:id="@+id/products_card"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:background="@android:color/white"
|
|
app:cardBackgroundColor="@android:color/white">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_action_gift"
|
|
android:tint="@color/dark_grey"/>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/support_main_title"
|
|
android:textColor="@android:color/black"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:padding="8dp"
|
|
android:layout_marginTop="2dp"
|
|
android:layout_marginBottom="4dp"
|
|
android:textAppearance="?android:textAppearanceListItem"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<ProgressBar
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:id="@+id/loader"
|
|
android:layout_margin="16dp"/>
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/products_list"
|
|
android:paddingLeft="8dp"
|
|
android:paddingRight="8dp"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/action_donation_coffee"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="12dp"
|
|
android:paddingBottom="12dp">
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.8"
|
|
android:text="@string/donation_coffee"
|
|
android:paddingRight="8dp"
|
|
android:paddingLeft="40dp"
|
|
android:textColor="@color/dark_grey"
|
|
android:textAppearance="?android:textAppearanceButton"/>
|
|
|
|
<android.support.v7.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:cardCornerRadius="2dp"
|
|
app:cardElevation="0dp"
|
|
app:cardBackgroundColor="@color/black_10"
|
|
app:cardPreventCornerOverlap="true">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="6dp"
|
|
android:paddingRight="6dp"
|
|
android:paddingBottom="4dp"
|
|
android:paddingTop="4dp"
|
|
android:textColor="@color/black_50"
|
|
android:id="@+id/import_donation_coffee"
|
|
android:textSize="12sp"/>
|
|
</android.support.v7.widget.CardView>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/action_donation_donuts"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="12dp"
|
|
android:paddingBottom="12dp">
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.8"
|
|
android:text="@string/donation_donuts"
|
|
android:paddingRight="8dp"
|
|
android:paddingLeft="40dp"
|
|
android:textColor="@color/dark_grey"
|
|
android:textAppearance="?android:textAppearanceButton"/>
|
|
|
|
<android.support.v7.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:cardCornerRadius="2dp"
|
|
app:cardElevation="0dp"
|
|
app:cardBackgroundColor="@color/black_10"
|
|
app:cardPreventCornerOverlap="true">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="6dp"
|
|
android:paddingRight="6dp"
|
|
android:paddingBottom="4dp"
|
|
android:paddingTop="4dp"
|
|
android:textColor="@color/black_50"
|
|
android:id="@+id/import_donation_donuts"
|
|
android:textSize="12sp"/>
|
|
</android.support.v7.widget.CardView>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/action_donation_breakfast"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="12dp"
|
|
android:paddingBottom="12dp">
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.8"
|
|
android:text="@string/donation_breakfast"
|
|
android:paddingRight="8dp"
|
|
android:paddingLeft="40dp"
|
|
android:textColor="@color/dark_grey"
|
|
android:textAppearance="?android:textAppearanceButton"/>
|
|
|
|
<android.support.v7.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:cardCornerRadius="2dp"
|
|
app:cardElevation="0dp"
|
|
app:cardBackgroundColor="@color/black_10"
|
|
app:cardPreventCornerOverlap="true">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="6dp"
|
|
android:paddingRight="6dp"
|
|
android:paddingBottom="4dp"
|
|
android:paddingTop="4dp"
|
|
android:textColor="@color/black_50"
|
|
android:id="@+id/import_donation_breakfast"
|
|
android:textSize="12sp"/>
|
|
</android.support.v7.widget.CardView>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/action_donation_lunch"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="12dp"
|
|
android:paddingBottom="12dp">
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.8"
|
|
android:text="@string/donation_lunch"
|
|
android:paddingRight="8dp"
|
|
android:paddingLeft="40dp"
|
|
android:textColor="@color/dark_grey"
|
|
android:textAppearance="?android:textAppearanceButton"/>
|
|
|
|
<android.support.v7.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:cardCornerRadius="2dp"
|
|
app:cardElevation="0dp"
|
|
app:cardBackgroundColor="@color/black_10"
|
|
app:cardPreventCornerOverlap="true">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="6dp"
|
|
android:paddingRight="6dp"
|
|
android:paddingBottom="4dp"
|
|
android:paddingTop="4dp"
|
|
android:textColor="@color/black_50"
|
|
android:id="@+id/import_donation_lunch"
|
|
android:textSize="12sp"/>
|
|
</android.support.v7.widget.CardView>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/action_donation_dinner"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="12dp"
|
|
android:paddingBottom="12dp">
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.8"
|
|
android:text="@string/donation_dinner"
|
|
android:paddingRight="8dp"
|
|
android:paddingLeft="40dp"
|
|
android:textColor="@color/dark_grey"
|
|
android:textAppearance="?android:textAppearanceButton"/>
|
|
|
|
<android.support.v7.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:cardCornerRadius="2dp"
|
|
app:cardElevation="0dp"
|
|
app:cardBackgroundColor="@color/black_10"
|
|
app:cardPreventCornerOverlap="true">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="6dp"
|
|
android:paddingRight="6dp"
|
|
android:paddingBottom="4dp"
|
|
android:paddingTop="4dp"
|
|
android:textColor="@color/black_50"
|
|
android:id="@+id/import_donation_dinner"
|
|
android:textSize="12sp"/>
|
|
</android.support.v7.widget.CardView>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</LinearLayout>
|
|
</android.support.v7.widget.CardView>
|
|
<android.support.v7.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:cardCornerRadius="3dp"
|
|
android:id="@+id/action_translate"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:background="@android:color/white"
|
|
app:cardBackgroundColor="@android:color/white">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:padding="8dp"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_action_translate"
|
|
android:tint="@color/dark_grey"/>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:paddingRight="8dp"
|
|
android:paddingLeft="8dp"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/support_translations_title"
|
|
android:textColor="@color/dark_grey"
|
|
style="@style/AnotherWidget.Settings.Title"/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/support_translations_subtitle"
|
|
android:textColor="@android:color/black"
|
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</android.support.v7.widget.CardView>
|
|
<android.support.v7.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:cardCornerRadius="3dp"
|
|
android:id="@+id/action_website"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:background="@android:color/white"
|
|
app:cardBackgroundColor="@android:color/white">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:padding="8dp"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_action_dev"
|
|
android:tint="@color/dark_grey"/>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:paddingRight="8dp"
|
|
android:paddingLeft="8dp"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/support_website_title"
|
|
android:textColor="@color/dark_grey"
|
|
style="@style/AnotherWidget.Settings.Title"/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/support_website_subtitle"
|
|
android:textColor="@android:color/black"
|
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</android.support.v7.widget.CardView>
|
|
</LinearLayout>
|