一个-预览与设计

补更预览图 230518


明明每天都很忙,2022年就又没,太“兔”然了。

分享“一个”的Compose的样例,也是我最近手撸的一个App,来“兔”击一下

其实有人看的话也仅仅是看个结果而已,所以就不分享些细细碎碎的实现过程了,直接上干货,效果图+依赖包+接口,最后再附上我项目的结构树图

预览效果

one-home one-discover-hp one-radio
one-discover-author one-discover-rank one-discover-diary
one-about one-xingshu
home-viewpager essay-detail one-all

依赖包

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
dependencies {

val composeBom = platform(libs.androidx.compose.bom)
implementation(composeBom)
androidTestImplementation(composeBom)

implementation(libs.kotlin.stdlib)
implementation(libs.kotlinx.coroutines.android)

implementation(libs.androidx.compose.animation)
implementation(libs.androidx.compose.foundation.layout)
implementation(libs.androidx.compose.material.iconsExtended)
implementation(libs.androidx.compose.material3)
implementation(libs.androidx.compose.materialWindow)
implementation(libs.androidx.compose.runtime.livedata)
implementation(libs.androidx.compose.ui.tooling)
implementation(libs.androidx.compose.ui.tooling.preview)
implementation(libs.androidx.compose.ui.util)
implementation(libs.androidx.compose.ui.googlefonts)
implementation(libs.androidx.constraintlayout.compose)
debugImplementation(libs.androidx.compose.ui.test.manifest)
debugImplementation(libs.androidx.compose.ui.tooling)

implementation(libs.hilt.android)
kapt(libs.hilt.compiler)
implementation(libs.androidx.hilt.navigation.compose)

implementation(libs.accompanist.swiperefresh)
implementation(libs.accompanist.systemuicontroller)
implementation(libs.accompanist.pager)
implementation(libs.retrofit2)
implementation(libs.retrofit2.gson)
implementation(libs.okhttp3)
implementation(libs.okhttp3.logging)

implementation(libs.androidx.appcompat)
implementation(libs.androidx.activity.ktx)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.activity.compose)

implementation(libs.androidx.lifecycle.viewmodel.ktx)
implementation(libs.androidx.lifecycle.viewmodel.savedstate)
implementation(libs.androidx.lifecycle.livedata.ktx)
implementation(libs.androidx.lifecycle.viewModelCompose)
implementation(libs.androidx.lifecycle.runtime.compose)
implementation(libs.androidx.navigation.compose)
implementation(libs.androidx.paging)

implementation(libs.coil.kt.compose)
implementation(libs.jakewharton.timber)
implementation(libs.tencent.mmkv)
implementation(libs.tencent.bugly)
implementation(libs.shimmer)

implementation(libs.google.android.material)

androidTestImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.core)
androidTestImplementation(libs.androidx.test.runner)
androidTestImplementation(libs.androidx.test.espresso.core)
androidTestImplementation(libs.androidx.test.rules)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.kotlinx.coroutines.test)
androidTestImplementation(libs.androidx.compose.ui.test)
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
// Robolectric dependencies
testImplementation(libs.androidx.compose.ui.test.junit4)
testImplementation(libs.robolectric)
}

接口

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
import com.android.one.data.bean.*
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

const val ONE_API = "http://v3.wufazhuce.com:8000"

private const val CHANNEL = "360"//"cool"
private const val VERSION = "5.3.3"
private const val PLATFORM = "android"
private const val SIGN = "5c978571e36480d1fbb521d1f8e7eb7f"
private const val UUID = ""

interface OneService {

/**
* 获取xx年xx月份的往期列表
* http://v3.wufazhuce.com:8000/api/feeds/list/2022-06
*/
@GET("/api/feeds/list/{date}")
suspend fun feedsList(
@Path("date") date: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<FeedsItem>>

@GET("/api/onelist/idlist")
suspend fun oneList(
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<String>>

@GET("/api/channel/one/{date}/0")
suspend fun channelOneDate(
@Path("date") date: String = "2022-12-6",
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<One>

@GET("/api/onelist/{id}/0")
suspend fun channelOneId(
@Path("id") date: String = "6445",
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<One>

@GET("/api/hp/idlist/0")
suspend fun getPictures(
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<String>>

/**
* http://v3.wufazhuce.com:8000/api/hp/detail/3813
* 图片详情 "category": "0"
*/
@GET("/api/hp/detail/{content_id}")
suspend fun hpDetail(
@Path("content_id") contentId: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<HpData>

/**
* http://v3.wufazhuce.com:8000/api/essay/detail/5712
* 文章详情 "category": "1"
*/
@GET("/api/essay/detail/{content_id}")
suspend fun essayDetail(
@Path("content_id") contentId: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<Essay>

/**
* http://v3.wufazhuce.com:8000/api/serialcontent/detail/1615
* 连载 "category": "2"
*/
@GET("/api/serialcontent/detail/{content_id}")
suspend fun serialContentDetail(
@Path("content_id") contentId: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<SerialContent>

/**
* http://v3.wufazhuce.com:8000/api/question/detail/3621
* 连载 "category": "3"
*/
@GET("/api/question/detail/{content_id}")
suspend fun questionDetail(
@Path("content_id") contentId: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<Question>

@GET("/api/radio/detail/{content_id}")
suspend fun radioDetail(
@Path("content_id") contentId: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<Radio>

@GET("/api/music/detail/{content_id}")
suspend fun musicDetail(
@Path("content_id") contentId: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<Music>

@GET("/api/movie/detail/{content_id}")
suspend fun movieDetail(
@Path("content_id") contentId: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<Movie>

/**
* http://v3.wufazhuce.com:8000/api/banner/list/4?last_id=0
* 专题
*/
@GET("/api/banner/list/4")
suspend fun bannerList(
@Query("last_id") lastId: Int = 0,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<Banner>>

/**
* http://v3.wufazhuce.com:8000/api/channel/reading/more/0?channel=cool&version=4.6.3&platform=android
*/
@GET("/api/channel/reading/more/{last_id}")
suspend fun readingList(
@Path("last_id") lastId: String = "0",
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<ReadingItem>>

/**
* http://v3.wufazhuce.com:8000/api/channel/music/more/0?channel=cool&version=4.6.3&platform=android
*/
@GET("/api/channel/music/more/{last_id}")
suspend fun musicList(
@Path("last_id") lastId: String = "0",
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<MusicItem>>

/**
* http://v3.wufazhuce.com:8000/api/channel/movie/more/0?channel=cool&version=4.6.3&platform=android
*/
@GET("/api/channel/movie/more/{last_id}")
suspend fun movieList(
@Path("last_id") lastId: String = "0",
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<MovieItem>>

/**
* http://v3.wufazhuce.com:8000/api/author/hot
* 热门作者
*/
@GET("/api/author/hot")
suspend fun hotAuthor(
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<Author>>

/**
* http://v3.wufazhuce.com:8000/api/find/bymonth/0/2022-12?channel=360&sign=5c978571e36480d1fbb521d1f8e7eb7f&version=5.3.3&uuid=&platform=android
* 发现-图文
*/
@GET("/api/find/bymonth/{category}/{date}")
suspend fun findCategory(
@Path("category") category: Int,
@Path("date") date: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<Category>>

/**
* http://v3.wufazhuce.com:8000/api/find/rank?channel=360&sign=5c978571e36480d1fbb521d1f8e7eb7f&version=5.3.3&uuid=&platform=android
* 热榜
*/
@GET("/api/find/rank")
suspend fun findRank(
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<Rank>>


/**
* http://v3.wufazhuce.com:8000/api/find/rank/8?channel=yingyongbao&sign=663effea0f86f193ebec17a79be6860f&version=5.3.3&uuid=&platform=android
* 热榜详情
*/
@GET("/api/find/rank/{id}")
suspend fun findRankItem(
@Path("id") id: Int,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<RankItem>>

/**
* http://v3.wufazhuce.com:8000/api/diary/square/more/0/20?channel=360&sign=5c978571e36480d1fbb521d1f8e7eb7f&version=5.3.3&uuid=&platform=android
* 小记
*/
@GET("/api/diary/square/more/{last_id}/20")
suspend fun findDiary(
@Path("last_id") id: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<DiaryData>

/**
* http://v3.wufazhuce.com:8000/api/find/serial/byyear/2022?channel=360&sign=5c978571e36480d1fbb521d1f8e7eb7f&version=5.3.3&uuid=&platform=android
* 连载
*/
@GET("/api/find/serial/byyear/{year}")
suspend fun findSerial(
@Path("year") year: Int,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<Category>>

/**
* /api/user/info/12533772?user_id=12533772&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NzE1MjI2NDQsInVzZXJpZCI6IjEyNTMzNzcyIn0.jl9D6GcFXidB45R9kiKfncVHADceq92uEkKvjXdmWBU&channel=360&sign=8d68c8c63589bf1b9c7bd1ab6b7f1ecc&version=5.3.3&uuid=&platform=android
* /api/othercenter/12533772?user_id=12533772&channel=360&sign=92d71f1a573cec86b27705f1266968ec&version=5.3.3&uuid=&platform=android
* /api/signin?user_id=12533772&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NzE1MjI2NDQsInVzZXJpZCI6IjEyNTMzNzcyIn0.jl9D6GcFXidB45R9kiKfncVHADceq92uEkKvjXdmWBU&vendor=1&channel=360&sign=cd6a651acc8b9249fb5146feda700cfb&client_type=ANDROID&version=5.3.3&uuid=&platform=android&client_id=12b55d615cab3c496bee3750f329381e
* /api/user/follow_list?uid=12533772&last_id=0&user_id=12533772&channel=360&sign=54ba4b0a48552ae2b451cbe2c151fdbe&type=1&version=5.3.3&uuid=&platform=android
* /api/personal/diary?user_id=12533772&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NzE1MjI2NDQsInVzZXJpZCI6IjEyNTMzNzcyIn0.jl9D6GcFXidB45R9kiKfncVHADceq92uEkKvjXdmWBU&channel=360&sign=8d68c8c63589bf1b9c7bd1ab6b7f1ecc&version=5.3.3&uuid=&platform=android
* /api/personal/messages?user_id=12533772&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NzE1MjI2NDQsInVzZXJpZCI6IjEyNTMzNzcyIn0.jl9D6GcFXidB45R9kiKfncVHADceq92uEkKvjXdmWBU&channel=360&sign=1e7ead7901e40aac62f834659b76ca0d&last_datetime=0&version=5.3.3&uuid=&platform=android
* My Account Info
*/
@GET("/api/user/info/{id}")
suspend fun userInfo(
@Path("id") id: String = "12533772",
@Query("user_id") userId: String = "12533772",
@Query("jwt") jwt: String = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NzE1MjI2NDQsInVzZXJpZCI6IjEyNTMzNzcyIn0.jl9D6GcFXidB45R9kiKfncVHADceq92uEkKvjXdmWBU",
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<UserInfo>

/**
* http://v3.wufazhuce.com:8000/api/radio/active?user_id=12533772&channel=360&sign=92d71f1a573cec86b27705f1266968ec&version=5.3.3&uuid=&platform=android
* 主页面当前电台
*/
@GET("/api/find/serial/byyear/{year}")
suspend fun radioActive(
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<RadioActive>


/**
* http://v3.wufazhuce.com:8000/api/essay/htmlcontent/5728?user_id=12533772&channel=360&sign=ca40d6e1cd0086baafb322bd581bc729&source=summary&source_id=25371&version=5.3.3&uuid=&platform=android
* HTML在COMPOSE中显示太不友好了!
*/
@GET("/api/{category}/htmlcontent/{content_id}")
suspend fun htmlCategory(
@Path("category") category: String,
@Path("content_id") contentId: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<HtmlCategory>

/**
* 评论列表接口
* http://v3.wufazhuce.com:8000/api/comment/praiseandtime/radio/4097/0?user_id=12533772&channel=360&sign=92d71f1a573cec86b27705f1266968ec&version=5.3.3&uuid=&platform=android
*/
@GET("/api/comment/praiseandtime/{category}/{content_id}/{last_id}")
suspend fun commentCategory(
@Path("category") category: String,
@Path("content_id") contentId: String,
@Path("last_id") lastId: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<CommentData>

/**
* http://v3.wufazhuce.com:8000/api/relatedforwebview/essay/5730?user_id=12533772&channel=360&sign=92d71f1a573cec86b27705f1266968ec&version=5.3.3&uuid=&platform=android
* 相关文章推荐
*/
@GET("/api/relatedforwebview/{category}/{content_id}")
suspend fun relatedCategory(
@Path("category") category: String,
@Path("content_id") contentId: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<RelatedCategory>>

/**
* http://v3.wufazhuce.com:8000/api/author/info?channel=yingyongbao&sign=f2acf85b3f541fee3a97f1b6b3d0929e&author_id=4809091&version=5.3.3&uuid=&platform=android
* 作者信息
*/
@GET("/api/author/info")
suspend fun authorInfo(
@Query("author_id") authorId: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<Author>


/**
* http://v3.wufazhuce.com:8000/api/author/works?channel=yingyongbao&sign=28e415540840d6c61a3efa10adb614da&page_num=0&author_id=4809091&version=5.3.3&uuid=&platform=android
* 作者详情
*/
@GET("/api/author/works")
suspend fun authorWorks(
@Query("author_id") authorId: String,
@Query("page_num") pageNum: Int,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<List<OneContent>>

/**
* http://v3.wufazhuce.com:8000/api/topic/htmlcontent/144?channel=yingyongbao&sign=a0c9934aeaa8458cd64a61304332d932&source=banner&source_id=262&version=5.3.3&uuid=&platform=android
* 专题详情
*/
@GET("/api/topic/htmlcontent/{content_id}")
suspend fun htmlBanner(
@Path("content_id") contentId: String,
@Query("source") source: String = "banner",
@Query("source_id") id: Int,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<HtmlCategory>

/**
* http://v3.wufazhuce.com:8000/api/hp/bydate/2022-11-22?channel=yingyongbao&sign=663effea0f86f193ebec17a79be6860f&version=5.3.3&uuid=&platform=android
* 图片详情
*/
@GET("/api/hp/bydate/{date}")
suspend fun hpByDate(
@Path("date") date: String,
@Query("channel") channel: String = CHANNEL,
@Query("sign") sign: String = SIGN,
@Query("uuid") uuid: String = UUID,
@Query("version") version: String = VERSION,
@Query("platform") platform: String = PLATFORM
): ResponseOne<OneContent>

}

Tree

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
one/app/src/main$ tree
.
├── AndroidManifest.xml
├── assets
│   ├── essay.json
│   ├── hp.json
│   ├── question.json
│   ├── radio.json
│   ├── rank.json
│   ├── serial_content.json
│   ├── test.json
│   ├── user.json
│   └── weather.json
├── java
│   └── com
│   └── android
│   └── one
│   ├── data
│   │   ├── api
│   │   │   └── OneService.kt
│   │   ├── bean
│   │   │   ├── Answerer.kt
│   │   │   ├── Asker.kt
│   │   │   ├── Author.kt
│   │   │   ├── Banner.kt
│   │   │   ├── Category.kt
│   │   │   ├── CommentCategory.kt
│   │   │   ├── Diary.kt
│   │   │   ├── Essay.kt
│   │   │   ├── HpData.kt
│   │   │   ├── HtmlCategory.kt
│   │   │   ├── Menu.kt
│   │   │   ├── MList.kt
│   │   │   ├── MovieItem.kt
│   │   │   ├── Movie.kt
│   │   │   ├── MusicItem.kt
│   │   │   ├── Music.kt
│   │   │   ├── OneContent.kt
│   │   │   ├── One.kt
│   │   │   ├── Permission.kt
│   │   │   ├── Qq.kt
│   │   │   ├── Question.kt
│   │   │   ├── RadioActive.kt
│   │   │   ├── Radio.kt
│   │   │   ├── RankItem.kt
│   │   │   ├── Rank.kt
│   │   │   ├── ReadingItem.kt
│   │   │   ├── RelatedCategory.kt
│   │   │   ├── ResponseOne.kt
│   │   │   ├── SerialContent.kt
│   │   │   ├── ShareInfo.kt
│   │   │   ├── ShareList.kt
│   │   │   ├── StoryAuthor.kt
│   │   │   ├── Tag.kt
│   │   │   ├── Touser.kt
│   │   │   ├── UserInfo.kt
│   │   │   ├── User.kt
│   │   │   ├── WeatherIcons.kt
│   │   │   ├── Weather.kt
│   │   │   ├── Weibo.kt
│   │   │   ├── Wx.kt
│   │   │   └── WxTimeline.kt
│   │   ├── di
│   │   │   ├── NetworkModule.kt
│   │   │   └── RepositoryModule.kt
│   │   ├── Ext.kt
│   │   └── repository
│   │   ├── OneRepository.kt
│   │   └── paging
│   │   ├── AuthorWorksPagingSource.kt
│   │   ├── BannerPagingSource.kt
│   │   ├── CategoryPagingSource.kt
│   │   ├── CommentPagingSource.kt
│   │   ├── DiaryPagingSource.kt
│   │   ├── FeedsPagingSource.kt
│   │   ├── InMemoryByItemPagingRepository.kt
│   │   ├── MoviePagingSource.kt
│   │   ├── MusicPagingSource.kt
│   │   ├── PagingRepository.kt
│   │   └── ReadingPagingSource.kt
│   ├── MainActivity.kt
│   ├── OneApplication.kt
│   ├── ui
│   │   ├── about
│   │   │   └── AboutScreen.kt
│   │   ├── AppState.kt
│   │   ├── components
│   │   │   ├── AuthorItem.kt
│   │   │   ├── CommentItem.kt
│   │   │   ├── DisplayContent.kt
│   │   │   ├── HeaderBar.kt
│   │   │   ├── HtmlText.kt
│   │   │   ├── ImageRoundedItem.kt
│   │   │   ├── LoadingContent.kt
│   │   │   ├── LoadingExt.kt
│   │   │   ├── Placeholder.kt
│   │   │   ├── RelatedItem.kt
│   │   │   ├── ShimmerEffect.kt
│   │   │   ├── ShimmerHost.kt
│   │   │   ├── Spinner.kt
│   │   │   └── TitleHeader.kt
│   │   ├── detail
│   │   │   ├── AuthorDetailScreen.kt
│   │   │   ├── BannerDetailScreen.kt
│   │   │   ├── DiaryDetailScreen.kt
│   │   │   ├── EssayDetailScreen.kt
│   │   │   ├── HpDetailScreen.kt
│   │   │   ├── HpItemDetailScreen.kt
│   │   │   ├── MovieDetailScreen.kt
│   │   │   ├── MusicDetailScreen.kt
│   │   │   ├── QuestionDetailScreen.kt
│   │   │   ├── RadioDetailScreen.kt
│   │   │   ├── RankDetailScreen.kt
│   │   │   └── SerialDetailScreen.kt
│   │   ├── discover
│   │   │   ├── AuthorContent.kt
│   │   │   ├── BannerContent.kt
│   │   │   ├── CategoryContent.kt
│   │   │   ├── DiaryContent.kt
│   │   │   ├── DiscoverScreen.kt
│   │   │   ├── PictureContent.kt
│   │   │   └── RankContent.kt
│   │   ├── home
│   │   │   ├── CategoryError.kt
│   │   │   ├── CategoryEssay.kt
│   │   │   ├── CategoryHp.kt
│   │   │   ├── CategoryQ&A.kt
│   │   │   ├── CategoryRadio.kt
│   │   │   ├── CategorySerial.kt
│   │   │   ├── ChannelContent.kt
│   │   │   ├── FeedsContent.kt
│   │   │   └── HomeScreen.kt
│   │   ├── html
│   │   │   └── HtmlCategoryScreen.kt
│   │   ├── OneDestinations.kt
│   │   ├── OneNavGraph.kt
│   │   ├── serial
│   │   │   ├── SerialContent.kt
│   │   │   └── SerialScreen.kt
│   │   ├── theme
│   │   │   ├── Color.kt
│   │   │   ├── Shape.kt
│   │   │   ├── Theme.kt
│   │   │   └── Type.kt
│   │   ├── viewmodel
│   │   │   ├── DetailViewModel.kt
│   │   │   └── MainViewModel.kt
│   │   └── web
│   │   └── WebUrlScreen.kt
│   └── util
│   ├── DateTimeExt.kt
│   ├── Dp.kt
│   ├── ImageExt.kt
│   ├── ImageGetter.kt
│   ├── LazyPagingItemsExt.kt
│   ├── Mmkv.kt
│   ├── ReadTestString.kt
│   ├── Scrim.kt
│   └── StringExt.kt
└── res
├── drawable
│   ├── ic_arrow_down.xml
│   ├── ic_arrow_up.xml
│   ├── ic_bookmark_24.xml
│   ├── ic_bookmark_border_24.xml
│   ├── ic_collection.xml
│   ├── ic_diary.xml
│   ├── ic_discover.xml
│   ├── ic_home.xml
│   ├── ic_my.xml
│   └── ic_novel.xml
├── font
│   ├── montserrat_medium.ttf
│   └── montserrat_regular.ttf
├── mipmap-xhdpi
│   ├── bg.png
│   ├── guide.jpg
│   └── icon.png
├── values
│   ├── colors.xml
│   ├── strings.xml
│   └── themes.xml
├── values-v23
│   └── themes.xml
├── values-v27
│   └── themes.xml
└── xml
├── backup_rules.xml
└── data_extraction_rules.xml

31 directories, 156 files

App下载
one-download

文章作者: 二十I邊界
文章链接: https://xuie0000.com/post/2022-12-28-one-app-design.html
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 二十I邊界