Skip to content

Commit

Permalink
avatar larger
Browse files Browse the repository at this point in the history
  • Loading branch information
ekibun committed Jun 14, 2020
1 parent 732210b commit 45bc6cf
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 55 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@
tools:ignore="AllowBackup,GoogleAppIndexingWarning,UnusedAttribute">
<activity android:name=".ui.say.SayActivity">
</activity>

<service
android:name=".RemoteService"
android:exported="false">
</service>

<activity
android:name=".ui.setting.SettingsActivity"
android:label="@string/settings"
Expand Down
3 changes: 0 additions & 3 deletions app/src/main/java/soko/ekibun/bangumi/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package soko.ekibun.bangumi

import android.app.Application
import android.content.Context
import android.content.Intent
import androidx.preference.PreferenceManager
import com.umeng.commonsdk.UMConfigure
import soko.ekibun.bangumi.model.DataCacheModel
Expand All @@ -15,13 +14,11 @@ import soko.ekibun.bangumi.util.HttpUtil
* App entry
* @property dataCacheModel DataCacheModel
* @property pluginInstance Map<Context, Any>?
* @property remoteAction Function3<[@kotlin.ParameterName] Intent?, [@kotlin.ParameterName] Int, [@kotlin.ParameterName] Int, Unit>
*/
class App : Application() {
val sp by lazy { PreferenceManager.getDefaultSharedPreferences(this) }
val dataCacheModel by lazy { DataCacheModel(this) }
lateinit var pluginInstance: Map<Context, Any>
var remoteAction: (intent: Intent?, flags: Int, startId: Int) -> Unit = { _, _, _ -> }

override fun onCreate() {
super.onCreate()
Expand Down
20 changes: 0 additions & 20 deletions app/src/main/java/soko/ekibun/bangumi/RemoteService.kt

This file was deleted.

8 changes: 4 additions & 4 deletions app/src/main/res/layout/item_avatar_header.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<com.github.siyamed.shapeimageview.CircularImageView
app:siBorderAlpha="0"
android:id="@+id/item_avatar_left"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_width="@dimen/avatarListSize"
android:layout_height="@dimen/avatarListSize"
android:scaleType="centerCrop"
tools:ignore="ContentDescription"
tools:src="@drawable/err_404"
Expand All @@ -27,8 +27,8 @@
<com.github.siyamed.shapeimageview.CircularImageView
app:siBorderAlpha="0"
android:id="@+id/item_avatar_right"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_width="@dimen/avatarListSize"
android:layout_height="@dimen/avatarListSize"
android:scaleType="centerCrop"
tools:ignore="ContentDescription"
tools:src="@drawable/err_404"
Expand Down
22 changes: 12 additions & 10 deletions app/src/main/res/layout/item_blog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
<com.github.siyamed.shapeimageview.CircularImageView
app:siBorderAlpha="0"
android:id="@+id/item_avatar"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_width="@dimen/avatarListSize"
android:layout_height="@dimen/avatarListSize"
android:scaleType="centerCrop"
tools:ignore="ContentDescription"
app:layout_constraintTop_toTopOf="@+id/item_user"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="@+id/item_time"
tools:src="@drawable/err_404"/>
<TextView
android:id="@+id/item_user"
Expand All @@ -39,16 +38,16 @@
app:layout_constraintTop_toTopOf="parent"
android:layout_marginLeft="8dp"
tools:text="UserName"/>

<TextView
android:id="@+id/item_time"
android:layout_width="0dp"
android:layout_marginTop="2dp"
android:layout_width="wrap_content"
android:layout_marginTop="3dp"
android:layout_height="wrap_content"
android:textSize="@dimen/textSizeSmall"
android:ellipsize="end"
android:singleLine="true"
app:layout_constraintLeft_toLeftOf="@+id/item_user"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/item_user"
tools:text="2019-04-23"/>
<TextView
Expand Down Expand Up @@ -79,20 +78,23 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/item_title"
tools:text="Blog Content..."/>

<TextView
android:layout_marginTop="6dp"
android:alpha="0.5"
android:id="@+id/item_comment"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="@dimen/textSizeSmall"
android:singleLine="true"
android:ellipsize="end"
android:layout_marginLeft="6dp"
app:layout_constraintLeft_toRightOf="@+id/item_avatar"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/item_summary"
app:layout_constraintStart_toStartOf="@+id/item_summary"
app:layout_constraintEnd_toEndOf="parent"
tools:text="0 回复"/>
tools:text="+0 回复"
app:layout_constraintStart_toEndOf="@+id/item_time"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintTop_toTopOf="@+id/item_time"
app:layout_constraintBottom_toBottomOf="@+id/item_time"/>

</androidx.constraintlayout.widget.ConstraintLayout>
4 changes: 2 additions & 2 deletions app/src/main/res/layout/item_comment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<com.github.siyamed.shapeimageview.CircularImageView
app:siBorderAlpha="0"
android:id="@+id/item_avatar"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_width="@dimen/avatarListSize"
android:layout_height="@dimen/avatarListSize"
android:scaleType="centerCrop"
tools:ignore="ContentDescription"
tools:src="@drawable/err_404"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/item_reply.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<com.github.siyamed.shapeimageview.CircularImageView
app:siBorderAlpha="0"
android:id="@+id/item_avatar"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_width="@dimen/avatarListSize"
android:layout_height="@dimen/avatarListSize"
android:scaleType="centerCrop"
tools:ignore="ContentDescription"
tools:src="@drawable/err_404"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/item_say.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<com.github.siyamed.shapeimageview.CircularImageView
app:siBorderAlpha="0"
android:id="@+id/item_avatar"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_width="@dimen/avatarListSize"
android:layout_height="@dimen/avatarListSize"
android:scaleType="centerCrop"
tools:ignore="ContentDescription"
tools:src="@drawable/err_404"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/item_timeline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<com.github.siyamed.shapeimageview.CircularImageView
app:siBorderAlpha="0"
android:id="@+id/item_avatar"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_width="@dimen/avatarListSize"
android:layout_height="@dimen/avatarListSize"
android:scaleType="centerCrop"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/item_topic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<com.github.siyamed.shapeimageview.CircularImageView
app:siBorderAlpha="0"
android:id="@+id/item_avatar"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_width="@dimen/avatarListSize"
android:layout_height="@dimen/avatarListSize"
android:scaleType="centerCrop"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@

<dimen name="appBarSize">48dp</dimen>
<dimen name="textSizeAppBarTitle">18sp</dimen>

<dimen name="avatarListSize">34dp</dimen>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
<string name="phrase_duration">时长:%1$s</string>
<string name="phrase_comment">讨论(+%1$d)</string>

<string name="phrase_reply">%1$d 回复</string>
<string name="phrase_reply">+%1$d 回复</string>

<!-- 超展开 -->
<string name="parse_hint_reply_topic">回复 %1$s</string>
Expand Down

0 comments on commit 45bc6cf

Please sign in to comment.