修复 在魅族设备上新建项目、问题反馈、打包应用等崩溃的问题
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
android:layout_weight="1"
|
||||
android:hint="@string/text_source_file_path">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/source_path"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -98,7 +98,7 @@
|
||||
android:layout_weight="1"
|
||||
android:hint="@string/text_output_apk_path">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/output_path"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -147,7 +147,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text_app_name">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/app_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
@@ -159,7 +159,7 @@
|
||||
android:layout_marginTop="12dp"
|
||||
android:hint="@string/text_package_name">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/package_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -183,7 +183,7 @@
|
||||
android:layout_marginTop="12dp"
|
||||
android:hint="@string/text_version_name">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/version_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -197,7 +197,7 @@
|
||||
android:layout_marginTop="12dp"
|
||||
android:hint="@string/text_version_code">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/version_code"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
android:layout_marginBottom="8dp"
|
||||
android:hint="@string/text_username">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/username"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -53,7 +53,7 @@
|
||||
android:layout_marginRight="8dp"
|
||||
android:hint="@string/text_password">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text_app_name">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/app_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
@@ -73,7 +73,7 @@
|
||||
android:layout_marginTop="12dp"
|
||||
android:hint="@string/text_package_name">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/package_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -97,7 +97,7 @@
|
||||
android:layout_marginTop="12dp"
|
||||
android:hint="@string/text_version_name">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/version_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -111,11 +111,10 @@
|
||||
android:layout_marginTop="12dp"
|
||||
android:hint="@string/text_version_code">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/version_code"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
android:inputType="number"
|
||||
android:text="1"/>
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
@@ -154,7 +153,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text_project_location">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/project_location"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -193,7 +192,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text_main_file_name">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/main_file_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
android:layout_marginBottom="8dp"
|
||||
android:hint="@string/text_email">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/email"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -54,7 +54,7 @@
|
||||
android:layout_marginBottom="8dp"
|
||||
android:hint="@string/text_username">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/username"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -69,7 +69,7 @@
|
||||
android:layout_marginRight="8dp"
|
||||
android:hint="@string/text_password">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -417,7 +417,7 @@
|
||||
android:hint="@string/text_broadcast_action">
|
||||
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/action"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<include
|
||||
layout="@layout/air_card_login"
|
||||
layout="@layout/air_card_login_compat"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/air_card_margin_top"/>
|
||||
|
||||
156
app/src/main/res/layout/air_card_login_compat.xml
Normal file
156
app/src/main/res/layout/air_card_login_compat.xml
Normal file
@@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ MIT License
|
||||
~
|
||||
~ Copyright (c) 2017 Jan Heinrich Reimer
|
||||
~
|
||||
~ Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
~ of this software and associated documentation files (the "Software"), to deal
|
||||
~ in the Software without restriction, including without limitation the rights
|
||||
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
~ copies of the Software, and to permit persons to whom the Software is
|
||||
~ furnished to do so, subject to the following conditions:
|
||||
~
|
||||
~ The above copyright notice and this permission notice shall be included in all
|
||||
~ copies or substantial portions of the Software.
|
||||
~
|
||||
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
~ SOFTWARE.
|
||||
-->
|
||||
|
||||
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:cardBackgroundColor="?cardBackgroundColor">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/air_baseline">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/air_title_login"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
||||
android:textColor="?android:textColorSecondary"/>
|
||||
|
||||
<RadioGroup xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/air_optionUseAccount"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/air_baseline"
|
||||
android:checked="true"
|
||||
android:paddingStart="@dimen/air_radio_button_padding_start"
|
||||
android:paddingLeft="@dimen/air_radio_button_padding_start"
|
||||
android:paddingEnd="0dp"
|
||||
android:paddingRight="0dp"
|
||||
android:text="@string/air_label_use_account"/>
|
||||
|
||||
<com.github.aakira.expandablelayout.ExpandableRelativeLayout
|
||||
android:id="@+id/air_layoutLogin"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:ael_expanded="true"
|
||||
app:ael_interpolator="fastOutSlowIn"
|
||||
app:ael_orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/air_baseline_half"
|
||||
android:hint="@string/air_label_username">
|
||||
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/air_inputUsername"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textNoSuggestions"
|
||||
android:maxLines="1"/>
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/air_baseline_half"
|
||||
android:hint="@string/air_label_password"
|
||||
app:passwordToggleEnabled="true">
|
||||
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/air_inputPassword"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:imeOptions="actionSend"
|
||||
android:inputType="textPassword"/>
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.github.aakira.expandablelayout.ExpandableRelativeLayout>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/air_optionAnonymous"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/air_baseline"
|
||||
android:paddingStart="@dimen/air_radio_button_padding_start"
|
||||
android:paddingLeft="@dimen/air_radio_button_padding_start"
|
||||
android:paddingEnd="0dp"
|
||||
android:paddingRight="0dp"
|
||||
android:text="@string/air_label_use_guest"/>
|
||||
|
||||
<com.github.aakira.expandablelayout.ExpandableRelativeLayout
|
||||
android:id="@+id/air_layoutGuest"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:ael_expanded="false"
|
||||
app:ael_interpolator="fastOutSlowIn"
|
||||
app:ael_orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/air_inputEmailParent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/air_baseline_half"
|
||||
android:hint="@string/air_label_email_optional">
|
||||
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/air_inputEmail"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textEmailAddress"
|
||||
android:maxLines="1"/>
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.github.aakira.expandablelayout.ExpandableRelativeLayout>
|
||||
</RadioGroup>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</android.support.v7.widget.CardView>
|
||||
@@ -47,7 +47,7 @@
|
||||
android:layout_marginTop="@dimen/air_baseline"
|
||||
android:hint="@string/air_label_issue_title">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/air_inputTitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -62,7 +62,7 @@
|
||||
android:layout_marginTop="@dimen/air_baseline_half"
|
||||
android:hint="@string/air_label_issue_description">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/air_inputDescription"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
android:hint="@string/text_class_or_package_name"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/keywords"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text_loop_times">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/loop_times"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -37,7 +37,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text_loop_interval">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/loop_interval"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -52,7 +52,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/text_loop_delay">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/loop_delay"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
android:layout_gravity="center_vertical"
|
||||
android:hint="@string/text_name">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
Reference in New Issue
Block a user