pull/1273/head
gedoor 3 years ago
parent 5e4d8c4afb
commit 0bd978d6b7
  1. 3
      app/build.gradle
  2. 6
      app/src/main/java/io/legado/app/ui/login/SourceLoginActivity.kt
  3. 3
      app/src/main/res/layout/activity_source_login.xml
  4. 6
      app/src/main/res/layout/activity_translucence.xml

@ -182,7 +182,8 @@ dependencies {
// //
implementation('com.squareup.okhttp3:okhttp:4.9.1') implementation('com.squareup.okhttp3:okhttp:4.9.1')
implementation(fileTree(dir: 'cronetlib', include: ['*.jar', '*.aar'])) appImplementation(fileTree(dir: 'cronetlib', include: ['*.jar', '*.aar']))
googleImplementation 'com.google.android.gms:play-services-cronet:17.0.0'
//Glide //Glide
implementation('com.github.bumptech.glide:glide:4.12.0') implementation('com.github.bumptech.glide:glide:4.12.0')

@ -3,16 +3,16 @@ package io.legado.app.ui.login
import android.os.Bundle import android.os.Bundle
import androidx.activity.viewModels import androidx.activity.viewModels
import io.legado.app.R import io.legado.app.R
import io.legado.app.base.BaseActivity import io.legado.app.base.VMBaseActivity
import io.legado.app.data.entities.BookSource import io.legado.app.data.entities.BookSource
import io.legado.app.databinding.ActivitySourceLoginBinding import io.legado.app.databinding.ActivitySourceLoginBinding
import io.legado.app.utils.viewbindingdelegate.viewBinding import io.legado.app.utils.viewbindingdelegate.viewBinding
class SourceLoginActivity : BaseActivity<ActivitySourceLoginBinding>() { class SourceLoginActivity : VMBaseActivity<ActivitySourceLoginBinding, SourceLoginViewModel>() {
override val binding by viewBinding(ActivitySourceLoginBinding::inflate) override val binding by viewBinding(ActivitySourceLoginBinding::inflate)
private val viewModel by viewModels<SourceLoginViewModel>() override val viewModel by viewModels<SourceLoginViewModel>()
override fun onActivityCreated(savedInstanceState: Bundle?) { override fun onActivityCreated(savedInstanceState: Bundle?) {
intent.getStringExtra("sourceUrl")?.let { intent.getStringExtra("sourceUrl")?.let {

@ -3,6 +3,7 @@
android:id="@+id/fl_fragment" android:id="@+id/fl_fragment"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical"
android:background="@color/transparent50">
</LinearLayout> </LinearLayout>

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout 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_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/transparent50"> android:background="@color/transparent50">
<io.legado.app.ui.widget.anima.RotateLoading <io.legado.app.ui.widget.anima.RotateLoading
@ -11,10 +11,10 @@
android:layout_height="36dp" android:layout_height="36dp"
android:layout_margin="6dp" android:layout_margin="6dp"
android:visibility="gone" android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toTopOf="parent"
app:loading_width="2dp" /> app:loading_width="2dp" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
Loading…
Cancel
Save