Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.asusx441n.examplelistviewdinamis;
- import android.content.Intent;
- import android.support.v7.app.ActionBar;
- import android.support.v7.app.AppCompatActivity;
- import android.os.Bundle;
- import android.view.View;
- import android.widget.ImageView;
- import android.widget.LinearLayout;
- import android.widget.TextView;
- import com.bumptech.glide.Glide;
- import com.bumptech.glide.load.engine.DiskCacheStrategy;
- public class MainActivityDetail extends AppCompatActivity {
- Global global = new Global();
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main_detail);
- ActionBar menu = getSupportActionBar();
- menu.setDisplayShowHomeEnabled(true);
- menu.setDisplayHomeAsUpEnabled(true);
- TextView amd_tv_title = (TextView) findViewById(R.id.amd_tv_title);
- TextView amd_tv_provinsi = (TextView) findViewById(R.id.amd_tv_provinsi);
- TextView amd_tv_content = (TextView) findViewById((R.id.amd_tv_content));
- TextView sdd_tv_autor = (TextView) findViewById(R.id.sdd_tv_autor);
- TextView sdld_tv_descriptionend = (TextView) findViewById(R.id.sdld_tv_descriptionend);
- ImageView amd_iv_ceritarakyat = (ImageView) findViewById(R.id.amd_iv_ceritarakyat);
- amd_tv_title.setText(getIntent().getStringExtra(global.DATA_TITLE));
- amd_tv_provinsi.setText(getIntent().getStringExtra(global.DATA_PROVINSI));
- amd_tv_content.setText(getIntent().getStringExtra(global.DATA_CONTENT));
- sdd_tv_autor.setText(getIntent().getStringExtra(global.DATA_AUTHOR));
- sdld_tv_descriptionend.setText(getIntent().getStringExtra(global.DATA_OUTCOME));
- Glide.with(MainActivityDetail.this).load(getIntent().getStringExtra(global.DATA_IMAGE2)).thumbnail(0.5f).crossFade().diskCacheStrategy(DiskCacheStrategy.ALL).into(amd_iv_ceritarakyat);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement