社区主要UI
@@ -57,7 +57,6 @@
|
||||
android:name="com.yunbao.common.activity.SelectImageActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
|
||||
|
||||
<activity
|
||||
android:name="com.yunbao.common.activity.PreviewImageActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
@@ -66,6 +65,14 @@
|
||||
android:name="com.yunbao.common.activity.PreviewVideoActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
|
||||
<activity
|
||||
android:name=".activity.CommunitySendActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
|
||||
<activity
|
||||
android:name=".activity.CommunityDetailsActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.yunbao.common.activity;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.widget.LinearLayout;
|
||||
|
||||
import androidx.recyclerview.widget.GridLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.custom.ItemDecoration;
|
||||
import com.yunbao.common.manager.OpenAdManager;
|
||||
|
||||
public class CommunityDetailsActivity extends AbsActivity {
|
||||
private RecyclerView mRecyclerViewImage;
|
||||
private LinearLayout imgTextLayout;
|
||||
private LinearLayout videoLayout;
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_community_details;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void create() {
|
||||
super.create();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
super.onPause();
|
||||
OpenAdManager.getInstance().dismiss();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void main() {
|
||||
|
||||
mRecyclerViewImage = findViewById(R.id.recyclerView);
|
||||
mRecyclerViewImage.setLayoutManager(new GridLayoutManager(mContext, 3, GridLayoutManager.VERTICAL, false));
|
||||
ItemDecoration decoration = new ItemDecoration(mContext, 0x00000000, 15, 15);
|
||||
decoration.setOnlySetItemOffsetsButNoDraw(true);
|
||||
mRecyclerViewImage.addItemDecoration(decoration);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
|
||||
super.onActivityResult(requestCode, resultCode, intent);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.yunbao.common.activity;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
|
||||
import androidx.recyclerview.widget.GridLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.custom.ItemDecoration;
|
||||
import com.yunbao.common.manager.OpenAdManager;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
|
||||
public class CommunitySendActivity extends AbsActivity {
|
||||
private RecyclerView mRecyclerViewImage;
|
||||
private LinearLayout imgTextLayout;
|
||||
private LinearLayout videoLayout;
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_community_send;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void create() {
|
||||
super.create();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
super.onPause();
|
||||
OpenAdManager.getInstance().dismiss();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void main() {
|
||||
imgTextLayout = findViewById(R.id.imgTextLayout);
|
||||
videoLayout = findViewById(R.id.videoLayout);
|
||||
|
||||
imgTextLayout.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
}
|
||||
});
|
||||
videoLayout.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
}
|
||||
});
|
||||
|
||||
mRecyclerViewImage = findViewById(R.id.recyclerView_image);
|
||||
mRecyclerViewImage.setLayoutManager(new GridLayoutManager(mContext, 3, GridLayoutManager.VERTICAL, false));
|
||||
ItemDecoration decoration = new ItemDecoration(mContext, 0x00000000, 15, 15);
|
||||
decoration.setOnlySetItemOffsetsButNoDraw(true);
|
||||
mRecyclerViewImage.addItemDecoration(decoration);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
|
||||
super.onActivityResult(requestCode, resultCode, intent);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.yunbao.common.activity;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.view.View;
|
||||
|
||||
import com.yunbao.common.R;
|
||||
|
||||
public class UserHomeActivity extends AbsActivity {
|
||||
|
||||
View bodyLayout;
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_user_home;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void create() {
|
||||
super.create();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void main() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
|
||||
super.onActivityResult(requestCode, resultCode, intent);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,492 @@
|
||||
package com.yunbao.common.custom;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.Gravity;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.widget.FrameLayout;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.recyclerview.widget.SimpleItemAnimator;
|
||||
import androidx.recyclerview.widget.StaggeredGridLayoutManager;
|
||||
|
||||
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.api.RefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.footer.ClassicsFooter;
|
||||
import com.scwang.smartrefresh.layout.listener.OnLoadMoreListener;
|
||||
import com.scwang.smartrefresh.layout.listener.OnRefreshListener;
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.adapter.RefreshAdapter;
|
||||
import com.yunbao.common.http.HttpCallback;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.views.weight.ClassicsHeaderNew;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by cxf on 2018/6/7.
|
||||
*/
|
||||
|
||||
public class CommonRefreshWaterfallView extends FrameLayout implements View.OnClickListener {
|
||||
|
||||
private Context mContext;
|
||||
private DataHelper mDataHelper;
|
||||
private int mLayoutRes;
|
||||
private View mContentView;
|
||||
private SmartRefreshLayout mSmartRefreshLayout;
|
||||
private ClassicsHeaderNew mHeader;
|
||||
private ClassicsFooter mFooter;
|
||||
public RecyclerView mRecyclerView;
|
||||
private FrameLayout mEmptyLayout;//没有数据的View
|
||||
private View mLoadFailureView;//加载失败View
|
||||
private boolean mRefreshEnable;//下拉刷新是否可用
|
||||
private boolean mLoadMoreEnable;//上拉加载是否可用
|
||||
private int mPageCount;//页数
|
||||
private int mItemCount;//每页的Item个数
|
||||
|
||||
public CommonRefreshWaterfallView(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public CommonRefreshWaterfallView(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
}
|
||||
|
||||
public CommonRefreshWaterfallView(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
super(context, attrs, defStyleAttr);
|
||||
mContext = context;
|
||||
TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.CommonRefreshView);
|
||||
mRefreshEnable = ta.getBoolean(R.styleable.CommonRefreshView_crv_refreshEnable, true);
|
||||
mLoadMoreEnable = ta.getBoolean(R.styleable.CommonRefreshView_crv_loadMoreEnable, true);
|
||||
mLayoutRes = ta.getResourceId(R.styleable.CommonRefreshView_crv_layout, R.layout.view_refresh_default);
|
||||
mItemCount = ta.getInteger(R.styleable.CommonRefreshView_crv_itemCount, 20);
|
||||
ta.recycle();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onFinishInflate() {
|
||||
super.onFinishInflate();
|
||||
LayoutInflater inflater = LayoutInflater.from(mContext);
|
||||
View view = inflater.inflate(mLayoutRes, this, false);
|
||||
mContentView = view;
|
||||
addView(view);
|
||||
mSmartRefreshLayout = (SmartRefreshLayout) view.findViewById(R.id.refreshLayout);
|
||||
mSmartRefreshLayout.setEnableLoadMoreWhenContentNotFull(false);//是否在列表不满一页时候开启上拉加载功能
|
||||
mSmartRefreshLayout.setEnableFooterFollowWhenLoadFinished(true);//是否在全部加载结束之后Footer跟随内容
|
||||
mSmartRefreshLayout.setEnableOverScrollBounce(false);//设置是否开启越界回弹功能(默认true)
|
||||
mEmptyLayout = (FrameLayout) view.findViewById(R.id.no_data_container);
|
||||
mLoadFailureView = view.findViewById(R.id.load_failure);
|
||||
mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);
|
||||
mRecyclerView.setHasFixedSize(true);
|
||||
|
||||
StaggeredGridLayoutManager staggeredGridLayoutManager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL);
|
||||
mRecyclerView.setLayoutManager(staggeredGridLayoutManager);
|
||||
|
||||
((SimpleItemAnimator) mRecyclerView.getItemAnimator()).setSupportsChangeAnimations(false);
|
||||
mSmartRefreshLayout.setOnRefreshListener(new OnRefreshListener() {
|
||||
@Override
|
||||
public void onRefresh(@NonNull RefreshLayout refreshLayout) {
|
||||
refresh();
|
||||
}
|
||||
});
|
||||
|
||||
mSmartRefreshLayout.setOnLoadMoreListener(new OnLoadMoreListener() {
|
||||
@Override
|
||||
public void onLoadMore(@NonNull RefreshLayout refreshlayout) {
|
||||
Log.i("t2", "来了哦");
|
||||
loadMore();
|
||||
}
|
||||
});
|
||||
mSmartRefreshLayout.setEnableRefresh(mRefreshEnable);
|
||||
mSmartRefreshLayout.setEnableLoadMore(mLoadMoreEnable);
|
||||
View btnReload = view.findViewById(R.id.btn_reload);
|
||||
if (btnReload != null) {
|
||||
btnReload.setOnClickListener(this);
|
||||
}
|
||||
int textColor = ContextCompat.getColor(mContext, R.color.textColor);
|
||||
mHeader = findViewById(R.id.header);
|
||||
mHeader.setAccentColor(textColor);
|
||||
mFooter = findViewById(R.id.footer);
|
||||
mFooter.setAccentColor(textColor);
|
||||
mFooter.setTextSizeTitle(14);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置头部字体颜色
|
||||
*
|
||||
* @param textColor
|
||||
*/
|
||||
public void setHeaderTextColor(int textColor) {
|
||||
mHeader.setAccentColor(textColor);
|
||||
}
|
||||
|
||||
private HttpCallback mRefreshCallback = new HttpCallback() {
|
||||
|
||||
private int mDataCount;
|
||||
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (mDataHelper == null) {
|
||||
return;
|
||||
}
|
||||
if (mLoadFailureView != null && mLoadFailureView.getVisibility() == View.VISIBLE) {
|
||||
mLoadFailureView.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
RefreshAdapter adapter = null;
|
||||
RecyclerView.Adapter recyclerViewAdapter = mRecyclerView.getAdapter();
|
||||
if (recyclerViewAdapter != null && recyclerViewAdapter instanceof RefreshAdapter) {
|
||||
adapter = (RefreshAdapter) recyclerViewAdapter;
|
||||
} else {
|
||||
adapter = mDataHelper.getAdapter();
|
||||
if (adapter == null) {
|
||||
return;
|
||||
}
|
||||
mRecyclerView.setAdapter(adapter);
|
||||
}
|
||||
if (code != 0) {
|
||||
ToastUtil.show(msg);
|
||||
return;
|
||||
}
|
||||
if (info != null) {
|
||||
List list = mDataHelper.processData(info);
|
||||
if (list == null) {
|
||||
return;
|
||||
}
|
||||
mDataCount = list.size();
|
||||
if (mDataCount > 0) {
|
||||
if (mEmptyLayout != null && mEmptyLayout.getVisibility() == View.VISIBLE) {
|
||||
mEmptyLayout.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
adapter.refreshData(list);
|
||||
} else {
|
||||
adapter.clearData();
|
||||
if (mEmptyLayout != null && mEmptyLayout.getVisibility() != View.VISIBLE) {
|
||||
mEmptyLayout.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (adapter != null) {
|
||||
adapter.clearData();
|
||||
}
|
||||
if (mEmptyLayout != null && mEmptyLayout.getVisibility() != View.VISIBLE) {
|
||||
mEmptyLayout.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
mDataHelper.onRefreshSuccess(adapter.getList(), adapter.getItemCount());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onError() {
|
||||
if (mEmptyLayout != null && mEmptyLayout.getVisibility() == View.VISIBLE) {
|
||||
mEmptyLayout.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
if (mLoadFailureView != null) {
|
||||
if (mLoadFailureView.getVisibility() != View.VISIBLE) {
|
||||
if (mRecyclerView != null) {
|
||||
RecyclerView.Adapter adapter = mRecyclerView.getAdapter();
|
||||
if (adapter != null && adapter.getItemCount() > 0) {
|
||||
ToastUtil.show(mContext.getString(R.string.load_failure));
|
||||
} else {
|
||||
mLoadFailureView.setVisibility(View.VISIBLE);
|
||||
}
|
||||
} else {
|
||||
mLoadFailureView.setVisibility(View.VISIBLE);
|
||||
}
|
||||
} else {
|
||||
ToastUtil.show(mContext.getString(R.string.load_failure));
|
||||
}
|
||||
}
|
||||
if (mDataHelper != null) {
|
||||
mDataHelper.onRefreshFailure();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFinish() {
|
||||
if (mSmartRefreshLayout != null) {
|
||||
mSmartRefreshLayout.finishRefresh(true);
|
||||
if (mDataCount < mItemCount) {
|
||||
mSmartRefreshLayout.finishLoadMore(true);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private HttpCallback mLoadMoreCallback = new HttpCallback() {
|
||||
|
||||
private int mDataCount;
|
||||
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (mDataHelper == null) {
|
||||
mPageCount--;
|
||||
return;
|
||||
}
|
||||
if (code != 0) {
|
||||
ToastUtil.show(msg);
|
||||
mPageCount--;
|
||||
return;
|
||||
}
|
||||
if (mLoadFailureView != null && mLoadFailureView.getVisibility() == View.VISIBLE) {
|
||||
mLoadFailureView.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
if (info != null) {
|
||||
List list = mDataHelper.processData(info);
|
||||
if (list == null) {
|
||||
mPageCount--;
|
||||
return;
|
||||
}
|
||||
mDataCount = list.size();
|
||||
RefreshAdapter adapter = mDataHelper.getAdapter();
|
||||
if (mDataCount > 0) {
|
||||
if (adapter != null) {
|
||||
adapter.insertList(list);
|
||||
}
|
||||
} else {
|
||||
mPageCount--;
|
||||
}
|
||||
mDataHelper.onLoadMoreSuccess(list, mDataCount);
|
||||
} else {
|
||||
mPageCount--;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError() {
|
||||
super.onError();
|
||||
mPageCount--;
|
||||
if (mDataHelper != null) {
|
||||
mDataHelper.onLoadMoreFailure();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFinish() {
|
||||
Log.i("t2", "更多");
|
||||
if (mSmartRefreshLayout != null) {
|
||||
if (mDataCount <= 0) {
|
||||
mSmartRefreshLayout.finishLoadMoreWithNoMoreData();
|
||||
} else {
|
||||
mSmartRefreshLayout.finishLoadMore(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public void onFinish() {
|
||||
if (mLoadFailureView != null && mLoadFailureView.getVisibility() == View.VISIBLE) {
|
||||
mLoadFailureView.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
if (mEmptyLayout != null && mEmptyLayout.getVisibility() == View.VISIBLE) {
|
||||
mEmptyLayout.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
if (mSmartRefreshLayout != null) {
|
||||
mSmartRefreshLayout.finishRefresh(true);
|
||||
}
|
||||
}
|
||||
|
||||
public <T> void setDataHelper(DataHelper<T> dataHelper) {
|
||||
mDataHelper = dataHelper;
|
||||
}
|
||||
|
||||
public void setLayoutManager(RecyclerView.LayoutManager layoutManager) {
|
||||
mRecyclerView.setLayoutManager(layoutManager);
|
||||
}
|
||||
|
||||
public void setItemDecoration(ItemDecoration itemDecoration) {
|
||||
mRecyclerView.addItemDecoration(itemDecoration);
|
||||
}
|
||||
|
||||
/**
|
||||
* 手动设置没有更多数据
|
||||
* 因为日榜/周榜接口没有分页参数,会导致一直读取重复数据
|
||||
*/
|
||||
public void setNotLoadMore() {
|
||||
mSmartRefreshLayout.finishLoadMoreWithNoMoreData();
|
||||
}
|
||||
|
||||
public void showLoading() {
|
||||
mPageCount = 1;
|
||||
if (mSmartRefreshLayout != null) {
|
||||
mSmartRefreshLayout.autoRefreshAnimationOnly();
|
||||
}
|
||||
if (mEmptyLayout != null && mEmptyLayout.getVisibility() == VISIBLE) {
|
||||
mEmptyLayout.setVisibility(INVISIBLE);
|
||||
}
|
||||
if (mLoadFailureView != null && mLoadFailureView.getVisibility() == VISIBLE) {
|
||||
mLoadFailureView.setVisibility(INVISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
public void showRefreshBar() {
|
||||
if (mSmartRefreshLayout != null) {
|
||||
mSmartRefreshLayout.autoRefresh(100);//延迟400毫秒后自动刷新
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void showEmpty() {
|
||||
if (mEmptyLayout != null && mEmptyLayout.getVisibility() != VISIBLE) {
|
||||
mEmptyLayout.setVisibility(VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
public void hideEmpty() {
|
||||
if (mEmptyLayout != null && mEmptyLayout.getVisibility() == VISIBLE) {
|
||||
mEmptyLayout.setVisibility(INVISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
public void hideLoadFailure() {
|
||||
if (mLoadFailureView != null && mLoadFailureView.getVisibility() == VISIBLE) {
|
||||
mLoadFailureView.setVisibility(INVISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void initData() {
|
||||
Log.i("t2", "AAAs1212");
|
||||
refresh();
|
||||
}
|
||||
|
||||
private void refresh() {
|
||||
if (mDataHelper != null) {
|
||||
Log.i("t2", "AAAs");
|
||||
mPageCount = 1;
|
||||
mDataHelper.loadData(mPageCount, mRefreshCallback);
|
||||
}
|
||||
if (dataHelperNew != null) {
|
||||
dataHelperNew.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
private void loadMore() {
|
||||
Log.i("t2", "来了哦111");
|
||||
|
||||
if (mDataHelper != null) {
|
||||
Log.i("t2", "来了哦12121");
|
||||
mPageCount++;
|
||||
mDataHelper.loadData(mPageCount, mLoadMoreCallback);
|
||||
}
|
||||
if (dataHelperNew != null) {
|
||||
dataHelperNew.loadData(mPageCount);
|
||||
}
|
||||
}
|
||||
|
||||
public int getPageCount() {
|
||||
return mPageCount;
|
||||
}
|
||||
|
||||
public void setPageCount(int pageCount) {
|
||||
mPageCount = pageCount;
|
||||
}
|
||||
|
||||
|
||||
public int getItemCount() {
|
||||
return mItemCount;
|
||||
}
|
||||
|
||||
public void setItemCount(int itemCount) {
|
||||
mItemCount = itemCount;
|
||||
}
|
||||
|
||||
public void setRefreshEnable(boolean enable) {
|
||||
if (mSmartRefreshLayout != null) {
|
||||
mSmartRefreshLayout.setEnableRefresh(enable);
|
||||
}
|
||||
}
|
||||
|
||||
public void setLoadMoreEnable(boolean enable) {
|
||||
if (mSmartRefreshLayout != null) {
|
||||
mSmartRefreshLayout.setEnableLoadMore(enable);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (v.getId() == R.id.btn_reload) {
|
||||
refresh();
|
||||
}
|
||||
}
|
||||
|
||||
public interface DataHelperNew {
|
||||
void loadData(int p);
|
||||
|
||||
void refresh();
|
||||
}
|
||||
|
||||
private DataHelperNew dataHelperNew;
|
||||
|
||||
public CommonRefreshWaterfallView setDataHelperNew(DataHelperNew dataHelperNew) {
|
||||
this.dataHelperNew = dataHelperNew;
|
||||
return this;
|
||||
}
|
||||
|
||||
public interface DataHelper<T> {
|
||||
RefreshAdapter<T> getAdapter();
|
||||
|
||||
void loadData(int p, HttpCallback callback);
|
||||
|
||||
List<T> processData(String[] info);
|
||||
|
||||
/**
|
||||
* 下拉刷新成功
|
||||
*
|
||||
* @param list Adapter的全部数据的List
|
||||
* @param listCount Adapter的全部数据的个数
|
||||
*/
|
||||
void onRefreshSuccess(List<T> list, int listCount);
|
||||
|
||||
/**
|
||||
* 下拉刷新失败
|
||||
*/
|
||||
void onRefreshFailure();
|
||||
|
||||
/**
|
||||
* 上拉加载成功
|
||||
*
|
||||
* @param loadItemList 本次加载到的数据
|
||||
* @param loadItemCount 加载到的数据个数
|
||||
*/
|
||||
void onLoadMoreSuccess(List<T> loadItemList, int loadItemCount);
|
||||
|
||||
/**
|
||||
* 加载失败
|
||||
*/
|
||||
void onLoadMoreFailure();
|
||||
}
|
||||
|
||||
/**
|
||||
* 空数据的布局
|
||||
*/
|
||||
public void setEmptyLayoutId(int noDataLayoutId) {
|
||||
if (mEmptyLayout != null) {
|
||||
mEmptyLayout.removeAllViews();
|
||||
View v = LayoutInflater.from(mContext).inflate(noDataLayoutId, mEmptyLayout, false);
|
||||
FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) v.getLayoutParams();
|
||||
params.gravity = Gravity.CENTER;
|
||||
v.setLayoutParams(params);
|
||||
mEmptyLayout.addView(v);
|
||||
}
|
||||
}
|
||||
|
||||
public View getContentView() {
|
||||
return mContentView;
|
||||
}
|
||||
|
||||
public void setRecyclerViewAdapter(RefreshAdapter adapter) {
|
||||
if (mRecyclerView != null) {
|
||||
mRecyclerView.setAdapter(adapter);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.fragment.app.Fragment;
|
||||
@@ -60,7 +61,6 @@ public class ProcessFragment extends Fragment {
|
||||
mPermissionCallback = null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 判断申请的权限有没有被允许
|
||||
*/
|
||||
@@ -119,7 +119,7 @@ public class ProcessFragment extends Fragment {
|
||||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
try {
|
||||
RCRTCEngine.getInstance().getDefaultVideoStream().startCamera(null);
|
||||
}catch (Exception e){
|
||||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
if (mActivityResultCallback != null) {
|
||||
@@ -131,8 +131,8 @@ public class ProcessFragment extends Fragment {
|
||||
}
|
||||
}
|
||||
|
||||
public void release(){
|
||||
mPermissionCallback=null;
|
||||
mActivityResultCallback=null;
|
||||
public void release() {
|
||||
mPermissionCallback = null;
|
||||
mActivityResultCallback = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.yunbao.common.interfaces;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public abstract class PermissionCallback {
|
||||
|
||||
public abstract void onAllGranted();
|
||||
|
||||
public void onResult(HashMap<String, Boolean> resultMap) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.yunbao.common.views;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.animation.AccelerateDecelerateInterpolator;
|
||||
import android.view.animation.Interpolator;
|
||||
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.utils.ScreenDimenUtil;
|
||||
|
||||
/**
|
||||
* Created by cxf on 2018/10/15.
|
||||
*/
|
||||
|
||||
public abstract class AbsUserPageViewHolder extends AbsViewHolder implements View.OnClickListener {
|
||||
|
||||
protected ObjectAnimator mEnterAnimator;
|
||||
protected ObjectAnimator mOutAnimator;
|
||||
protected boolean mLoad;
|
||||
protected boolean mShowed;
|
||||
protected boolean mAnimating;
|
||||
|
||||
public AbsUserPageViewHolder(Context context, ViewGroup parentView) {
|
||||
super(context, parentView);
|
||||
}
|
||||
|
||||
public AbsUserPageViewHolder(Context context, ViewGroup parentView, Object... args) {
|
||||
super(context, parentView, args);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
int screenWidth = ScreenDimenUtil.getInstance().getScreenWdith();
|
||||
Interpolator interpolator = new AccelerateDecelerateInterpolator();
|
||||
mEnterAnimator = ObjectAnimator.ofFloat(mContentView, "translationX", screenWidth, 0);
|
||||
mEnterAnimator.setDuration(200);
|
||||
mEnterAnimator.setInterpolator(interpolator);
|
||||
mEnterAnimator.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
mAnimating = false;
|
||||
mShowed = true;
|
||||
onShow();
|
||||
loadData();
|
||||
}
|
||||
|
||||
});
|
||||
mOutAnimator = ObjectAnimator.ofFloat(mContentView, "translationX", 0, screenWidth);
|
||||
mOutAnimator.setDuration(200);
|
||||
mOutAnimator.setInterpolator(interpolator);
|
||||
mOutAnimator.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
mAnimating = false;
|
||||
mShowed = false;
|
||||
onHide();
|
||||
}
|
||||
});
|
||||
findViewById(R.id.btn_back).setOnClickListener(this);
|
||||
}
|
||||
|
||||
public abstract void loadData();
|
||||
|
||||
public void show() {
|
||||
if (!mAnimating) {
|
||||
mAnimating = true;
|
||||
mEnterAnimator.start();
|
||||
}
|
||||
}
|
||||
|
||||
public void hide() {
|
||||
if (!mAnimating) {
|
||||
mAnimating = true;
|
||||
mOutAnimator.start();
|
||||
}
|
||||
}
|
||||
|
||||
public void onShow() {
|
||||
|
||||
}
|
||||
|
||||
public void onHide() {
|
||||
|
||||
}
|
||||
|
||||
public boolean isShowed() {
|
||||
return mShowed;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
int i = v.getId();
|
||||
if (i == R.id.btn_back) {
|
||||
hide();
|
||||
}
|
||||
}
|
||||
|
||||
public void release() {
|
||||
if (mEnterAnimator != null) {
|
||||
mEnterAnimator.cancel();
|
||||
}
|
||||
mEnterAnimator = null;
|
||||
if (mOutAnimator != null) {
|
||||
mOutAnimator.cancel();
|
||||
}
|
||||
mEnterAnimator = null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.yunbao.common.views;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.FrameLayout;
|
||||
|
||||
import androidx.annotation.AttrRes;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.yunbao.common.R;
|
||||
|
||||
/**
|
||||
* Created by cxf on 2018/9/27.
|
||||
*/
|
||||
|
||||
public class MyFrameLayout2 extends FrameLayout {
|
||||
|
||||
private float mRatio;
|
||||
private float mOffestY;
|
||||
|
||||
public MyFrameLayout2(@NonNull Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public MyFrameLayout2(@NonNull Context context, @Nullable AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
}
|
||||
|
||||
public MyFrameLayout2(@NonNull Context context, @Nullable AttributeSet attrs, @AttrRes int defStyleAttr) {
|
||||
super(context, attrs, defStyleAttr);
|
||||
TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.MyFrameLayout2);
|
||||
mRatio = ta.getFloat(R.styleable.MyFrameLayout2_mfl_ratio, 1);
|
||||
mOffestY = ta.getDimension(R.styleable.MyFrameLayout2_mfl_offestY, 0);
|
||||
ta.recycle();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||
int widthSize = MeasureSpec.getSize(widthMeasureSpec);
|
||||
heightMeasureSpec = MeasureSpec.makeMeasureSpec((int) (widthSize * mRatio + mOffestY), MeasureSpec.EXACTLY);
|
||||
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
||||
}
|
||||
|
||||
}
|
||||
5
common/src/main/res/drawable/bg_community_comment.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="45dp" />
|
||||
<solid android:color="#FEF8F8" />
|
||||
</shape>
|
||||
5
common/src/main/res/drawable/bg_item_active_img.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="5dp"/>
|
||||
<solid android:color="#F7F9FB"/>
|
||||
</shape>
|
||||
12
common/src/main/res/drawable/bg_main_com_type.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<gradient
|
||||
android:angle="-45"
|
||||
android:endColor="#EB6FFF"
|
||||
android:startColor="#FF83C6" />
|
||||
<corners
|
||||
android:bottomLeftRadius="90dp"
|
||||
android:bottomRightRadius="90dp"
|
||||
android:topLeftRadius="90dp"
|
||||
android:topRightRadius="90dp" />
|
||||
</shape>
|
||||
12
common/src/main/res/drawable/bg_user_home_bottom.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<solid android:color="@android:color/white" />
|
||||
|
||||
<corners
|
||||
android:bottomLeftRadius="0dp"
|
||||
android:bottomRightRadius="0dp"
|
||||
android:topLeftRadius="35dp"
|
||||
android:topRightRadius="35dp" />
|
||||
|
||||
</shape>
|
||||
5
common/src/main/res/drawable/main_community_send.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="45dp" />
|
||||
<solid android:color="#EB6FFF" />
|
||||
</shape>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="15dp" />
|
||||
<solid android:color="@color/white" />
|
||||
</shape>
|
||||
207
common/src/main/res/layout/activity_community_details.xml
Normal file
@@ -0,0 +1,207 @@
|
||||
<?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="match_parent"
|
||||
android:background="@mipmap/main_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/view_title_new" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginRight="20dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="70dp"
|
||||
android:src="@mipmap/icon_data_empty" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="栗子栗子🌰zzz"
|
||||
android:textColor="#333333"
|
||||
android:textSize="20dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="02 - 11发布"
|
||||
android:textColor="#AAAAAA" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="40dp"
|
||||
android:background="@drawable/bg_main_com_type"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@mipmap/icon_like_follow" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:text="关注"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="哇这里我也太想去了!真是太漂亮了 请问一下路边结冰了吗?会不会封路?"
|
||||
android:textColor="#333333" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@mipmap/icon_like" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="王多鱼,明明,青青等105人觉得很赞"
|
||||
android:textColor="#333333"
|
||||
android:textSize="12dp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@mipmap/icon_share_new" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:background="#FFE9F6" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="评论123"
|
||||
android:textColor="#333333"
|
||||
android:textSize="16dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:src="@mipmap/icon_comment" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="35dp"
|
||||
android:layout_height="35dp"
|
||||
android:src="@mipmap/icon_data_empty" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_community_comment"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:src="@mipmap/icon_edit_new" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/comment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/transparent"
|
||||
android:hint="说点什么..."
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp"
|
||||
android:textSize="14dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/send"
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="25dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:src="@mipmap/icon_send" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
201
common/src/main/res/layout/activity_community_send.xml
Normal file
@@ -0,0 +1,201 @@
|
||||
<?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="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/view_title2" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="15dp"
|
||||
android:background="@drawable/main_community_send_edit_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="15dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@mipmap/icon_community_edit" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="请输入200字以内的文字"
|
||||
android:textColor="#333333" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="180dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:background="@color/white"
|
||||
android:gravity="start"
|
||||
android:hint="写点什么写点什么写点什么写点什么写点什么写点什么写点什么写点什么写点什么写点什么写点什么写点什么写点什么写点什么写点什么写点什么..."
|
||||
android:maxEms="200"
|
||||
android:maxLength="200"
|
||||
android:textSize="14dp" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView_image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:nestedScrollingEnabled="false"
|
||||
android:overScrollMode="never"
|
||||
android:visibility="gone" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/imgTextLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:src="@mipmap/icon_community_img_text" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="图文"
|
||||
android:textColor="#333333"
|
||||
android:textSize="16dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/videoLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:src="@mipmap/icon_community_video" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="视频"
|
||||
android:textColor="#333333"
|
||||
android:textSize="16dp" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:background="@drawable/main_community_send_edit_bg"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingEnd="15dp"
|
||||
android:paddingBottom="10dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@mipmap/icon_community_talk" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_weight="1"
|
||||
android:text="选择话题"
|
||||
android:textColor="#333333"
|
||||
android:textSize="16dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@mipmap/icon_right_new" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:background="#FFE9F6" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@mipmap/icon_community_time" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:text="选择时间"
|
||||
android:textColor="#333333"
|
||||
android:textSize="16dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_weight="1"
|
||||
android:text="立即发表"
|
||||
android:textColor="#333333"
|
||||
android:textSize="14dp" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@mipmap/icon_right_new" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
393
common/src/main/res/layout/activity_user_home.xml
Normal file
@@ -0,0 +1,393 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@mipmap/main_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
android:id="@+id/appBarLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/transparent"
|
||||
android:fadingEdge="none"
|
||||
app:elevation="0dp"
|
||||
app:layout_behavior="com.yunbao.common.custom.FixAppBarLayoutBehavior">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:minHeight="65dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="380dp"
|
||||
android:background="@color/gray1">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/temp" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginBottom="35dp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="-20dp"
|
||||
android:background="@drawable/bg_user_home_bottom"
|
||||
android:orientation="vertical"
|
||||
android:padding="20dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/temp"
|
||||
app:riv_corner_radius="20dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:text="主播昵称"
|
||||
android:textColor="#333333"
|
||||
android:textSize="20dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="25dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:src="@mipmap/icon_auth_suc" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:text="真人认证"
|
||||
android:textColor="#333333"
|
||||
android:textSize="12dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="10.99w"
|
||||
android:textColor="#333333"
|
||||
android:textSize="12dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="粉丝"
|
||||
android:textColor="#777777"
|
||||
android:textSize="12dp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="10.99w"
|
||||
android:textColor="#333333"
|
||||
android:textSize="12dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="获赞"
|
||||
android:textColor="#777777"
|
||||
android:textSize="12dp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="40dp"
|
||||
android:background="@drawable/bg_main_com_type"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@mipmap/icon_like_follow" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:text="关注"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="ID:123456"
|
||||
android:textColor="#777777"
|
||||
android:textSize="12dp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:text="在线"
|
||||
android:textColor="#777777"
|
||||
android:textSize="10dp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="5dp"
|
||||
android:layout_height="5dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:src="@mipmap/icon_green" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/user_sex"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@mipmap/icon_man" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:src="@mipmap/icon_grade" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginLeft="25dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="Lv 42"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:src="@mipmap/icon_vip_grade" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginLeft="27dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="Lv 42"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:background="@color/gray1" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="个性签名个性签名个性签名个性签名个性签名个性签名个性签名个性签名个性签名"
|
||||
android:textColor="#777777"
|
||||
android:textSize="12dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="查看更多"
|
||||
android:textColor="#FF4874"
|
||||
android:textSize="13dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:src="@mipmap/icon_down" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:background="#FFE9F6" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="3dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:src="@mipmap/icon_index_new" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="个人动态"
|
||||
android:textColor="#333333"
|
||||
android:textSize="16dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="500dp"
|
||||
android:layout_below="@id/appBarLayout"
|
||||
android:overScrollMode="never"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/topLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"
|
||||
android:background="@android:color/transparent"
|
||||
android:clickable="true"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="40dp"
|
||||
android:paddingRight="20dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="34dp"
|
||||
android:layout_height="30dp"
|
||||
android:src="@mipmap/icon_left" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="用户名称"
|
||||
android:textColor="#333333"
|
||||
android:textSize="16dp"
|
||||
android:textStyle="bold"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:src="@mipmap/icon_right_gray" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
77
common/src/main/res/layout/view_preview_image.xml
Normal file
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<View
|
||||
android:id="@+id/bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:alpha="0"
|
||||
android:background="#000" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/titleView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:text="@string/preview"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_close"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:padding="9dp"
|
||||
android:src="@mipmap/icon_back"
|
||||
android:tint="@color/white" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/count"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:layout_marginRight="8dp"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="5dp"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp" />
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="40dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_delete"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="#000"
|
||||
android:gravity="center"
|
||||
android:text="@string/delete"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="15sp"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="72dp"
|
||||
android:background="#F5F5F5"
|
||||
@@ -27,7 +28,7 @@
|
||||
android:onClick="backClick"
|
||||
android:padding="9dp"
|
||||
android:src="@mipmap/icon_back"
|
||||
android:tint="@color/textColor" />
|
||||
app:tint="@color/textColor" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_more"
|
||||
@@ -37,20 +38,38 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:padding="9dp"
|
||||
android:src="@mipmap/btn_more_black"
|
||||
android:tint="@color/textColor"
|
||||
android:visibility="gone" />
|
||||
android:visibility="gone"
|
||||
app:tint="@color/textColor" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/rView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="25dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/not_received"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="13sp"
|
||||
android:layout_marginRight="25dp"
|
||||
android:text="@string/not_received"
|
||||
android:visibility="gone"
|
||||
android:textStyle="bold" />
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/submit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@drawable/main_community_send"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingRight="15dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:text="发布"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
</RelativeLayout>
|
||||
</FrameLayout>
|
||||
|
||||
91
common/src/main/res/layout/view_title_new.xml
Normal file
@@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="72dp"
|
||||
android:background="@android:color/transparent"
|
||||
android:paddingTop="24dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/titleView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_back"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:onClick="backClick"
|
||||
android:padding="9dp"
|
||||
android:src="@mipmap/icon_back"
|
||||
app:tint="@color/textColor" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_more"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:padding="9dp"
|
||||
android:src="@mipmap/btn_more_black"
|
||||
android:visibility="gone"
|
||||
app:tint="@color/textColor" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/rView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="25dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/not_received"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="13sp"
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/submit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@drawable/main_community_send"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingRight="15dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:text="发布"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/setting"
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="25dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@mipmap/icon_setting"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingRight="15dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:text="发布"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16dp"
|
||||
android:visibility="visible" />
|
||||
</RelativeLayout>
|
||||
</FrameLayout>
|
||||
BIN
common/src/main/res/mipmap-mdpi/bg_main.png
Normal file
|
After Width: | Height: | Size: 871 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_auth_suc.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_comment.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_community_edit.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_community_img_text.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_community_talk.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_community_time.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_community_video.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_down.png
Normal file
|
After Width: | Height: | Size: 786 B |
BIN
common/src/main/res/mipmap-mdpi/icon_edit_new.png
Normal file
|
After Width: | Height: | Size: 964 B |
BIN
common/src/main/res/mipmap-mdpi/icon_grade.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_green.png
Normal file
|
After Width: | Height: | Size: 341 B |
BIN
common/src/main/res/mipmap-mdpi/icon_index.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_index_new.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_left.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_like.png
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_like_follow.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_man.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_play.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_right_gray.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_right_new.png
Normal file
|
After Width: | Height: | Size: 801 B |
BIN
common/src/main/res/mipmap-mdpi/icon_send.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_setting.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_share_new.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
common/src/main/res/mipmap-mdpi/icon_vip_grade.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
common/src/main/res/mipmap-mdpi/main_bg.png
Normal file
|
After Width: | Height: | Size: 573 KiB |
BIN
common/src/main/res/mipmap-mdpi/temp.png
Normal file
|
After Width: | Height: | Size: 1005 KiB |
@@ -94,6 +94,7 @@
|
||||
<string name="edit_profile_right_date">Please select the correct date</string>
|
||||
<string name="edit_nick_name_price_msg">Warm tip: you can change your nickname once for free, and then 1800 diamonds will be needed</string>
|
||||
<string name="follow">Follow</string>
|
||||
<string name="main_type_theater">Theater</string>
|
||||
<string name="noble">VIP</string>
|
||||
<string name="rosy">Rosy</string>
|
||||
<string name="skin">Skin</string>
|
||||
@@ -257,6 +258,7 @@
|
||||
<string name="login_tip_4">Log in</string>
|
||||
<string name="shopmall">shopmall</string>
|
||||
<string name="recomment">Recommend</string>
|
||||
<string name="main_type_find">Find</string>
|
||||
<string name="cust_server">CSD</string>
|
||||
<string name="live_anchor">Anchor</string>
|
||||
<string name="live_start">Live broadcast</string>
|
||||
|
||||
@@ -94,6 +94,7 @@
|
||||
<string name="edit_profile_right_date">請選擇正確的日期</string>
|
||||
<string name="edit_nick_name_price_msg">溫馨提示:可以免費修改昵稱一次,之後修改需要鑽石1800一次</string>
|
||||
<string name="follow">關注</string>
|
||||
<string name="main_type_theater">短劇</string>
|
||||
<string name="unfollow"> 主播哪裡做的不好~\n哥哥確定要取消關注嗎?</string>
|
||||
<string name="unfollow_confrim">繼續關注</string>
|
||||
<string name="unfollow_cancel">不再關注</string>
|
||||
@@ -463,6 +464,7 @@
|
||||
<string name="recommend_enter">點擊進入</string>
|
||||
<string name="recomment_to_you">為你推薦</string>
|
||||
<string name="recomment">推薦</string>
|
||||
<string name="main_type_find">發現</string>
|
||||
<string name="sex_male">男</string>
|
||||
<string name="sex_female">女</string>
|
||||
<string name="setting">個性設置</string>
|
||||
|
||||
@@ -94,6 +94,7 @@
|
||||
<string name="edit_profile_right_date">請選擇正確的日期</string>
|
||||
<string name="edit_nick_name_price_msg">溫馨提示:可以免費修改昵稱一次,之後修改需要鑽石1800一次</string>
|
||||
<string name="follow">關注</string>
|
||||
<string name="main_type_theater">短劇</string>
|
||||
<string name="unfollow"> 主播哪裡做的不好~\n哥哥確定要取消關注嗎?</string>
|
||||
<string name="unfollow_confrim">繼續關注</string>
|
||||
<string name="unfollow_cancel">不再關注</string>
|
||||
@@ -463,6 +464,7 @@
|
||||
<string name="recommend_enter">點擊進入</string>
|
||||
<string name="recomment_to_you">為你推薦</string>
|
||||
<string name="recomment">推薦</string>
|
||||
<string name="main_type_find">發現</string>
|
||||
<string name="sex_male">男</string>
|
||||
<string name="sex_female">女</string>
|
||||
<string name="setting">個性設置</string>
|
||||
|
||||
@@ -94,6 +94,7 @@
|
||||
<string name="edit_profile_right_date">請選擇正確的日期</string>
|
||||
<string name="edit_nick_name_price_msg">溫馨提示:可以免費修改昵稱一次,之後修改需要鑽石1800一次</string>
|
||||
<string name="follow">關注</string>
|
||||
<string name="main_type_theater">短劇</string>
|
||||
<string name="unfollow"> 主播哪裡做的不好~\n哥哥確定要取消關注嗎?</string>
|
||||
<string name="unfollow_confrim">繼續關注</string>
|
||||
<string name="unfollow_cancel">不再關注</string>
|
||||
@@ -463,6 +464,7 @@
|
||||
<string name="recommend_enter">點擊進入</string>
|
||||
<string name="recomment_to_you">為你推薦</string>
|
||||
<string name="recomment">推薦</string>
|
||||
<string name="main_type_find">發現</string>
|
||||
<string name="sex_male">男</string>
|
||||
<string name="sex_female">女</string>
|
||||
<string name="setting">個性設置</string>
|
||||
|
||||
@@ -94,6 +94,7 @@
|
||||
<string name="edit_profile_right_date">Please select the correct date</string>
|
||||
<string name="edit_nick_name_price_msg">Warm tip: you can change your nickname once for free, and then 1800 diamonds will be needed</string>
|
||||
<string name="follow">Follow</string>
|
||||
<string name="main_type_theater">Theater</string>
|
||||
<string name="noble">VIP</string>
|
||||
<string name="rosy">Rosy</string>
|
||||
<string name="skin">Skin</string>
|
||||
@@ -257,6 +258,7 @@
|
||||
<string name="login_tip_4">Log in</string>
|
||||
<string name="shopmall">shopmall</string>
|
||||
<string name="recomment">Recommend</string>
|
||||
<string name="main_type_find">Find</string>
|
||||
<string name="cust_server">CSD</string>
|
||||
<string name="live_anchor">Anchor</string>
|
||||
<string name="live_start">Live broadcast</string>
|
||||
@@ -1455,4 +1457,22 @@ Limited ride And limited avatar frame</string>
|
||||
|
||||
<string name="back_community_sure">Sure</string>
|
||||
|
||||
<string name="save_image_album">保存到本地相册</string>
|
||||
<string name="save_success">保存成功</string>
|
||||
<string name="done">完成</string>
|
||||
<string name="add_image">所有照片</string>
|
||||
<string name="choose_img_max">最多选 %1$s 张图片哦</string>
|
||||
<string name="take_photo">拍摄</string>
|
||||
<string name="record_cancel">取消录制</string>
|
||||
<string name="permission_refused">您拒绝了%1$s的权限,请到设置中修改</string>
|
||||
<string name="permission_camera">使用摄像头</string>
|
||||
<string name="permission_record_audio">使用麦克风</string>
|
||||
<string name="permission_location">使用定位</string>
|
||||
<string name="permission_read_phone_state">读取手机信息</string>
|
||||
<string name="permission_storage">文件读写</string>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</resources>
|
||||
|
||||