Commit 995f3e2c by mReturn

横屏直播优化

parent b6a1ddec
...@@ -60,6 +60,7 @@ public class InitializeActivity extends DataBindingActivity<ActivityInitializeMa ...@@ -60,6 +60,7 @@ public class InitializeActivity extends DataBindingActivity<ActivityInitializeMa
SPUtils.put("env",""); SPUtils.put("env","");
} }
initVersion();
MobclickAgent.openActivityDurationTrack(false); MobclickAgent.openActivityDurationTrack(false);
mActivity = this; mActivity = this;
String[] mPerArr = new String[]{Manifest.permission.READ_PHONE_STATE, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.WRITE_EXTERNAL_STORAGE String[] mPerArr = new String[]{Manifest.permission.READ_PHONE_STATE, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.WRITE_EXTERNAL_STORAGE
...@@ -82,6 +83,16 @@ public class InitializeActivity extends DataBindingActivity<ActivityInitializeMa ...@@ -82,6 +83,16 @@ public class InitializeActivity extends DataBindingActivity<ActivityInitializeMa
initVp(); initVp();
} }
private void initVersion() {
String versionCode = AppUtils.getPackageNum();
if (Constants.ENVIROMENT.equals("debug")) {
versionCode = (String.format(getString(com.dayu.usercenter.R.string.enviroment_debug), versionCode));
} else if (Constants.ENVIROMENT.equals("uat")) {
versionCode = (String.format(getString(com.dayu.usercenter.R.string.enviroment_uat), versionCode));
}
mBind.tvVersion.setText(versionCode);
}
private void initVp() { private void initVp() {
} }
......
...@@ -42,7 +42,11 @@ public class LocationService extends Service { ...@@ -42,7 +42,11 @@ public class LocationService extends Service {
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
startForeground(1,new Notification()); try {
startForeground(1,new Notification());
} catch (Exception e) {
e.printStackTrace();
}
} }
mHandler = new Handler() { mHandler = new Handler() {
@Override @Override
......
...@@ -3,11 +3,10 @@ ...@@ -3,11 +3,10 @@
<layout xmlns:android="http://schemas.android.com/apk/res/android"> <layout xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout <RelativeLayout
android:visibility="gone"
android:id="@+id/rl_root" android:id="@+id/rl_root"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="#ffffff"> android:background="@color/transparent">
<android.support.v4.view.ViewPager <android.support.v4.view.ViewPager
android:id="@+id/vp_initial" android:id="@+id/vp_initial"
...@@ -15,35 +14,8 @@ ...@@ -15,35 +14,8 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:visibility="gone" android:visibility="gone"
/> />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.4"
>
<ImageView
android:id="@+id/iv_logo"
android:layout_width="140dp"
android:layout_height="140dp"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:src="@drawable/icon_app_logo"
android:visibility="visible" />
</RelativeLayout>
<View
android:layout_width="1dp"
android:layout_height="0dp"
android:layout_weight="0.6"
/>
</LinearLayout>
<ImageView <ImageView
android:visibility="gone"
android:id="@+id/start_pager_image" android:id="@+id/start_pager_image"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
...@@ -51,15 +23,14 @@ ...@@ -51,15 +23,14 @@
android:scaleType="fitStart" android:scaleType="fitStart"
/> />
<TextView <TextView
android:visibility="gone" android:id="@+id/tv_version"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="@color/common_text_color" android:textColor="@color/c9"
android:textSize="16sp" android:textSize="12sp"
android:text="北京大鱼创想科技有限公司"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_marginBottom="20dp" android:layout_marginBottom="10dp"
/> />
</RelativeLayout> </RelativeLayout>
......
...@@ -196,7 +196,7 @@ public class BeautyPanel extends FrameLayout implements SeekBar.OnSeekBarChangeL ...@@ -196,7 +196,7 @@ public class BeautyPanel extends FrameLayout implements SeekBar.OnSeekBarChangeL
mBeautyDataList = new ArrayList<BeautyData>(); mBeautyDataList = new ArrayList<BeautyData>();
mBeautyDataList.add(new BeautyData(beauty_smooth, getResources().getString(R.string.beauty_pannel_style_smooth))); mBeautyDataList.add(new BeautyData(beauty_smooth, getResources().getString(R.string.beauty_pannel_style_smooth)));
mBeautyDataList.add(new BeautyData(beauty_natural, getResources().getString(R.string.beauty_pannel_style_natural))); mBeautyDataList.add(new BeautyData(beauty_natural, getResources().getString(R.string.beauty_pannel_style_natural)));
mBeautyDataList.add(new BeautyData(beauty_pitu, getResources().getString(R.string.beauty_pannel_style_pitu))); // mBeautyDataList.add(new BeautyData(beauty_pitu, getResources().getString(R.string.beauty_pannel_style_pitu)));
mBeautyDataList.add(new BeautyData(beauty_white, getResources().getString(R.string.beauty_pannel_white))); mBeautyDataList.add(new BeautyData(beauty_white, getResources().getString(R.string.beauty_pannel_white)));
mBeautyDataList.add(new BeautyData(beauty_ruddy, getResources().getString(R.string.beauty_pannel_ruddy))); mBeautyDataList.add(new BeautyData(beauty_ruddy, getResources().getString(R.string.beauty_pannel_ruddy)));
// mBeautyDataList.add(new BeautyData(beauty_bigeye, getResources().getString(R.string.beauty_pannel_bigeye))); // mBeautyDataList.add(new BeautyData(beauty_bigeye, getResources().getString(R.string.beauty_pannel_bigeye)));
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<string-array name="beauty_style"> <string-array name="beauty_style">
<item>美颜(光滑)</item> <item>美颜(光滑)</item>
<item>美颜(自然)</item> <item>美颜(自然)</item>
<item>美颜(天天P图)</item> <!--<item>美颜(天天P图)</item>-->
</string-array> </string-array>
<string-array name="beauty_type"> <string-array name="beauty_type">
......
...@@ -35,7 +35,8 @@ dependencies { ...@@ -35,7 +35,8 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs/upload') implementation fileTree(include: ['*.jar'], dir: 'libs/upload')
implementation "com.android.support:appcompat-v7:27.1.1" implementation "com.android.support:appcompat-v7:27.1.1"
implementation 'com.android.support:recyclerview-v7:27.1.1' implementation 'com.android.support:recyclerview-v7:27.1.1'
api 'com.tencent.liteav:LiteAVSDK_Professional:latest.release' // api 'com.tencent.liteav:LiteAVSDK_Professional:latest.release'
api 'com.tencent.liteavsdk:LiteAVSDK_Smart:latest.release'
// MLVB 需要依赖 okhttp 拦截器 // MLVB 需要依赖 okhttp 拦截器
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.1' implementation 'com.squareup.okhttp3:logging-interceptor:3.8.1'
// MLVB 需要使用 gson 进行 json 解析 // MLVB 需要使用 gson 进行 json 解析
......
...@@ -2922,6 +2922,42 @@ public class MLVBLiveRoomImpl extends MLVBLiveRoom implements HttpRequests.Heart ...@@ -2922,6 +2922,42 @@ public class MLVBLiveRoomImpl extends MLVBLiveRoom implements HttpRequests.Heart
// } // }
// // 大主播
// {
// JSONObject layoutParam = new JSONObject();
// layoutParam.put("image_layer", 1);
//
// JSONObject mainStream = new JSONObject();
// mainStream.put("input_stream_id", mMainStreamId);
// mainStream.put("layout_params", layoutParam);
//
// inputStreamList.put(mainStream);
// }
//
// // 小主播
// for (String item : mSubStreamIds) {
// JSONObject layoutParam = new JSONObject();
// layoutParam.put("image_layer", 3);
// layoutParam.put("image_width", 480);
// layoutParam.put("image_height", 540);
// layoutParam.put("location_x", 480);
// layoutParam.put("location_y", 0);
//
// JSONObject cropParam = new JSONObject();
// cropParam.put("crop_width", 280);
// cropParam.put("crop_height", 320);
// cropParam.put("crop_x", 0);
// cropParam.put("crop_y", 0);
//
// JSONObject mainStream = new JSONObject();
// mainStream.put("input_stream_id", item);
// mainStream.put("layout_params", layoutParam);
// mainStream.put("crop_params", cropParam);
//
// inputStreamList.put(mainStream);
// }
// 画布 // 画布
{ {
JSONObject layoutParam = new JSONObject(); JSONObject layoutParam = new JSONObject();
......
...@@ -142,7 +142,8 @@ public class TCBaseAnchorActivity extends Activity implements IMLVBLiveRoomListe ...@@ -142,7 +142,8 @@ public class TCBaseAnchorActivity extends Activity implements IMLVBLiveRoomListe
RelativeLayout controllLayer = (RelativeLayout) findViewById(R.id.anchor_rl_controllLayer); RelativeLayout controllLayer = (RelativeLayout) findViewById(R.id.anchor_rl_controllLayer);
mTCSwipeAnimationController = new TCSwipeAnimationController(this); mTCSwipeAnimationController = new TCSwipeAnimationController(this);
mTCSwipeAnimationController.setAnimationView(controllLayer); //左右滑动隐藏显示控制布局
// mTCSwipeAnimationController.setAnimationView(controllLayer);
mLvMessage = (ListView) findViewById(R.id.im_msg_listview); mLvMessage = (ListView) findViewById(R.id.im_msg_listview);
mHeartLayout = (TCHeartLayout) findViewById(R.id.heart_layout); mHeartLayout = (TCHeartLayout) findViewById(R.id.heart_layout);
......
...@@ -47,9 +47,9 @@ import java.util.Locale; ...@@ -47,9 +47,9 @@ import java.util.Locale;
* Function: 主播推流的页面 * Function: 主播推流的页面
* <p> * <p>
* <p> * <p>
* 1. MLVB 其他观众发起连麦请求处理:{@link TCCameraAnchorActivity2#onRequestJoinAnchor(AnchorInfo, String)} * 1. MLVB 其他观众发起连麦请求处理:{@link TCCameraAnchorActivity#onRequestJoinAnchor(AnchorInfo, String)}
* <p> * <p>
* 2. MLVB 其他主播连麦,结束连麦处理:{@link TCCameraAnchorActivity2#onAnchorEnter(AnchorInfo)} {@link TCCameraAnchorActivity2#onAnchorExit(AnchorInfo)} * 2. MLVB 其他主播连麦,结束连麦处理:{@link TCCameraAnchorActivity#onAnchorEnter(AnchorInfo)} {@link TCCameraAnchorActivity#onAnchorExit(AnchorInfo)}
* <p> * <p>
* 3. 音效控制面板类 {@link TCAudioControl} * 3. 音效控制面板类 {@link TCAudioControl}
* <p> * <p>
...@@ -71,6 +71,9 @@ public class TCCameraAnchorActivity extends TCBaseAnchorActivity { ...@@ -71,6 +71,9 @@ public class TCCameraAnchorActivity extends TCBaseAnchorActivity {
private TextView mBroadcastTime; // 已经开播的时间 private TextView mBroadcastTime; // 已经开播的时间
private TextView mMemberCount; // 观众数量 private TextView mMemberCount; // 观众数量
private int baseUserCount = 0; //观众基数
View halfView; View halfView;
...@@ -127,7 +130,7 @@ public class TCCameraAnchorActivity extends TCBaseAnchorActivity { ...@@ -127,7 +130,7 @@ public class TCCameraAnchorActivity extends TCBaseAnchorActivity {
mHeadIcon = (ImageView) findViewById(R.id.anchor_iv_head_icon); mHeadIcon = (ImageView) findViewById(R.id.anchor_iv_head_icon);
showHeadIcon(mHeadIcon, TCUserMgr.getInstance().getAvatar()); showHeadIcon(mHeadIcon, TCUserMgr.getInstance().getAvatar());
mMemberCount = (TextView) findViewById(R.id.anchor_tv_member_counts); mMemberCount = (TextView) findViewById(R.id.anchor_tv_member_counts);
mMemberCount.setText("0"); mMemberCount.setText(baseUserCount+"");
//AudioControl //AudioControl
mAudioCtrl = (TCAudioControl) findViewById(R.id.anchor_audio_control); mAudioCtrl = (TCAudioControl) findViewById(R.id.anchor_audio_control);
...@@ -598,14 +601,14 @@ public class TCCameraAnchorActivity extends TCBaseAnchorActivity { ...@@ -598,14 +601,14 @@ public class TCCameraAnchorActivity extends TCBaseAnchorActivity {
//更新头像列表 返回false表明已存在相同用户,将不会更新数据 //更新头像列表 返回false表明已存在相同用户,将不会更新数据
if (mAvatarListAdapter.addItem(userInfo)) if (mAvatarListAdapter.addItem(userInfo))
super.handleMemberJoinMsg(userInfo); super.handleMemberJoinMsg(userInfo);
mMemberCount.setText(String.format(Locale.CHINA, "%d", mCurrentMemberCount)); mMemberCount.setText(String.format(Locale.CHINA, "%d", mCurrentMemberCount+baseUserCount));
} }
@Override @Override
protected void handleMemberQuitMsg(TCSimpleUserInfo userInfo) { protected void handleMemberQuitMsg(TCSimpleUserInfo userInfo) {
mAvatarListAdapter.removeItem(userInfo.userid); mAvatarListAdapter.removeItem(userInfo.userid);
super.handleMemberQuitMsg(userInfo); super.handleMemberQuitMsg(userInfo);
mMemberCount.setText(String.format(Locale.CHINA, "%d", mCurrentMemberCount)); mMemberCount.setText(String.format(Locale.CHINA, "%d", mCurrentMemberCount+baseUserCount));
} }
......
...@@ -59,7 +59,6 @@ import com.tencent.rtmp.ui.TXCloudVideoView; ...@@ -59,7 +59,6 @@ import com.tencent.rtmp.ui.TXCloudVideoView;
import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.EventBus;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
...@@ -119,6 +118,7 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene ...@@ -119,6 +118,7 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene
private String mAvatar = ""; // 我的头像 private String mAvatar = ""; // 我的头像
private String mFileId = ""; private String mFileId = "";
private String mTimeStamp = ""; private String mTimeStamp = "";
private int baseUserCount = 500; //观众基数
//头像列表控件 //头像列表控件
private RecyclerView mUserAvatarList; private RecyclerView mUserAvatarList;
...@@ -223,7 +223,8 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene ...@@ -223,7 +223,8 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene
mControlLayer = (RelativeLayout) findViewById(R.id.anchor_rl_controllLayer); mControlLayer = (RelativeLayout) findViewById(R.id.anchor_rl_controllLayer);
mTCSwipeAnimationController = new TCSwipeAnimationController(this); mTCSwipeAnimationController = new TCSwipeAnimationController(this);
mTCSwipeAnimationController.setAnimationView(mControlLayer); //左右滑动隐藏显示控制布局
// mTCSwipeAnimationController.setAnimationView(mControlLayer);
mTXCloudVideoView = (TXCloudVideoView) findViewById(R.id.anchor_video_view); mTXCloudVideoView = (TXCloudVideoView) findViewById(R.id.anchor_video_view);
mTXCloudVideoView.setLogMargin(10, 10, 45, 55); mTXCloudVideoView.setLogMargin(10, 10, 45, 55);
...@@ -236,7 +237,8 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene ...@@ -236,7 +237,8 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene
findViewById(R.id.anchor_iv_record_ball).setVisibility(View.GONE); findViewById(R.id.anchor_iv_record_ball).setVisibility(View.GONE);
mUserAvatarList = (RecyclerView) findViewById(R.id.anchor_rv_avatar); mUserAvatarList = (RecyclerView) findViewById(R.id.anchor_rv_avatar);
mUserAvatarList.setVisibility(View.VISIBLE); //隐藏头像列表
// mUserAvatarList.setVisibility(View.VISIBLE);
mAvatarListAdapter = new TCUserAvatarListAdapter(this, mPusherId); mAvatarListAdapter = new TCUserAvatarListAdapter(this, mPusherId);
mUserAvatarList.setAdapter(mAvatarListAdapter); mUserAvatarList.setAdapter(mAvatarListAdapter);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this); LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
...@@ -251,7 +253,7 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene ...@@ -251,7 +253,7 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene
mMemberCount = (TextView) findViewById(R.id.anchor_tv_member_counts); mMemberCount = (TextView) findViewById(R.id.anchor_tv_member_counts);
mCurrentAudienceCount++; mCurrentAudienceCount++;
mMemberCount.setText(String.format(Locale.CHINA,"%d", mCurrentAudienceCount)); mMemberCount.setText(String.format(Locale.CHINA,"%d", mCurrentAudienceCount+baseUserCount));
mChatMsgListAdapter = new TCChatMsgListAdapter(this, mListViewMsg, mArrayListChatEntity); mChatMsgListAdapter = new TCChatMsgListAdapter(this, mListViewMsg, mArrayListChatEntity);
mListViewMsg.setAdapter(mChatMsgListAdapter); mListViewMsg.setAdapter(mChatMsgListAdapter);
...@@ -393,7 +395,7 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene ...@@ -393,7 +395,7 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene
if (mAvatarListAdapter.addItem(userInfo)){ if (mAvatarListAdapter.addItem(userInfo)){
if (addedCount != 0){ if (addedCount != 0){
mCurrentAudienceCount++; mCurrentAudienceCount++;
mMemberCount.setText(String.format(Locale.CHINA,"%d", mCurrentAudienceCount)); mMemberCount.setText(String.format(Locale.CHINA,"%d", mCurrentAudienceCount+baseUserCount));
} }
addedCount+=1; addedCount+=1;
} }
...@@ -716,7 +718,7 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene ...@@ -716,7 +718,7 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene
finish(); finish();
TCUtils.showKickOut(TCAudienceActivity.this); TCUtils.showKickOut(TCAudienceActivity.this);
} else { } else {
showErrorAndQuit("视频流播放失败,Error:"); showErrorAndQuit("视频流播放失败,请稍后重试");
} }
} }
...@@ -757,7 +759,7 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene ...@@ -757,7 +759,7 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene
return; return;
mCurrentAudienceCount++; mCurrentAudienceCount++;
mMemberCount.setText(String.format(Locale.CHINA,"%d", mCurrentAudienceCount)); mMemberCount.setText(String.format(Locale.CHINA,"%d", mCurrentAudienceCount+baseUserCount));
//左下角显示用户加入消息 //左下角显示用户加入消息
TCChatEntity entity = new TCChatEntity(); TCChatEntity entity = new TCChatEntity();
...@@ -781,7 +783,7 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene ...@@ -781,7 +783,7 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene
else else
Log.d(TAG, "接受多次退出请求,目前人数为负数"); Log.d(TAG, "接受多次退出请求,目前人数为负数");
mMemberCount.setText(String.format(Locale.CHINA,"%d", mCurrentAudienceCount)); mMemberCount.setText(String.format(Locale.CHINA,"%d", mCurrentAudienceCount+baseUserCount));
mAvatarListAdapter.removeItem(userInfo.userid); mAvatarListAdapter.removeItem(userInfo.userid);
...@@ -993,16 +995,16 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene ...@@ -993,16 +995,16 @@ public class TCAudienceActivity extends Activity implements IMLVBLiveRoomListene
public void onTextSend(String msg, boolean danmuOpen) { public void onTextSend(String msg, boolean danmuOpen) {
if (msg.length() == 0) if (msg.length() == 0)
return; return;
try { // try {
byte[] byte_num = msg.getBytes("utf8"); // byte[] byte_num = msg.getBytes("utf8");
if (byte_num.length > 160) { // if (byte_num.length > 160) {
Toast.makeText(this, "请输入内容", Toast.LENGTH_SHORT).show(); // Toast.makeText(this, "请输入内容", Toast.LENGTH_SHORT).show();
return; // return;
} // }
} catch (UnsupportedEncodingException e) { // } catch (UnsupportedEncodingException e) {
e.printStackTrace(); // e.printStackTrace();
return; // return;
} // }
//消息回显 //消息回显
TCChatEntity entity = new TCChatEntity(); TCChatEntity entity = new TCChatEntity();
......
...@@ -42,7 +42,7 @@ public class TCInputTextMsgDialog extends Dialog { ...@@ -42,7 +42,7 @@ public class TCInputTextMsgDialog extends Dialog {
private int mLastDiff = 0; private int mLastDiff = 0;
private LinearLayout mConfirmArea; private LinearLayout mConfirmArea;
private OnTextSendListener mOnTextSendListener; private OnTextSendListener mOnTextSendListener;
private boolean mDanmuOpen = false; private boolean mDanmuOpen = true;
public TCInputTextMsgDialog(Context context, int theme) { public TCInputTextMsgDialog(Context context, int theme) {
super(context, theme); super(context, theme);
...@@ -69,7 +69,7 @@ public class TCInputTextMsgDialog extends Dialog { ...@@ -69,7 +69,7 @@ public class TCInputTextMsgDialog extends Dialog {
messageTextView.setText(""); messageTextView.setText("");
dismiss(); dismiss();
} else { } else {
Toast.makeText(mContext, "请输入内容!", Toast.LENGTH_LONG).show(); Toast.makeText(mContext, "请输入内容!", Toast.LENGTH_SHORT).show();
} }
messageTextView.setText(null); messageTextView.setText(null);
} }
...@@ -115,7 +115,7 @@ public class TCInputTextMsgDialog extends Dialog { ...@@ -115,7 +115,7 @@ public class TCInputTextMsgDialog extends Dialog {
// messageTextView.setText(""); // messageTextView.setText("");
dismiss(); dismiss();
} else { } else {
Toast.makeText(mContext, "请输入内容!", Toast.LENGTH_LONG).show(); Toast.makeText(mContext, "请输入内容!", Toast.LENGTH_SHORT).show();
} }
return true; return true;
case KeyEvent.KEYCODE_BACK: case KeyEvent.KEYCODE_BACK:
...@@ -140,7 +140,7 @@ public class TCInputTextMsgDialog extends Dialog { ...@@ -140,7 +140,7 @@ public class TCInputTextMsgDialog extends Dialog {
messageTextView.setText(""); messageTextView.setText("");
dismiss(); dismiss();
} else { } else {
Toast.makeText(mContext, "请输入内容!", Toast.LENGTH_LONG).show(); Toast.makeText(mContext, "请输入内容!", Toast.LENGTH_SHORT).show();
} }
messageTextView.setText(null); messageTextView.setText(null);
} }
......
...@@ -15,8 +15,9 @@ ...@@ -15,8 +15,9 @@
<LinearLayout <LinearLayout
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:layout_gravity="right"
android:layout_marginTop="15dp"> android:layout_marginTop="15dp">
<Button <Button
...@@ -27,7 +28,6 @@ ...@@ -27,7 +28,6 @@
android:textSize="12dp" android:textSize="12dp"
android:focusable="false" android:focusable="false"
android:background="@drawable/round_button" android:background="@drawable/round_button"
android:layout_marginLeft="15dp"
android:layout_marginBottom="15dp" android:layout_marginBottom="15dp"
android:layout_above="@+id/seekBar_bgm_volume"/> android:layout_above="@+id/seekBar_bgm_volume"/>
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
android:focusable="false" android:focusable="false"
android:background="@drawable/round_button" android:background="@drawable/round_button"
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginBottom="15dp" android:layout_marginBottom="15dp"
android:layout_toRightOf="@+id/btn_select_bgm" android:layout_toRightOf="@+id/btn_select_bgm"
android:layout_above="@+id/seekBar_bgm_volume" /> android:layout_above="@+id/seekBar_bgm_volume" />
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:layout_height="25dp" android:layout_height="25dp"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:background="@drawable/barrage_slider_off" /> android:background="@drawable/barrage_slider_on" />
</LinearLayout> </LinearLayout>
<View android:layout_width="0.5dp" <View android:layout_width="0.5dp"
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
android:imeActionId="@+id/login" android:imeActionId="@+id/login"
android:imeOptions="flagNoExtractUi" android:imeOptions="flagNoExtractUi"
android:inputType="text" android:inputType="text"
android:maxLength="32"
android:textColor="@color/black" android:textColor="@color/black"
android:maxLines="1" android:maxLines="1"
android:singleLine="true" /> android:singleLine="true" />
...@@ -66,8 +65,8 @@ ...@@ -66,8 +65,8 @@
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<Button <Button
android:id="@+id/confrim_btn" android:id="@+id/confrim_btn"
android:layout_width="50dp" android:layout_width="60dp"
android:layout_height="30dp" android:layout_height="match_parent"
android:background="@drawable/btn_send_message" android:background="@drawable/btn_send_message"
android:gravity="center" android:gravity="center"
android:textColor="@color/colorAccent" android:textColor="@color/colorAccent"
......
...@@ -90,17 +90,6 @@ ...@@ -90,17 +90,6 @@
android:textColor="@color/cl_tab_gray" /> android:textColor="@color/cl_tab_gray" />
</LinearLayout> </LinearLayout>
<LinearLayout style="@style/sale_linearlayout_detail">
<TextView
style="@style/sale_detail_text"
android:text="@string/goods_desc" />
<TextView
android:id="@+id/tv_desc"
style="@style/sale_detail_text2"
android:maxLines="50" />
</LinearLayout>
<TextView <TextView
style="@style/sale_detail_text" style="@style/sale_detail_text"
...@@ -119,6 +108,18 @@ ...@@ -119,6 +108,18 @@
android:layout_height="match_parent" /> android:layout_height="match_parent" />
</LinearLayout> </LinearLayout>
<LinearLayout style="@style/sale_linearlayout_detail">
<TextView
style="@style/sale_detail_text"
android:text="@string/goods_desc" />
<TextView
android:id="@+id/tv_desc"
style="@style/sale_detail_text2"
android:maxLines="50" />
</LinearLayout>
</LinearLayout> </LinearLayout>
</android.support.v4.widget.NestedScrollView> </android.support.v4.widget.NestedScrollView>
......
...@@ -60,6 +60,8 @@ dependencies { ...@@ -60,6 +60,8 @@ dependencies {
//vivo Push通道 //vivo Push通道
api 'com.umeng.umsdk:vivo-push:2.3.1' api 'com.umeng.umsdk:vivo-push:2.3.1'
api 'com.umeng.umsdk:vivo-umengaccs:1.0.4' api 'com.umeng.umsdk:vivo-umengaccs:1.0.4'
// api 'com.umeng.umsdk:crash:0.0.4'
} }
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
<TextView <TextView
style="@style/tv_user_bottom1" style="@style/tv_user_bottom1"
android:layout_marginLeft="25dp" android:layout_marginLeft="15dp"
android:layout_marginTop="0dp" android:layout_marginTop="0dp"
android:text="可提现金额:" /> android:text="可提现金额:" />
...@@ -331,17 +331,18 @@ ...@@ -331,17 +331,18 @@
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:layout_marginTop="0dp" android:layout_marginTop="0dp"
android:text="0" android:text="0"
android:textSize="16sp" /> android:textColor="@color/cl_order_item_date"
android:textSize="22sp" />
</LinearLayout> </LinearLayout>
<TextView <TextView
android:id="@+id/tv_fetch" android:id="@+id/tv_fetch"
style="@style/btn_common" style="@style/btn_common"
android:layout_height="36dp" android:layout_height="36dp"
android:layout_width="100dp" android:layout_width="95dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:background="@drawable/btn_blue_commom" android:background="@drawable/btn_blue_commom"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_marginRight="20dp" android:layout_marginRight="15dp"
android:text="@string/apply_fetch" /> android:text="@string/apply_fetch" />
</RelativeLayout> </RelativeLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment