Search in sources :

Example 1 with PostPicAdapter

use of com.rideread.rideread.common.adapter.PostPicAdapter in project ride-read-android by Ride-Read.

the class PostMomentActivity method initView.

@Override
public void initView() {
    new TitleBuilder(this).setTitleText("发个阅圈").IsBack(true).setRightText("发送").build();
    //设置布局管理器
    LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
    linearLayoutManager.setOrientation(LinearLayoutManager.HORIZONTAL);
    mRvPicContainer.setLayoutManager(linearLayoutManager);
    //设置适配器
    mPostPicAdapter = new PostPicAdapter(this, mSelectedPics);
    mRvPicContainer.setAdapter(mPostPicAdapter);
    mTvPostLoc.setText(AMapLocationUtils.getLocDetail());
}
Also used : TitleBuilder(com.rideread.rideread.common.util.TitleBuilder) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) PostPicAdapter(com.rideread.rideread.common.adapter.PostPicAdapter)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 PostPicAdapter (com.rideread.rideread.common.adapter.PostPicAdapter)1 TitleBuilder (com.rideread.rideread.common.util.TitleBuilder)1