Commit d0a40318 authored by ar-arvind's avatar ar-arvind Committed by Simon Xu
Browse files

Renamed layout files.

parent ee6f5f8c
......@@ -56,7 +56,7 @@ public class StickerPackDetailsActivity extends AddStickerPackActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.sticker_pack_details);
setContentView(R.layout.activity_sticker_pack_details);
boolean showUpButton = getIntent().getBooleanExtra(EXTRA_SHOW_UP_BUTTON, false);
stickerPack = getIntent().getParcelableExtra(EXTRA_STICKER_PACK_DATA);
TextView packNameTextView = findViewById(R.id.pack_name);
......
......@@ -67,7 +67,7 @@ public class StickerPackListAdapter extends RecyclerView.Adapter<StickerPackList
//if this sticker pack contains less stickers than the max, then take the smaller size.
int actualNumberOfStickersToShow = Math.min(maxNumberOfStickersInARow, pack.getStickers().size());
for (int i = 0; i < actualNumberOfStickersToShow; i++) {
final SimpleDraweeView rowImage = (SimpleDraweeView) LayoutInflater.from(context).inflate(R.layout.sticker_pack_list_item_image, viewHolder.imageRowView, false);
final SimpleDraweeView rowImage = (SimpleDraweeView) LayoutInflater.from(context).inflate(R.layout.sticker_packs_list_image_item, viewHolder.imageRowView, false);
rowImage.setImageURI(StickerPackLoader.getStickerAssetUri(pack.identifier, pack.getStickers().get(i).imageFileName));
final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) rowImage.getLayoutParams();
final int marginBetweenImages = minMarginBetweenImages - lp.leftMargin - lp.rightMargin;
......
......@@ -44,7 +44,7 @@ public class StickerPreviewAdapter extends RecyclerView.Adapter<StickerPreviewVi
@NonNull
@Override
public StickerPreviewViewHolder onCreateViewHolder(@NonNull final ViewGroup viewGroup, final int i) {
View itemView = layoutInflater.inflate(R.layout.sticker_image, viewGroup, false);
View itemView = layoutInflater.inflate(R.layout.sticker_image_item, viewGroup, false);
StickerPreviewViewHolder vh = new StickerPreviewViewHolder(itemView);
ViewGroup.LayoutParams layoutParams = vh.stickerPreviewView.getLayoutParams();
......
......@@ -4,4 +4,4 @@
android:layout_width="@dimen/sticker_pack_details_image_size"
android:layout_height="@dimen/sticker_pack_details_image_size"
android:padding="@dimen/sticker_pack_details_image_padding"
android:scaleType="centerCrop" />
android:scaleType="centerCrop" />
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment