Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjingkanji committed Oct 7, 2023
1 parent d0dcc4b commit 6e90b32
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import com.drake.engine.base.EngineFragment
import com.drake.net.*
import com.drake.net.sample.R
import com.drake.net.sample.constants.Api
import com.drake.net.sample.databinding.FragmentRequestMethodBinding
import com.drake.net.sample.databinding.FragmentSimpleRequestBinding
import com.drake.net.utils.scopeNetLife


class RequestMethodFragment :
EngineFragment<FragmentRequestMethodBinding>(R.layout.fragment_request_method) {
class SimpleRequestFragment :
EngineFragment<FragmentSimpleRequestBinding>(R.layout.fragment_simple_request) {

override fun initView() {
setHasOptionsMenu(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.fragment.RequestMethodFragment">
tools:context=".ui.fragment.SimpleRequestFragment">

<TextView
android:id="@+id/tvFragment"
Expand Down
6 changes: 3 additions & 3 deletions sample/src/main/res/menu/menu_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/request_method"
android:icon="@drawable/ic_request_method"
android:title="请求方式" />
android:id="@+id/simple_request"
android:icon="@drawable/ic_simple_request"
android:title="简单请求" />
<item
android:id="@+id/request_sync"
android:icon="@drawable/ic_sync_request"
Expand Down
10 changes: 5 additions & 5 deletions sample/src/main/res/navigation/nav_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
app:startDestination="@id/request_method">
app:startDestination="@id/simple_request">

<fragment
android:id="@+id/async_task"
Expand Down Expand Up @@ -58,10 +58,10 @@
android:label="预读缓存"
tools:layout="@layout/fragment_read_cache" />
<fragment
android:id="@+id/request_method"
android:name="com.drake.net.sample.ui.fragment.RequestMethodFragment"
android:label="请求方式"
tools:layout="@layout/fragment_request_method" />
android:id="@+id/simple_request"
android:name="com.drake.net.sample.ui.fragment.SimpleRequestFragment"
android:label="简单请求"
tools:layout="@layout/fragment_simple_request" />
<fragment
android:id="@+id/state_layout"
android:name="com.drake.net.sample.ui.fragment.StateLayoutFragment"
Expand Down

0 comments on commit 6e90b32

Please sign in to comment.