forked from HotBitmapGG/bilibili-android-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify Bangumi index interface UI and logic
- Loading branch information
1 parent
08f6f2e
commit 1526f0b
Showing
29 changed files
with
1,006 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
805 changes: 798 additions & 7 deletions
805
app/src/main/java/com/hotbitmapgg/ohmybilibili/entity/bangumi/BangumiIndex.java
Large diffs are not rendered by default.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
app/src/main/java/com/hotbitmapgg/ohmybilibili/entity/bangumi/BangumiIndexTag.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.hotbitmapgg.ohmybilibili.entity.bangumi; | ||
|
||
/** | ||
* Created by hcc on 2016/10/10 19:57 | ||
* [email protected] | ||
*/ | ||
|
||
public class BangumiIndexTag | ||
{ | ||
|
||
private String pic; | ||
|
||
private String title; | ||
|
||
public String getPic() | ||
{ | ||
|
||
return pic; | ||
} | ||
|
||
public void setPic(String pic) | ||
{ | ||
|
||
this.pic = pic; | ||
} | ||
|
||
public String getTitle() | ||
{ | ||
|
||
return title; | ||
} | ||
|
||
public void setTitle(String title) | ||
{ | ||
|
||
this.title = title; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,21 +2,20 @@ | |
|
||
import com.hotbitmapgg.ohmybilibili.entity.bangumi.BangumiIndex; | ||
|
||
import java.util.List; | ||
|
||
import retrofit2.http.GET; | ||
import retrofit2.http.Path; | ||
import rx.Observable; | ||
|
||
/** | ||
* Created by hcc on 16/8/4 12:03 | ||
* [email protected] | ||
* <p/> | ||
* 番剧索引数据请求 | ||
* <p> | ||
* http://bangumi.bilibili.com/api/app_index_page?actionKey=appkey&appkey=27eb53fc9058f8c3&build=2310&device=phone&platform=ios&sign=55c99772ca87ed4720201d2f0429d9c2&ts=1466676873 | ||
*/ | ||
public interface BangumiIndexService | ||
{ | ||
|
||
@GET("index/bangumi/{year}-{month}.json") | ||
Observable<List<BangumiIndex>> getBangumiIndex(@Path("year") String year, @Path("month") String month); | ||
@GET("api/app_index_page?actionKey=appkey&appkey=27eb53fc9058f8c3&build=2310&device=phone&platform=ios&sign=55c99772ca87ed4720201d2f0429d9c2&ts=1466676873") | ||
Observable<BangumiIndex> getBangumiIndex(); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
|
||
<corners android:radius="3dp" /> | ||
|
||
<solid android:color="@color/bangumi_index_green_bg" /> | ||
|
||
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
|
||
<corners android:radius="3dp" /> | ||
|
||
<solid android:color="@color/bangumi_index_yellow_bg" /> | ||
|
||
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="@dimen/default_general_margin" | ||
android:orientation="horizontal"> | ||
|
||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/action_bar_default_height" | ||
android:layout_weight="1" | ||
android:background="@drawable/bangumi_index_green_bg" | ||
android:gravity="center" | ||
android:orientation="horizontal"> | ||
|
||
<ImageView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:src="@drawable/ic_bangumi_index" /> | ||
|
||
|
||
<ImageView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="@dimen/default_tiny_padding" | ||
android:src="@drawable/ic_bangumi_index_text" /> | ||
|
||
</LinearLayout> | ||
|
||
|
||
<Space | ||
android:layout_width="@dimen/default_general_margin" | ||
android:layout_height="wrap_content" /> | ||
|
||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/action_bar_default_height" | ||
android:layout_weight="1" | ||
android:background="@drawable/bangumi_index_yellow_bg" | ||
android:gravity="center" | ||
android:orientation="horizontal"> | ||
|
||
<ImageView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:src="@drawable/ic_bangumi_rank" /> | ||
|
||
<ImageView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="@dimen/default_general_margin" | ||
android:src="@drawable/ic_bangumi_rank_text" /> | ||
|
||
</LinearLayout> | ||
|
||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.