添加今日头条的屏幕适配

This commit is contained in:
renjianbo0118
2021-07-21 22:40:25 +08:00
parent 9ed2d76bf1
commit d73374bc4e
7 changed files with 15 additions and 22 deletions

View File

@@ -3,6 +3,7 @@
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />

View File

@@ -158,6 +158,7 @@ android {
implementation 'cn.jiguang.sdk:jcore:2.3.8'
implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.5@aar'
api 'io.reactivex.rxjava2:rxjava:2.1.5'
implementation 'me.jessyan:autosize:1.1.2'
}
}

View File

@@ -413,6 +413,13 @@
android:theme="@style/wxPayTheme"
android:windowSoftInputMode="adjustPan|stateAlwaysHidden" />
<activity android:name=".discovery.LikeActivity" />
<!-- 如果您项目中的所有页面都只需要以高或宽中的一个作为基准进行适配的话, 那就只需要填写高或宽中的一个设计图尺寸即可 -->
<meta-data
android:name="design_width_in_dp"
android:value="360"/>
<meta-data
android:name="design_height_in_dp"
android:value="640"/>
</application>
</manifest>

View File

@@ -105,25 +105,7 @@
android:layout_width="match_parent"
android:layout_height="0.5dip"
android:background="@color/lightlittleGrey" />
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:orientation="vertical"-->
<!-- android:layout_height="wrap_content">-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:text="地址"-->
<!-- android:layout_marginLeft="20dip"-->
<!-- android:layout_marginRight="20dp"-->
<!-- android:layout_marginTop="20dp"-->
<!-- android:layout_height="wrap_content" />-->
<!-- <RadioGroup-->
<!-- android:layout_width="match_parent"-->
<!-- android:id="@+id/myradio"-->
<!-- android:layout_margin="18dip"-->
<!-- android:layout_height="match_parent">-->
<!-- </RadioGroup>-->
<!-- </LinearLayout>-->
<LinearLayout
android:visibility="gone"
android:layout_width="match_parent"

View File

@@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.android.tools.build:gradle:4.2.2'
// NOTE: Do not place your application dependencies here; they belong

View File

@@ -1,6 +1,6 @@
#Mon Aug 03 09:06:55 CST 2020
#Wed Jul 21 22:05:06 CST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
zipStoreBase=GRADLE_USER_HOME

2
技术文档 Normal file
View File

@@ -0,0 +1,2 @@
1.今日头条适配https://github.com/JessYanCoding/AndroidAutoSize
使用方法https://blog.csdn.net/taowuhua0505/article/details/88239803