Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lify
RvApp
Commits
f978842b
Commit
f978842b
authored
Aug 08, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-member-john' of
http://113.105.137.151:22280/lify/rvapp
parents
f5587b83
aa36b631
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
184 additions
and
56 deletions
+184
-56
build.gradle
RvClient/build.gradle
+2
-2
RvClientApplication.java
RvClient/src/main/java/com/xxfc/rv/RvClientApplication.java
+3
-3
bottom_backgroud2.png
...esource/src/main/res/drawable-xhdpi/bottom_backgroud2.png
+0
-0
Cookie.java
...nt_utils/src/main/java/com/rv/component/utils/Cookie.java
+4
-0
RvCache.java
...t_utils/src/main/java/com/rv/component/utils/RvCache.java
+7
-0
SettingActivity.java
...src/main/java/com/rv/rvmine/traveler/SettingActivity.java
+3
-1
BillActivity.java
plugin_share/src/main/java/com/rv/share/BillActivity.java
+6
-0
WebViewActivity.java
plugin_share/src/main/java/com/rv/share/WebViewActivity.java
+55
-28
RvWebView.java
plugin_share/src/main/java/com/rv/share/view/RvWebView.java
+3
-3
activity_bill.xml
plugin_share/src/main/res/layout/activity_bill.xml
+23
-15
activity_reative_bill.xml
plugin_share/src/main/res/layout/activity_reative_bill.xml
+1
-2
activity_web_view.xml
plugin_share/src/main/res/layout/activity_web_view.xml
+77
-2
No files found.
RvClient/build.gradle
View file @
f978842b
...
@@ -8,8 +8,8 @@ android {
...
@@ -8,8 +8,8 @@ android {
minSdkVersion
rootProject
.
ext
.
minSdkVersion
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
flavorDimensions
"default"
flavorDimensions
"default"
versionCode
13
5
versionCode
13
7
versionName
"1.3.
5
"
versionName
"1.3.
7
"
multiDexEnabled
true
multiDexEnabled
true
//新版Gradle 是 implementation 为了兼容compile,写上这句话
//新版Gradle 是 implementation 为了兼容compile,写上这句话
...
...
RvClient/src/main/java/com/xxfc/rv/RvClientApplication.java
View file @
f978842b
...
@@ -56,9 +56,9 @@ public class RvClientApplication extends FrameApp {
...
@@ -56,9 +56,9 @@ public class RvClientApplication extends FrameApp {
ShareInstall
.
getInstance
().
init
(
this
);
ShareInstall
.
getInstance
().
init
(
this
);
ShareInstall
.
getInstance
().
reportRegister
();
ShareInstall
.
getInstance
().
reportRegister
();
}
}
LogUtil
.
setLogEnable
(
false
,
getApplicationContext
());
LogUtil
.
setLogEnable
(
BuildConfig
.
DEBUG
,
getApplicationContext
());
if
(
BuildConfig
.
DEBUG
)
//
CrashHandler.getInstance().init(getApplicationContext());
CrashHandler
.
getInstance
().
init
(
getApplicationContext
());
// 在使用 SDK 各组间之前初始化 context 信息,传入 ApplicationContext
// 在使用 SDK 各组间之前初始化 context 信息,传入 ApplicationContext
SDKInitializer
.
initialize
(
this
);
SDKInitializer
.
initialize
(
this
);
//自4.3.0起,百度地图SDK所有接口均支持百度坐标和国测局坐标,用此方法设置您使用的坐标类型.
//自4.3.0起,百度地图SDK所有接口均支持百度坐标和国测局坐标,用此方法设置您使用的坐标类型.
...
...
component_resource/src/main/res/drawable-xhdpi/bottom_backgroud2.png
View replaced file @
f5587b83
View file @
f978842b
16.6 KB
|
W:
|
H:
16.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
component_utils/src/main/java/com/rv/component/utils/Cookie.java
View file @
f978842b
...
@@ -75,4 +75,8 @@ public class Cookie {
...
@@ -75,4 +75,8 @@ public class Cookie {
public
static
boolean
getBooleanValue
(
Context
context
,
String
key
,
boolean
def
)
{
public
static
boolean
getBooleanValue
(
Context
context
,
String
key
,
boolean
def
)
{
return
getPreference
(
context
).
getBoolean
(
key
,
def
);
return
getPreference
(
context
).
getBoolean
(
key
,
def
);
}
}
public
static
void
clear
(
Context
context
)
{
getPreference
(
context
).
edit
().
clear
().
commit
();
}
}
}
component_utils/src/main/java/com/rv/component/utils/RvCache.java
View file @
f978842b
...
@@ -104,6 +104,13 @@ public class RvCache<T extends Serializable> {
...
@@ -104,6 +104,13 @@ public class RvCache<T extends Serializable> {
return
o
;
return
o
;
}
}
public
void
clear
()
{
clear
(
CacheEnum
.
USER
);
clear
(
CacheEnum
.
MEMBER
);
clear
(
CacheEnum
.
VISTOR_LIST
);
clear
(
CacheEnum
.
CONSUMER_RECORD
);
}
public
void
clear
(
CacheEnum
cacheEnum
)
{
public
void
clear
(
CacheEnum
cacheEnum
)
{
File
f
=
new
File
(
getSavePath
(
cacheEnum
));
File
f
=
new
File
(
getSavePath
(
cacheEnum
));
if
(
f
.
exists
())
{
if
(
f
.
exists
())
{
...
...
module_mine/src/main/java/com/rv/rvmine/traveler/SettingActivity.java
View file @
f978842b
...
@@ -14,6 +14,7 @@ import com.ruiwenliu.wrapper.base.BaseBean;
...
@@ -14,6 +14,7 @@ import com.ruiwenliu.wrapper.base.BaseBean;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.util.UtilsManager
;
import
com.ruiwenliu.wrapper.util.UtilsManager
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.component.utils.Cookie
;
import
com.rv.home.rv.module.ApiConfig
;
import
com.rv.home.rv.module.ApiConfig
;
import
com.rv.home.rv.module.basic.presenter.CommonPresenter
;
import
com.rv.home.rv.module.basic.presenter.CommonPresenter
;
import
com.rv.home.rv.module.ui.login.RegisteredActivity
;
import
com.rv.home.rv.module.ui.login.RegisteredActivity
;
...
@@ -129,7 +130,8 @@ public class SettingActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -129,7 +130,8 @@ public class SettingActivity extends BaseStatusActivity<CommonPresenter> {
//退出登录
//退出登录
UtilsManager
.
getInstance
(
mActivity
).
clearShareData
(
"city_json"
);
UtilsManager
.
getInstance
(
mActivity
).
clearShareData
(
"city_json"
);
UtilsManager
.
getInstance
(
mActivity
).
setShNull
();
UtilsManager
.
getInstance
(
mActivity
).
setShNull
();
RvCache
.
getInstance
(
getApplicationContext
()).
clear
(
CacheEnum
.
USER
);
RvCache
.
getInstance
(
getApplicationContext
()).
clear
();
Cookie
.
clear
(
getApplicationContext
());
OkGoUtil
.
clearToken
();
OkGoUtil
.
clearToken
();
setResult
(
201
);
setResult
(
201
);
showToast
(
"退出成功!"
);
showToast
(
"退出成功!"
);
...
...
plugin_share/src/main/java/com/rv/share/BillActivity.java
View file @
f978842b
...
@@ -19,6 +19,7 @@ import android.widget.Toast;
...
@@ -19,6 +19,7 @@ import android.widget.Toast;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.statusbar.StatusBarUtil
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.share.presenter.BillPresenter
;
import
com.rv.share.presenter.BillPresenter
;
import
com.rv.share.view.RvWebView
;
import
com.rv.share.view.RvWebView
;
...
@@ -49,6 +50,11 @@ public class BillActivity extends BaseStatusActivity<BillPresenter> {
...
@@ -49,6 +50,11 @@ public class BillActivity extends BaseStatusActivity<BillPresenter> {
return
intent
;
return
intent
;
}
}
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
StatusBarUtil
.
setRootViewFitsSystemWindows
(
mActivity
,
false
);
}
@Override
@Override
protected
int
setLayout
()
{
protected
int
setLayout
()
{
...
...
plugin_share/src/main/java/com/rv/share/WebViewActivity.java
View file @
f978842b
...
@@ -4,9 +4,15 @@ import android.content.Context;
...
@@ -4,9 +4,15 @@ import android.content.Context;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.os.Build
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.Handler
;
import
android.os.Looper
;
import
android.os.Message
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
android.widget.Toast
;
import
com.base.utils.tools.android.NetworkUtil
;
import
com.base.utils.tools.android.NetworkUtil
;
...
@@ -22,10 +28,19 @@ import butterknife.BindView;
...
@@ -22,10 +28,19 @@ import butterknife.BindView;
public
class
WebViewActivity
extends
BaseStatusActivity
<
WebViewPresenter
>
{
public
class
WebViewActivity
extends
BaseStatusActivity
<
WebViewPresenter
>
{
@BindView
(
R2
.
id
.
ll_content
)
@BindView
(
R2
.
id
.
ll_content
)
LinearLayout
llContent
;
LinearLayout
llContent
;
@BindView
(
R2
.
id
.
img_left
)
ImageView
ivTitleLeft
;
@BindView
(
R2
.
id
.
tv_left
)
TextView
tvTitleLeft
;
@BindView
(
R2
.
id
.
tv_center
)
TextView
tvTitleCenter
;
@BindView
(
R2
.
id
.
tv_right
)
TextView
tvTitleRight
;
@BindView
(
R2
.
id
.
img_right
)
ImageView
ivTitleRight
;
private
String
url
;
private
String
url
;
private
String
title
;
private
String
title
;
private
RvWebView
rvWebView
;
private
RvWebView
rvWebView
;
private
TitleView
titleView
;
public
static
Intent
getIntent
(
Context
context
,
String
url
,
String
name
)
{
public
static
Intent
getIntent
(
Context
context
,
String
url
,
String
name
)
{
Intent
intent
=
new
Intent
(
context
,
WebViewActivity
.
class
);
Intent
intent
=
new
Intent
(
context
,
WebViewActivity
.
class
);
...
@@ -41,19 +56,23 @@ public class WebViewActivity extends BaseStatusActivity<WebViewPresenter> {
...
@@ -41,19 +56,23 @@ public class WebViewActivity extends BaseStatusActivity<WebViewPresenter> {
@Override
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
// 获取唤醒参数
titleView
.
setVisibility
(
View
.
GONE
);
url
=
intent
.
getStringExtra
(
"url"
);
url
=
intent
.
getStringExtra
(
"url"
);
title
=
intent
.
getStringExtra
(
"title"
);
title
=
intent
.
getStringExtra
(
"title"
);
if
(!
TextUtils
.
isEmpty
(
title
))
{
if
(!
TextUtils
.
isEmpty
(
title
))
{
titleView
.
setTitle
(
title
);
tvTitleCenter
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
tvTitleCenter
.
setText
(
title
);
titleView
.
setVisibility
(
View
.
GONE
);
}
}
ivTitleLeft
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
finish
();
}
});
rvWebView
=
new
RvWebView
(
getApplicationContext
(),
listener
);
rvWebView
=
new
RvWebView
(
getApplicationContext
(),
listener
);
if
(
NetworkUtil
.
isNetworkAvailable
(
this
))
{
if
(
NetworkUtil
.
isNetworkAvailable
(
this
))
{
llContent
.
addView
(
rvWebView
);
llContent
.
addView
(
rvWebView
);
if
(!
TextUtils
.
isEmpty
(
url
))
{
if
(!
TextUtils
.
isEmpty
(
url
))
{
// url = "https://xxtest.upyuns.com/h5/appHtml/view/invitationCourtesy.html" ;
rvWebView
.
loadUrl
(
url
);
rvWebView
.
loadUrl
(
url
);
}
}
}
else
{
}
else
{
...
@@ -88,44 +107,52 @@ public class WebViewActivity extends BaseStatusActivity<WebViewPresenter> {
...
@@ -88,44 +107,52 @@ public class WebViewActivity extends BaseStatusActivity<WebViewPresenter> {
}
}
rvWebView
.
destroy
();
// 生命周期销毁
rvWebView
.
destroy
();
// 生命周期销毁
}
}
super
.
onDestroy
();
super
.
onDestroy
();
}
}
private
RvWebView
.
WebViewListener
listener
=
new
RvWebView
.
WebViewListener
()
{
private
RvWebView
.
WebViewListener
listener
=
new
RvWebView
.
WebViewListener
()
{
@Override
@Override
public
void
share
(
String
url
,
String
imgUrl
,
String
title
,
String
circleTitle
,
String
desc
)
{
public
void
share
(
final
String
url
,
final
String
imgUrl
,
final
String
title
,
final
String
circleTitle
,
final
String
desc
)
{
String
billUrl
=
RvFrameConfig
.
HOST
+
"/h5/appHtml/view/poster.html"
;
runOnUiThread
(
new
Runnable
()
{
mPresenter
.
showShareDialog
(
url
,
imgUrl
,
title
,
circleTitle
,
desc
,
billUrl
);
@Override
public
void
run
()
{
String
billUrl
=
RvFrameConfig
.
HOST
+
"/h5/appHtml/view/poster.html"
;
mPresenter
.
showShareDialog
(
url
,
imgUrl
,
title
,
circleTitle
,
desc
,
billUrl
);
}
});
}
}
@Override
@Override
public
void
share
(
String
url
,
String
title
,
String
desc
)
{
public
void
share
(
final
String
url
,
final
String
title
,
final
String
desc
)
{
mPresenter
.
showShareDialog
(
url
,
null
,
title
,
null
,
desc
,
null
);
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
mPresenter
.
showShareDialog
(
url
,
null
,
title
,
null
,
desc
,
null
);
}
});
}
}
@Override
@Override
public
void
finish
()
{
public
void
finish
()
{
finish
();
}
}
@Override
@Override
public
void
showShareIcon
(
final
String
url
,
final
String
imgUrl
,
final
String
title
,
final
String
circleTitle
,
final
String
desc
)
{
public
void
showShareIcon
(
final
String
url
,
final
String
imgUrl
,
final
String
title
,
final
String
circleTitle
,
final
String
desc
)
{
runOnUiThread
(
new
Runnable
()
{
// runOnUiThread(new Runnable() {
@Override
// @Override
public
void
run
()
{
// public void run() {
ivTitleRight
.
setVisibility
(
View
.
VISIBLE
);
// titleView.setVisible(R.id.iv_title_right, true);
ivTitleRight
.
setImageResource
(
R
.
drawable
.
tourism_rv_rentingcar_icon_share
);
// titleView.setImageResource(R.id.iv_title_right, R.drawable.tourism_rv_rentingcar_icon_share);
}
// titleView.setChildClickListener(R.id.iv_title_right, new View.OnClickListener() {
});
// @Override
final
String
billUrl
=
RvFrameConfig
.
HOST
+
"/h5/appHtml/view/newPeoplePoster.html"
;
// public void onClick(View v) {
ivTitleRight
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
// String billUrl = RvFrameConfig.HOST + "/h5/appHtml/view/newPeoplePoster.html";
@Override
// mPresenter.showShareDialog(url, imgUrl, title, circleTitle, desc, billUrl);
public
void
onClick
(
View
v
)
{
// }
mPresenter
.
showShareDialog
(
url
,
imgUrl
,
title
,
circleTitle
,
desc
,
billUrl
);
// });
}
// }
});
// });
}
}
};
};
}
}
plugin_share/src/main/java/com/rv/share/view/RvWebView.java
View file @
f978842b
...
@@ -159,7 +159,7 @@ public class RvWebView extends WebView {
...
@@ -159,7 +159,7 @@ public class RvWebView extends WebView {
@JavascriptInterface
@JavascriptInterface
public
void
share
(
String
url
,
String
title
,
String
desc
)
{
public
void
share
(
String
url
,
String
title
,
String
desc
)
{
if
(
listener
!=
null
)
{
if
(
listener
!=
null
)
{
listener
.
share
(
url
,
title
,
desc
);
listener
.
share
(
url
,
title
,
TextUtils
.
isEmpty
(
desc
)
?
" "
:
desc
);
}
}
}
}
...
@@ -178,14 +178,14 @@ public class RvWebView extends WebView {
...
@@ -178,14 +178,14 @@ public class RvWebView extends WebView {
@JavascriptInterface
@JavascriptInterface
public
void
share
(
String
url
,
String
imgUrl
,
String
title
,
String
titleCircle
,
String
desc
)
{
public
void
share
(
String
url
,
String
imgUrl
,
String
title
,
String
titleCircle
,
String
desc
)
{
if
(
listener
!=
null
)
{
if
(
listener
!=
null
)
{
listener
.
share
(
url
,
imgUrl
,
title
,
titleCircle
,
desc
);
listener
.
share
(
url
,
imgUrl
,
title
,
titleCircle
,
TextUtils
.
isEmpty
(
desc
)
?
" "
:
desc
);
}
}
}
}
@JavascriptInterface
@JavascriptInterface
public
void
showShareIcon
(
String
url
,
String
imgUrl
,
String
title
,
String
titleCircle
,
String
desc
)
{
public
void
showShareIcon
(
String
url
,
String
imgUrl
,
String
title
,
String
titleCircle
,
String
desc
)
{
if
(
listener
!=
null
)
{
if
(
listener
!=
null
)
{
listener
.
showShareIcon
(
url
,
imgUrl
,
title
,
titleCircle
,
desc
);
listener
.
showShareIcon
(
url
,
imgUrl
,
title
,
titleCircle
,
TextUtils
.
isEmpty
(
desc
)
?
" "
:
desc
);
}
}
}
}
...
...
plugin_share/src/main/res/layout/activity_bill.xml
View file @
f978842b
...
@@ -7,19 +7,27 @@
...
@@ -7,19 +7,27 @@
android:background=
"#FE6E2F"
android:background=
"#FE6E2F"
tools:context=
".BillActivity"
>
tools:context=
".BillActivity"
>
<TextView
<com.ruiwenliu.wrapper.statusbar.StatusBarHeightView
android:id=
"@+id/tv_back_title"
android:id=
"@+id/ll_item_title"
android:layout_width=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_40"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:orientation=
"vertical"
android:layout_alignParentTop=
"true"
app:use_type=
"use_padding_top"
>
android:layout_marginLeft=
"@dimen/dp_10"
android:drawableLeft=
"@drawable/rv_common_icon_back_white"
<TextView
android:drawablePadding=
"@dimen/size_5"
android:id=
"@+id/tv_back_title"
android:gravity=
"center_vertical"
android:layout_width=
"wrap_content"
android:text=
"生成海报"
android:layout_height=
"@dimen/size_40"
android:textColor=
"@color/white"
android:layout_alignParentLeft=
"true"
android:textSize=
"@dimen/text_18"
/>
android:layout_alignParentTop=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:drawableLeft=
"@drawable/rv_common_icon_back_white"
android:drawablePadding=
"@dimen/size_5"
android:gravity=
"center_vertical"
android:text=
"生成海报"
android:textColor=
"@color/white"
android:textSize=
"@dimen/text_18"
/>
</com.ruiwenliu.wrapper.statusbar.StatusBarHeightView>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_bottom"
android:id=
"@+id/ll_bottom"
...
@@ -57,9 +65,9 @@
...
@@ -57,9 +65,9 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_above=
"@id/ll_bottom"
android:layout_above=
"@id/ll_bottom"
android:layout_below=
"@id/tv_back_title"
android:layout_below=
"@id/ll_item_title"
android:layout_marginTop=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginTop=
"@dimen/size_30"
android:layout_marginRight=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/dp_10"
android:layout_marginBottom=
"@dimen/size_20"
android:layout_marginBottom=
"@dimen/size_20"
android:background=
"@drawable/shape_rv_bg_bill"
android:background=
"@drawable/shape_rv_bg_bill"
...
...
plugin_share/src/main/res/layout/activity_reative_bill.xml
View file @
f978842b
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#ffffff"
android:background=
"#ffffff"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:weightSum=
"19"
tools:context=
".ReativeBillActivity"
>
tools:context=
".ReativeBillActivity"
>
<TextView
<TextView
...
@@ -41,7 +40,7 @@
...
@@ -41,7 +40,7 @@
android:id=
"@+id/ll_bill_content"
android:id=
"@+id/ll_bill_content"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"
center
"
android:layout_gravity=
"
top
"
android:background=
"@color/white"
android:background=
"@color/white"
app:cardCornerRadius=
"5dp"
>
app:cardCornerRadius=
"5dp"
>
...
...
plugin_share/src/main/res/layout/activity_web_view.xml
View file @
f978842b
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/ll_content"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:orientation=
"vertical"
tools:context=
".WebViewActivity"
>
tools:context=
".WebViewActivity"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_55"
android:background=
"@color/colorWrite"
>
<ImageView
android:id=
"@+id/img_left"
android:layout_width=
"@dimen/size_32"
android:layout_height=
"@dimen/size_32"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/size_5"
android:padding=
"@dimen/size_8"
android:src=
"@drawable/rv_common_icon_back_dark"
/>
<TextView
android:id=
"@+id/tv_left"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_toRightOf=
"@id/iv_title_left"
android:gravity=
"center"
android:padding=
"@dimen/size_10"
android:textColor=
"@color/textMain"
android:textSize=
"@dimen/text_16"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/tv_center"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:ellipsize=
"end"
android:gravity=
"center"
android:maxWidth=
"320dp"
android:maxLines=
"1"
android:textColor=
"@color/textMain"
android:textSize=
"@dimen/text_18"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tv_right"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"15dp"
android:paddingLeft=
"@dimen/size_8"
android:paddingTop=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_8"
android:paddingBottom=
"@dimen/size_5"
android:textColor=
"@color/textMain"
android:textSize=
"@dimen/text_16"
android:visibility=
"gone"
/>
<ImageView
android:id=
"@+id/img_right"
android:layout_width=
"@dimen/size_32"
android:layout_height=
"@dimen/size_32"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"@dimen/size_5"
android:padding=
"@dimen/size_8"
android:visibility=
"gone"
/>
</LinearLayout>
</RelativeLayout>
<LinearLayout
android:id=
"@+id/ll_content"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment