Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mmm-rain
AndroidUtilCode
提交
b35e78a3
A
AndroidUtilCode
项目概览
mmm-rain
/
AndroidUtilCode
与 Fork 源项目一致
从无法访问的项目Fork
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
AndroidUtilCode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b35e78a3
编写于
7月 09, 2017
作者:
B
Blankj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
see 07/09 log
上级
e1a4a1a0
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
16 addition
and
13 deletion
+16
-13
app/src/main/java/com/blankj/androidutilcode/activity/PinyinActivity.java
...a/com/blankj/androidutilcode/activity/PinyinActivity.java
+1
-1
app/src/main/java/com/blankj/androidutilcode/activity/StatusBarFragmentActivity.java
...j/androidutilcode/activity/StatusBarFragmentActivity.java
+3
-5
app/src/main/java/com/blankj/androidutilcode/fragment/StatusBarImageViewFragment.java
.../androidutilcode/fragment/StatusBarImageViewFragment.java
+1
-1
app/src/main/res/layout/activity_status_bar_fragment.xml
app/src/main/res/layout/activity_status_bar_fragment.xml
+3
-2
subutil/proguard-rules.pro
subutil/proguard-rules.pro
+4
-0
utilcode/src/main/java/com/blankj/utilcode/util/BarUtils.java
...code/src/main/java/com/blankj/utilcode/util/BarUtils.java
+4
-4
未找到文件。
app/src/main/java/com/blankj/androidutilcode/activity/PinyinActivity.java
浏览文件 @
b35e78a3
...
...
@@ -7,7 +7,7 @@ import android.widget.TextView;
import
com.blankj.androidutilcode.R
;
import
com.blankj.androidutilcode.base.BaseBackActivity
;
import
com.blankj.
utilcode
.util.PinyinUtils
;
import
com.blankj.
subutil
.util.PinyinUtils
;
/**
* <pre>
...
...
app/src/main/java/com/blankj/androidutilcode/activity/StatusBarFragmentActivity.java
浏览文件 @
b35e78a3
...
...
@@ -15,7 +15,6 @@ import com.blankj.androidutilcode.base.BaseActivity;
import
com.blankj.androidutilcode.fragment.StatusBarAlphaFragment
;
import
com.blankj.androidutilcode.fragment.StatusBarColorFragment
;
import
com.blankj.androidutilcode.fragment.StatusBarImageViewFragment
;
import
com.blankj.utilcode.util.BarUtils
;
import
java.util.ArrayList
;
...
...
@@ -29,9 +28,10 @@ import java.util.ArrayList;
*/
public
class
StatusBarFragmentActivity
extends
BaseActivity
{
private
ViewPager
mVpHome
;
private
ViewPager
mVpHome
;
private
BottomNavigationView
navigation
;
private
ArrayList
<
Fragment
>
mFragmentList
=
new
ArrayList
<>();
private
int
[]
itemIds
=
new
int
[]{
R
.
id
.
navigation_color
,
R
.
id
.
navigation_alpha
,
R
.
id
.
navigation_image_view
};
@Override
public
void
initData
(
Bundle
bundle
)
{
...
...
@@ -72,7 +72,7 @@ public class StatusBarFragmentActivity extends BaseActivity {
@Override
public
void
onPageSelected
(
int
position
)
{
navigation
.
setSelectedItemId
(
position
);
navigation
.
setSelectedItemId
(
itemIds
[
position
]
);
}
@Override
...
...
@@ -82,8 +82,6 @@ public class StatusBarFragmentActivity extends BaseActivity {
});
navigation
.
setOnNavigationItemSelectedListener
(
mOnNavigationItemSelectedListener
);
BarUtils
.
setStatusBar4ImageViewInFragment
(
StatusBarFragmentActivity
.
this
,
null
);
}
@Override
...
...
app/src/main/java/com/blankj/androidutilcode/fragment/StatusBarImageViewFragment.java
浏览文件 @
b35e78a3
...
...
@@ -28,7 +28,7 @@ public class StatusBarImageViewFragment extends BaseFragment {
@Override
public
void
initView
(
Bundle
savedInstanceState
,
View
view
)
{
// BarUtils.setStatusBar4ImageViewInFragment(mActivity, null);
}
@Override
...
...
app/src/main/res/layout/activity_status_bar_fragment.xml
浏览文件 @
b35e78a3
...
...
@@ -12,7 +12,8 @@
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:orientation=
"vertical"
/>
android:orientation=
"vertical"
android:overScrollMode=
"never"
/>
<android.support.design.widget.BottomNavigationView
android:id=
"@+id/navigation"
...
...
@@ -20,6 +21,6 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:background=
"?android:attr/windowBackground"
app:menu=
"@menu/navigation"
/>
app:menu=
"@menu/navigation"
/>
</LinearLayout>
\ No newline at end of file
subutil/proguard-rules.pro
浏览文件 @
b35e78a3
...
...
@@ -23,3 +23,7 @@
#
If
you
keep
the
line
number
information
,
uncomment
this
to
#
hide
the
original
source
file
name
.
#-
renamesourcefileattribute
SourceFile
-
keep
class
com
.
blankj
.
subutil
.
**
{
*
;
}
-
keepclassmembers
class
com
.
blankj
.
subutil
.
**
{
*
;
}
-
dontwarn
com
.
blankj
.
subutil
.
**
\ No newline at end of file
utilcode/src/main/java/com/blankj/utilcode/util/BarUtils.java
浏览文件 @
b35e78a3
...
...
@@ -38,10 +38,10 @@ public final class BarUtils {
// status bar
///////////////////////////////////////////////////////////////////////////
private
static
final
int
DEFAULT_STATUS_BAR_ALPHA
=
112
;
private
static
final
int
DEFAULT_STATUS_BAR_ALPHA
=
112
;
private
static
final
String
FAKE_STATUS_BAR_VIEW_TAG
=
"FAKE_STATUS_BAR_VIEW_TAG"
;
private
static
final
String
FAKE_TOP_VIEW_TAG
=
"FAKE_TOP_VIEW_TAG"
;
private
static
final
int
TAG_KEY_HAVE_SET_OFFSET
=
-
123
;
private
static
final
String
FAKE_TOP_VIEW_TAG
=
"FAKE_TOP_VIEW_TAG"
;
private
static
final
int
TAG_KEY_HAVE_SET_OFFSET
=
-
123
;
private
BarUtils
()
{
throw
new
UnsupportedOperationException
(
"u can't instantiate me..."
);
...
...
@@ -265,7 +265,7 @@ public final class BarUtils {
if
(
fakeStatusBarView
!=
null
)
{
decorView
.
removeView
(
fakeStatusBarView
);
ViewGroup
rootView
=
(
ViewGroup
)
((
ViewGroup
)
activity
.
findViewById
(
android
.
R
.
id
.
content
)).
getChildAt
(
0
);
rootView
.
setPadding
(
0
,
0
,
0
,
0
);
rootView
.
setPadding
(
rootView
.
getPaddingLeft
(),
0
,
rootView
.
getPaddingRight
(),
rootView
.
getPaddingBottom
()
);
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录