Bug fixes
This commit is contained in:
parent
666bb4dcd9
commit
37920e2991
@ -13,7 +13,7 @@ android {
|
|||||||
applicationId "com.tommasoberlose.anotherwidget"
|
applicationId "com.tommasoberlose.anotherwidget"
|
||||||
minSdkVersion 19
|
minSdkVersion 19
|
||||||
targetSdkVersion 26
|
targetSdkVersion 26
|
||||||
versionCode 2
|
versionCode 3
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":2},"path":"app-release.apk","properties":{"packageId":"com.tommasoberlose.anotherwidget","split":"","minSdkVersion":"19"}}]
|
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":3},"path":"app-release.apk","properties":{"packageId":"com.tommasoberlose.anotherwidget","split":"","minSdkVersion":"19"}}]
|
@ -1,262 +1,257 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<android.support.design.widget.CoordinatorLayout
|
<LinearLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
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"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context="com.tommasoberlose.anotherwidget.ui.activity.MainActivity">
|
tools:context="com.tommasoberlose.anotherwidget.ui.activity.MainActivity"
|
||||||
|
android:background="@drawable/gradient_background"
|
||||||
|
android:orientation="vertical">
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/gradient_background"
|
android:orientation="vertical"
|
||||||
android:orientation="vertical">
|
android:layout_margin="32dp"
|
||||||
<LinearLayout
|
android:id="@+id/toolbar"
|
||||||
|
android:gravity="center_vertical">
|
||||||
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:text="@string/main_pre_title"
|
||||||
android:layout_margin="32dp"
|
android:alpha="0.6"
|
||||||
android:id="@+id/toolbar"
|
android:paddingLeft="16dp"
|
||||||
android:gravity="center_vertical">
|
android:paddingRight="16dp"
|
||||||
<TextView
|
android:gravity="center_vertical"
|
||||||
android:layout_width="match_parent"
|
style="@style/AnotherWidget.Main.Subtitle"
|
||||||
android:layout_height="wrap_content"
|
android:textAllCaps="true"/>
|
||||||
android:text="@string/main_pre_title"
|
<TextView
|
||||||
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/app_name"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
style="@style/AnotherWidget.Main.Title"
|
|
||||||
android:textAllCaps="true"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<RelativeLayout
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="128dp"
|
android:layout_height="wrap_content"
|
||||||
android:id="@+id/widget">
|
android:text="@string/app_name"
|
||||||
<ImageView
|
android:gravity="center_vertical"
|
||||||
android:layout_width="match_parent"
|
style="@style/AnotherWidget.Main.Title"
|
||||||
android:layout_height="match_parent"
|
android:textAllCaps="true"/>
|
||||||
android:scaleType="centerCrop"
|
</LinearLayout>
|
||||||
android:id="@+id/widget_bg"/>
|
<RelativeLayout
|
||||||
<include
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="128dp"
|
||||||
android:layout_height="match_parent"
|
android:id="@+id/widget">
|
||||||
layout="@layout/the_widget"/>
|
<ImageView
|
||||||
</RelativeLayout>
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:id="@+id/widget_bg"/>
|
||||||
|
<include
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
layout="@layout/the_widget"/>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="3">
|
||||||
|
<ScrollView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="3">
|
android:id="@+id/all_set_container">
|
||||||
<ScrollView
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:id="@+id/all_set_container">
|
android:orientation="vertical"
|
||||||
|
android:paddingTop="20dp"
|
||||||
|
android:paddingBottom="20dp">
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:paddingTop="8dp"
|
||||||
|
android:paddingBottom="8dp"
|
||||||
android:paddingLeft="32dp"
|
android:paddingLeft="32dp"
|
||||||
android:paddingRight="32dp"
|
android:paddingRight="32dp"
|
||||||
android:paddingTop="20dp"
|
android:clickable="true"
|
||||||
android:paddingBottom="20dp">
|
android:focusable="true"
|
||||||
<LinearLayout
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:layout_width="match_parent"
|
android:gravity="center_vertical"
|
||||||
|
android:id="@+id/action_change_unit"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="8dp"
|
style="@style/AnotherWidget.Settings.Title"
|
||||||
android:paddingBottom="8dp"
|
android:text="@string/settings_unit_title"/>
|
||||||
android:clickable="true"
|
<TextView
|
||||||
android:focusable="true"
|
android:layout_width="wrap_content"
|
||||||
android:foreground="?android:attr/selectableItemBackground"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:id="@+id/temp_unit"
|
||||||
android:id="@+id/action_change_unit"
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
||||||
android:orientation="vertical">
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/AnotherWidget.Settings.Title"
|
|
||||||
android:text="@string/settings_unit_title"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:id="@+id/temp_unit"
|
|
||||||
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
||||||
</LinearLayout>
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:id="@+id/no_calendar_permission_container"
|
||||||
|
android:layout_centerInParent="true"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="48dp"
|
||||||
|
android:padding="14dp"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:id="@+id/no_calendar_permission_container"
|
android:tint="@android:color/white"
|
||||||
android:layout_centerInParent="true"
|
android:background="@drawable/circle_background"
|
||||||
android:orientation="vertical">
|
android:src="@drawable/ic_action_calendar"/>
|
||||||
<ImageView
|
<TextView
|
||||||
android:layout_width="48dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="48dp"
|
android:layout_height="wrap_content"
|
||||||
android:padding="14dp"
|
style="@style/AnotherWidget.Main.Title"
|
||||||
android:visibility="gone"
|
android:paddingTop="16dp"
|
||||||
android:tint="@android:color/white"
|
android:paddingRight="32dp"
|
||||||
android:background="@drawable/circle_background"
|
android:paddingLeft="32dp"
|
||||||
android:src="@drawable/ic_action_calendar"/>
|
android:text="@string/title_permission_calendar"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
style="@style/AnotherWidget.Main.Title"
|
style="@style/AnotherWidget.Main.Description"
|
||||||
android:paddingTop="16dp"
|
android:paddingBottom="32dp"
|
||||||
android:paddingRight="32dp"
|
android:paddingRight="32dp"
|
||||||
android:paddingLeft="32dp"
|
android:paddingLeft="32dp"
|
||||||
android:text="@string/title_permission_calendar"/>
|
android:text="@string/description_permission_calendar"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
style="@style/AnotherWidget.Main.Description"
|
style="@style/AnotherWidget.Main.Button"
|
||||||
android:paddingBottom="32dp"
|
android:id="@+id/request_calendar"
|
||||||
android:paddingRight="32dp"
|
android:text="@string/button_request_permission"/>
|
||||||
android:paddingLeft="32dp"
|
</LinearLayout>
|
||||||
android:text="@string/description_permission_calendar"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/AnotherWidget.Main.Button"
|
|
||||||
android:id="@+id/request_calendar"
|
|
||||||
android:text="@string/button_request_permission"/>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:gravity="center"
|
|
||||||
android:id="@+id/no_location_permission_container"
|
|
||||||
android:layout_centerInParent="true"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:visibility="gone">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="48dp"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
android:padding="14dp"
|
|
||||||
android:visibility="gone"
|
|
||||||
android:tint="@android:color/white"
|
|
||||||
android:background="@drawable/circle_background"
|
|
||||||
android:src="@drawable/ic_action_location"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/AnotherWidget.Main.Title"
|
|
||||||
android:paddingTop="16dp"
|
|
||||||
android:paddingRight="32dp"
|
|
||||||
android:paddingLeft="32dp"
|
|
||||||
android:text="@string/title_permission_location"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/AnotherWidget.Main.Description"
|
|
||||||
android:paddingBottom="32dp"
|
|
||||||
android:paddingRight="32dp"
|
|
||||||
android:paddingLeft="32dp"
|
|
||||||
android:text="@string/description_permission_location"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/AnotherWidget.Main.Button"
|
|
||||||
android:id="@+id/request_location"
|
|
||||||
android:text="@string/button_request_permission"/>
|
|
||||||
</LinearLayout>
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:baselineAligned="false"
|
android:id="@+id/no_location_permission_container"
|
||||||
android:id="@+id/menu_container"
|
android:layout_centerInParent="true"
|
||||||
android:background="@color/midnight_blue"
|
android:orientation="vertical"
|
||||||
android:layout_gravity="bottom">
|
android:visibility="gone">
|
||||||
<LinearLayout
|
<ImageView
|
||||||
android:layout_width="0dp"
|
android:layout_width="48dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="48dp"
|
||||||
android:layout_weight="3"
|
android:padding="14dp"
|
||||||
android:gravity="center"
|
android:visibility="gone"
|
||||||
android:paddingBottom="8dp"
|
android:tint="@android:color/white"
|
||||||
android:paddingTop="8dp"
|
android:background="@drawable/circle_background"
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:src="@drawable/ic_action_location"/>
|
||||||
android:clickable="true"
|
<TextView
|
||||||
android:focusable="true"
|
android:layout_width="wrap_content"
|
||||||
android:id="@+id/action_share"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
style="@style/AnotherWidget.Main.Title"
|
||||||
<ImageView
|
android:paddingTop="16dp"
|
||||||
android:layout_width="24dp"
|
android:paddingRight="32dp"
|
||||||
android:layout_height="24dp"
|
android:paddingLeft="32dp"
|
||||||
android:padding="2dp"
|
android:text="@string/title_permission_location"/>
|
||||||
android:layout_marginTop="8dp"
|
<TextView
|
||||||
android:src="@drawable/ic_action_sms"/>
|
android:layout_width="wrap_content"
|
||||||
<TextView
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="match_parent"
|
style="@style/AnotherWidget.Main.Description"
|
||||||
android:layout_height="wrap_content"
|
android:paddingBottom="32dp"
|
||||||
android:text="@string/action_share"
|
android:paddingRight="32dp"
|
||||||
style="@style/AnotherWidget.Main.Button.TabBar"
|
android:paddingLeft="32dp"
|
||||||
android:background="@android:color/transparent"/>
|
android:text="@string/description_permission_location"/>
|
||||||
</LinearLayout>
|
<TextView
|
||||||
<LinearLayout
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="match_parent"
|
style="@style/AnotherWidget.Main.Button"
|
||||||
android:layout_weight="3"
|
android:id="@+id/request_location"
|
||||||
android:gravity="center"
|
android:text="@string/button_request_permission"/>
|
||||||
android:paddingBottom="8dp"
|
|
||||||
android:paddingTop="8dp"
|
|
||||||
android:background="?android:attr/selectableItemBackground"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:id="@+id/action_project"
|
|
||||||
android:orientation="vertical">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="24dp"
|
|
||||||
android:padding="2dp"
|
|
||||||
android:layout_marginTop="8dp"
|
|
||||||
android:src="@drawable/ic_action_code"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/action_project"
|
|
||||||
style="@style/AnotherWidget.Main.Button.TabBar"
|
|
||||||
android:background="@android:color/transparent"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="3"
|
|
||||||
android:gravity="center"
|
|
||||||
android:paddingBottom="8dp"
|
|
||||||
android:paddingTop="8dp"
|
|
||||||
android:background="?android:attr/selectableItemBackground"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:id="@+id/action_support"
|
|
||||||
android:orientation="vertical">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="24dp"
|
|
||||||
android:padding="2dp"
|
|
||||||
android:layout_marginTop="8dp"
|
|
||||||
android:src="@drawable/ic_action_gift"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/action_support"
|
|
||||||
style="@style/AnotherWidget.Main.Button.TabBar"
|
|
||||||
android:background="@android:color/transparent"/>
|
|
||||||
</LinearLayout>
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:baselineAligned="false"
|
||||||
|
android:id="@+id/menu_container"
|
||||||
|
android:background="@color/midnight_blue"
|
||||||
|
android:layout_gravity="bottom">
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="3"
|
||||||
|
android:gravity="center"
|
||||||
|
android:paddingBottom="8dp"
|
||||||
|
android:paddingTop="8dp"
|
||||||
|
android:background="?android:attr/selectableItemBackground"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:id="@+id/action_share"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="24dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:padding="2dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:src="@drawable/ic_action_sms"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/action_share"
|
||||||
|
style="@style/AnotherWidget.Main.Button.TabBar"
|
||||||
|
android:background="@android:color/transparent"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="3"
|
||||||
|
android:gravity="center"
|
||||||
|
android:paddingBottom="8dp"
|
||||||
|
android:paddingTop="8dp"
|
||||||
|
android:background="?android:attr/selectableItemBackground"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:id="@+id/action_project"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="24dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:padding="2dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:src="@drawable/ic_action_code"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/action_project"
|
||||||
|
style="@style/AnotherWidget.Main.Button.TabBar"
|
||||||
|
android:background="@android:color/transparent"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="3"
|
||||||
|
android:gravity="center"
|
||||||
|
android:paddingBottom="8dp"
|
||||||
|
android:paddingTop="8dp"
|
||||||
|
android:background="?android:attr/selectableItemBackground"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:id="@+id/action_support"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="24dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:padding="2dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:src="@drawable/ic_action_gift"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/action_support"
|
||||||
|
style="@style/AnotherWidget.Main.Button.TabBar"
|
||||||
|
android:background="@android:color/transparent"/>
|
||||||
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</android.support.design.widget.CoordinatorLayout>
|
|
||||||
|
</LinearLayout>
|
Loading…
x
Reference in New Issue
Block a user